body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* ===== SPLASH SCREEN ===== */
#splashscreen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f5f5f5; display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.splash-content { text-align: center; }
.splash-logo {
    width: 72px; height: 72px; margin: 0 auto 16px;
    background: linear-gradient(135deg, #42a5f5, #7e57c2);
    border-radius: 18px;
}
.splash-title { font-size: 2rem; font-weight: bold; color: #333; margin-bottom: 24px; }
.splash-progress { width: 200px; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; margin: 0 auto; }
.splash-progress-bar {
    height: 100%; width: 30%; background: linear-gradient(90deg, #42a5f5, #7e57c2);
    border-radius: 2px; animation: splash-indeterminate 1.5s infinite ease-in-out;
}
@keyframes splash-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ===== SHELL LAYOUT ===== */
.shell-root { min-height: 100vh; }
.shell-navbar { background: transparent !important; box-shadow: none !important; height: 56px !important; padding: 0 24px !important; }

/* ===== LOGIN ===== */
.login-root { min-height: calc(100vh - 120px); }
.login-title { font-size: 1.5rem; }
.login-error { font-size: 0.85rem; }

/* ===== DIALOG ===== */
.dialog-title { font-size: 1.5rem; margin-bottom: 16px; }
.dialog-subtitle { font-size: 1rem; font-weight: 500; margin-top: 16px; margin-bottom: 8px; color: #666; }
.username-label { font-size: 1.1rem; font-weight: 400; padding: 8px 0; color: #333; }
.swatch-panel { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ===== USER FAB ===== */
.fixed-action-btn.shell-user-fab {
    position: fixed !important;
    top: 8px;
    right: 24px;
    bottom: auto;
    left: auto;
    z-index: 999;
    padding: 0 !important;
}

/* ===== LOGOUT BUTTON ===== */
.fab-logout-btn {
    background-color: #c62828 !important;
}
.fab-logout-btn i {
    color: #ffffff !important;
}

.fab-user-action {
    background: rgba(0,0,0,0.06) !important;
    box-shadow: none !important;
}

/* ===== HORIZONTAL FAB LIST ===== */
.fixed-action-btn.shell-user-fab.horizontal ul {
    left: auto;
    right: 64px;
    flex-direction: row-reverse;
    gap: 4px;
    padding: 0;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: auto;
    bottom: auto;
}
.fixed-action-btn.shell-user-fab.horizontal ul li {
    margin: 0;
    padding: 0;
}

/* ===== FAB USERNAME CHIP ===== */
.fab-user-chip {
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.7);
    font-size: 0.85rem;
    padding: 0 12px;
    border-radius: 16px;
    white-space: nowrap;
    cursor: default;
    pointer-events: none;
    height: 32px;
    line-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-swatch {
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ===== GROUPS SPLIT LAYOUT ===== */
.groups-split-layout {
    margin-top: 16px;
}
.groups-split-layout .row {
    margin: 0;
}
.groups-list-col {
    padding-right: 8px;
}
@media (max-width: 599px) {
    .groups-list-col {
        padding-right: 0;
        max-height: 200px;
        overflow-y: auto;
    }
    .notes-panel-scroll {
        max-height: 150px;
        overflow-y: auto;
    }
    .groups-media-col {
        padding-bottom: 100px;
    }
    .groups-detail-col {
        padding-left: 0;
        padding-top: 16px;
    }
}
@media (min-width: 600px) and (max-width: 991px) {
    .groups-list-col {
        border-right: 1px solid #e0e0e0;
        padding-right: 16px;
    }
    .groups-detail-col {
        padding-left: 16px;
    }
}
@media (min-width: 992px) {
    .groups-split-layout {
        height: calc(100vh - 80px);
        overflow: hidden;
    }
    .groups-split-layout .row {
        height: 100%;
    }
    .groups-list-col {
        height: 100%;
        overflow-y: auto;
        border-right: 1px solid #e0e0e0;
        padding-right: 16px;
    }
    .groups-detail-col {
        height: 100%;
        overflow-y: auto;
        padding-left: 16px;
    }
    .groups-media-col {
        height: 100%;
        overflow-y: auto;
        padding-left: 16px;
        border-left: 1px solid #e0e0e0;
    }
    .notes-panel-scroll {
        max-height: none;
    }
}
@media (max-width: 991px) {
    .groups-media-col {
        border-left: none;
        padding-left: 0;
        padding-top: 16px;
        border-top: 1px solid #e0e0e0;
        margin-top: 16px;
    }
}

/* ===== GROUPS SECTION ===== */
.group-card,
.note-card,
.media-card {
    background: white;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}
.group-card,
.media-card {
    cursor: pointer;
}
.group-card {
    padding: 16px;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.group-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.group-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.group-card-name {
    font-size: 1.2rem;
    font-weight: 500;
    flex: 1;
}
.group-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}
.group-card-star {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    min-width: 32px !important;
    box-shadow: none !important;
    background: transparent !important;
    flex-shrink: 0;
}
.group-card-star i {
    font-size: 20px !important;
    line-height: 32px !important;
}
.group-card-selected {
    border-left: 4px solid var(--gs-accent);
    background-color: #eaeaf0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
    position: relative;
    z-index: 2;
}
.section-cards {
    margin-top: 16px;
}
.fab-group-actions {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    padding: 0 24px;
    pointer-events: none;
}
.fab-list-actions {
    justify-content: center;
}
.fab-group-single {
    pointer-events: auto;
}
.fab-group-left {
    flex: 1;
    pointer-events: auto;
}
.fab-group-center {
    display: flex;
    gap: 12px;
    align-items: center;
    pointer-events: auto;
}
.fab-group-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    pointer-events: auto;
}
.fab-action-btn {
    width: 56px !important;
    height: 56px !important;
    line-height: 56px !important;
}
.fab-action-btn i {
    font-size: 24px !important;
    line-height: 56px !important;
}
.fab-delete {
    background-color: #e53935 !important;
}
.fab-delete:hover {
    background-color: #c62828 !important;
}

.dialog-themed .modal-content {
    border-radius: 12px !important;
    background: #fafafa !important;
}
.dialog-themed .modal-header,
.dialog-themed .modal-footer {
    background: transparent !important;
    box-shadow: none !important;
}

.dialog-title-centered {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

.dialog-submit-center {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.dialog-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.note-card {
    padding: 12px 16px;
    margin: 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.note-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.note-card-title {
    font-size: 1.0rem;
    font-weight: 500;
}
.note-card-meta {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}
.note-card-preview {
    font-size: 0.85rem;
    color: #555;
    margin-top: 6px;
    line-height: 1.3;
}
.note-card-own {
    cursor: pointer;
}
.note-card-own:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.note-card-other {
    opacity: 0.85;
    cursor: default;
}
.note-card-other:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.member-label {
    padding: 4px 0;
    font-size: 0.9rem;
}
.empty-state {
    text-align: center;
    color: #999;
    padding: 32px 0;
    font-style: italic;
}
.sub-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 20px 0 10px;
    display: block;
}

/* ===== NAVBAR BREADCRUMBS ===== */
.bc-brand {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
}
.bc-section {
    font-size: 1.3rem;
    font-weight: 500;
    color: #42a5f5;
}
.breadcrumb::before {
    content: ">" !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: #999 !important;
    vertical-align: middle !important;
    margin: 0 8px;
}
.bc-brand:hover,
.bc-section:hover {
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn-danger {
    background-color: #e53935 !important;
    color: #ffffff !important;
    border-color: #c62828 !important;
}
.btn-danger:hover {
    background-color: #c62828 !important;
}
.btn-soft {
    box-shadow: none !important;
    border: 1px solid;
    border-color: currentColor;
    border-radius: 8px;
    text-transform: none;
    font-weight: 500;
    transition: box-shadow 0.2s ease;
}
.btn-soft:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.btn-flat-secondary {
    box-shadow: none !important;
    text-transform: none;
    font-weight: 400;
    background: transparent !important;
}
.btn-flat-secondary:hover {
    background: rgba(0,0,0,0.05) !important;
}

.media-card {
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 120px;
    margin-bottom: 12px;
}
.media-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.media-thumb {
    width: 100%;
    display: block;
    border-radius: 8px 8px 0 0;
}
.media-card-name {
    font-size: 0.8rem;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.media-card-status {
    font-size: 0.7rem;
    padding: 0 8px 6px;
    color: #999;
}
.media-file-label {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}
.media-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
}
.media-video-overlay {
    position: relative;
    display: inline-block;
    width: 100%;
}

.media-loader {
    width: 100%;
    margin-bottom: 8px;
}

/* ===== MEDIA PLAYER PANEL ===== */
.media-player-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.media-player-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.media-player-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-player-btn {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    box-shadow: none !important;
    background: transparent !important;
    flex-shrink: 0;
}
.media-player-btn i {
    font-size: 20px !important;
    line-height: 36px !important;
}
.media-player-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}
.media-player-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.media-player-area video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    display: block;
}
.media-player-info {
    font-size: 0.85rem;
    color: #666;
    padding: 8px 0;
    flex-shrink: 0;
}
.media-player-fallback {
    color: #999;
    font-style: italic;
    padding: 16px;
}

/* ===== MEMBER ROW ===== */
.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    gap: 8px;
}
.member-label {
    padding: 4px 0;
    font-size: 0.9rem;
    flex: 1;
}
.member-friend-btn {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    min-width: 32px !important;
    box-shadow: none !important;
    flex-shrink: 0;
}
.member-friend-btn i {
    font-size: 20px !important;
    line-height: 32px !important;
}
.member-friend-add {
    background: transparent !important;
    color: var(--gs-accent) !important;
}
.member-friend-add i {
    color: inherit !important;
}
.member-friend-accept {
    background: transparent !important;
    color: #2e7d32 !important;
}
.member-friend-accept i {
    color: inherit !important;
}
.member-friend-reject {
    background: transparent !important;
    color: #c62828 !important;
}
.member-friend-reject i {
    color: inherit !important;
}
.member-status-pending {
    font-size: 0.8rem;
    color: #f57c00;
    font-style: italic;
    white-space: nowrap;
}
.member-status-friends {
    font-size: 0.8rem;
    color: #2e7d32;
    white-space: nowrap;
}

/* ===== SECTION HEADER ROW ===== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-header-title {
    margin: 20px 0 10px !important;
}
.section-header-btn {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    min-width: 32px !important;
    box-shadow: none !important;
    background: transparent !important;
    flex-shrink: 0;
    margin-top: 16px;
}
.section-header-btn i {
    font-size: 20px !important;
    line-height: 32px !important;
}

/* ===== INVITATION ===== */
.invitation-card {
    border-left: 4px solid #42a5f5;
    background: #f0f8ff;
}
.invitation-badge {
    font-size: 0.7rem;
    background: #42a5f5;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.invitation-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.btn-accept {
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
    font-size: 0.85rem !important;
    padding: 0 12px !important;
    height: 32px !important;
    line-height: 30px !important;
}
.btn-reject {
    border-color: #c62828 !important;
    color: #c62828 !important;
    font-size: 0.85rem !important;
    padding: 0 12px !important;
    height: 32px !important;
    line-height: 30px !important;
}

/* ===== FRIEND DIALOG ===== */
.dialog-friends .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}
.friend-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.friend-search-row .input-field {
    flex: 1;
    margin: 0;
}
.friend-search-results {
    margin-top: 8px;
}

/* ===== INVITE FROM GROUP ===== */
.invite-friend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.invite-friend-name {
    font-size: 0.95rem;
    flex: 1;
}
.invite-friend-btn {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    min-width: 32px !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--gs-accent) !important;
    flex-shrink: 0;
}
.invite-friend-btn i {
    font-size: 20px !important;
    line-height: 32px !important;
    color: inherit !important;
}

/* ===== BUTTON PRIMARY ===== */
.btn-primary {
    background-color: #42a5f5 !important;
    color: white !important;
    border-radius: 8px;
    text-transform: none;
    font-weight: 500;
    box-shadow: none !important;
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

