/**
 * Sidebar Navigation Styles - PianoPlanner
 * Left sidebar in admin-stijl met goudkleurige Lucide icons
 * © 2026 Edan Creative
 */

/* ==================== CSS Variables ==================== */

/* Hide iOS mobile-only elements on desktop (sidebar replaces them) */
.ios-tab-bar,
.ios-fab,
.ios-mobile-header {
    display: none !important;
}

:root {
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 60px;
    --topbar-height: 40px;
    --sidebar-bg: #ffffff;
    --sidebar-border: #e5e5e5;
    --sidebar-text: #333333;
    --sidebar-text-hover: #1d1d1f;
    --sidebar-icon-color: #B8860B;
    --sidebar-icon-color-hover: #DAA520;
    --sidebar-active-bg: rgba(184, 134, 11, 0.08);
    --sidebar-active-color: #B8860B;
    --sidebar-section-title-color: #86868b;
    --sidebar-hover-bg: #f5f5f7;
    --sidebar-logout-color: #ff3b30;

    /* Z-index stack — centraal beheerd */
    --z-sidebar-overlay: 90;
    --z-sidebar: 100;
    --z-topbar: 200;
    --z-dropdown: 300;
    --z-tooltip: 400;
    --z-modal: 500;
}

/* ==================== FOUC Prevention ==================== */
/* Hide body until sidebar layout is injected, then reveal.
   Fallback: auto-reveal after 0.8s via animation in case JS fails */
body:not(.sidebar-ready) {
    opacity: 0;
    animation: sidebarFallbackReveal 0s 0.8s forwards;
}
body.sidebar-ready {
    opacity: 1;
    transition: opacity 0.12s ease;
    animation: none;
}
@keyframes sidebarFallbackReveal {
    to { opacity: 1; }
}

/* Inline <head> script zet body.sidebar-collapsed vóór render.
   Deze class past direct de grid-kolom aan zonder layout shift. */
body.sidebar-collapsed .app-layout {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

/* ==================== App Layout (CSS Grid) ==================== */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* ==================== Top Bar (hidden on desktop, mobile hamburger only) ==================== */
.app-topbar {
    display: none;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #1d1d1f;
    transition: opacity 0.2s ease;
}

.topbar-logo:hover {
    opacity: 0.8;
}

.topbar-logo-img {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 4px;
}

.topbar-logo .logo-piano {
    display: flex;
    align-items: center;
    color: #B8860B;
}

.topbar-logo .logo-piano i {
    width: 22px;
    height: 22px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hamburger button — mobiel only */
.topbar-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    color: #333;
    transition: background 0.15s ease;
}

.topbar-hamburger:hover {
    background: var(--sidebar-hover-bg);
}

.topbar-hamburger i {
    width: 20px;
    height: 20px;
}

/* ==================== User Dropdown (in topbar) ==================== */
.topbar-user-dropdown {
    position: relative;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1d1d1f;
    font-size: 13px;
}

.topbar-user-btn:hover {
    background: #e8e8ed;
}

.topbar-user-btn[aria-expanded="true"] {
    background: #e8e8ed;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}

.topbar-user-btn i {
    width: 16px;
    height: 16px;
}

.topbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.topbar-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar-dropdown-header {
    padding: 10px 14px;
    background: #f9f9fb;
    border-bottom: 1px solid #e5e5ea;
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-dropdown-divider {
    height: 1px;
    background: #e5e5ea;
    margin: 4px 0;
}

.topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease;
}

.topbar-dropdown-item:hover {
    background: #f5f5f7;
}

.topbar-dropdown-item i {
    width: 16px;
    height: 16px;
    color: #6e6e73;
}

.topbar-dropdown-logout {
    color: var(--sidebar-logout-color);
}

.topbar-dropdown-logout i {
    color: var(--sidebar-logout-color);
}

.topbar-dropdown-logout:hover {
    background: #fff5f5;
}

/* Upgrade button */
.topbar-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

/* Admin link */
.topbar-admin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
    color: #6e6e73;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-admin:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.topbar-admin i,
.topbar-upgrade i {
    width: 14px;
    height: 14px;
}

/* ==================== Left Sidebar ==================== */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: width 0.2s ease;
    z-index: var(--z-sidebar);
}

/* Sidebar brand (logo at top, like admin) */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 14px;
    text-decoration: none;
    color: var(--sidebar-text-hover);
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 4px;
    flex-shrink: 0;
}

.sidebar-brand:hover {
    color: var(--sidebar-text-hover);
}

.sidebar-brand .logo-piano {
    display: flex;
    align-items: center;
    color: #B8860B;
}

.sidebar-brand .logo-piano i {
    width: 22px;
    height: 22px;
}

.sidebar-brand-img {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 4px;
}

/* Sidebar admin link */
.sidebar-admin-link {
    color: var(--sidebar-text) !important;
}

.sidebar-admin-link i {
    color: #dc2626 !important;
}

.sidebar-admin-link:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Sidebar upgrade link */
.sidebar-upgrade-link {
    color: #d97706 !important;
}

.sidebar-upgrade-link i {
    color: #d97706 !important;
}

.sidebar-upgrade-link:hover {
    background: #fffbeb !important;
}

/* Sidebar user info */
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #6e6e73;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 4px;
}

.sidebar-user-info i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #86868b;
}

.sidebar-user-email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar styling */
.app-sidebar::-webkit-scrollbar {
    width: 4px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a6;
}

/* Sidebar sections */
.sidebar-section {
    padding: 16px;
}

.sidebar-section:first-child {
    padding-top: 16px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sidebar-section-title-color);
    margin-bottom: 8px;
    padding: 0 12px;
    user-select: none;
}

.sidebar-section-title.collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    padding: 4px 12px;
    margin-left: 2px;
    margin-right: 2px;
    transition: background 0.15s ease;
}

.sidebar-section-title.collapsible:hover {
    background: var(--sidebar-hover-bg);
}

.section-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.8;
    stroke-width: 2.5;
}

.section-chevron.collapsed {
    transform: rotate(-90deg);
}

.sidebar-section-items {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.25s ease;
}

.sidebar-section.collapsed .sidebar-section-items {
    max-height: 0;
}

/* Sidebar menu items */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    text-decoration: none;
    margin-bottom: 1px;
}

.sidebar-nav-item:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-hover);
}

.sidebar-nav-item:hover i {
    color: var(--sidebar-icon-color-hover);
}

.sidebar-nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
}

.sidebar-nav-item.active i {
    color: var(--sidebar-active-color);
}

/* Gold icons */
.sidebar-nav-item i {
    width: 18px;
    height: 18px;
    color: var(--sidebar-icon-color);
    flex-shrink: 0;
}

.sidebar-nav-item span {
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* Tier-locked item */
.sidebar-nav-item.locked {
    opacity: 0.5;
    pointer-events: none;
}

/* Team member sub-items under Agenda */
.sidebar-sub-items {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    padding-left: 12px;
}

.sidebar-sub-items.expanded {
    max-height: 500px;
}

.sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    margin-bottom: 1px;
}

.sidebar-sub-item:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-hover);
}

.sidebar-sub-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
}

.sidebar-sub-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-sub-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-sub-count {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
}

.sidebar-nav-item .sidebar-item-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    transition: transform 0.2s;
    color: #9ca3af;
    flex-shrink: 0;
}

.sidebar-nav-item .sidebar-item-chevron.expanded {
    transform: rotate(180deg);
}

/* Sidebar divider */
.sidebar-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 8px 12px;
}

/* Sidebar spacer  */
.sidebar-spacer {
    flex: 1;
}

/* Logout item */
.sidebar-logout {
    color: var(--sidebar-logout-color);
}

.sidebar-logout i {
    color: var(--sidebar-logout-color);
}

.sidebar-logout:hover {
    background: #fff5f5;
    color: var(--sidebar-logout-color);
}

/* Sidebar widgets area (mini-calendar on dashboard) */
.sidebar-widgets {
    padding: 0;
    border-top: 1px solid var(--sidebar-border);
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.sidebar-widgets:empty {
    display: none;
    border-top: none;
}

/* Mini calendar inside sidebar */
.sidebar-widgets .mini-calendar-card {
    padding: 12px;
    border-bottom: none;
}

.sidebar-widgets .mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sidebar-widgets .mini-title {
    font-weight: 600;
    color: var(--sidebar-text);
    font-size: 12px;
}

.sidebar-widgets .mini-nav {
    display: flex;
    gap: 2px;
}

.sidebar-widgets .mini-nav button {
    border: none;
    background: transparent;
    color: var(--sidebar-icon-color);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.sidebar-widgets .mini-nav button:hover {
    background: rgba(184, 134, 11, 0.08);
}

.sidebar-widgets .mini-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 9px;
    color: #86868b;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sidebar-widgets .mini-daynames div {
    padding: 2px 0;
}

.sidebar-widgets .mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.sidebar-widgets .mini-day {
    aspect-ratio: 1;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #1d1d1f;
    position: relative;
    padding: 0;
    min-height: auto;
    transition: background 0.15s ease;
}

.sidebar-widgets .mini-day:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-widgets .mini-day.other-month {
    color: #c7c7cc;
}

.sidebar-widgets .mini-day.today {
    background: var(--sidebar-icon-color);
    color: #fff;
    font-weight: 700;
}

.sidebar-widgets .mini-day.selected {
    background: rgba(184, 134, 11, 0.15);
    color: var(--sidebar-icon-color);
    font-weight: 600;
}

.sidebar-widgets .mini-day.today.selected {
    background: var(--sidebar-icon-color);
    color: #fff;
}

.sidebar-widgets .mini-day-number {
    font-size: 11px;
    line-height: 1;
}

.sidebar-widgets .mini-dots {
    display: flex;
    gap: 1px;
    margin-top: 1px;
}

.sidebar-widgets .mini-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
}

/* Traffic light status inside sidebar */
.sidebar-widgets .traffic-light-status {
    padding: 10px 12px;
    border-top: 1px solid var(--sidebar-border);
    border-bottom: none;
}

.sidebar-widgets .traffic-light-title {
    font-size: 10px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-widgets .traffic-lights {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.sidebar-widgets .traffic-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.sidebar-widgets .traffic-light-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sidebar-widgets .traffic-light-label {
    font-size: 8px;
    color: #86868b;
    text-transform: uppercase;
    font-weight: 500;
}

.sidebar-widgets::-webkit-scrollbar {
    width: 4px;
}
.sidebar-widgets::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-widgets::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* Dashboard widgets moved to sidebar */
.sidebar-widgets .upcoming-today,
.sidebar-widgets .pending-appointments {
    padding: 10px 12px;
    border-top: 1px solid var(--sidebar-border);
    border-bottom: none;
    max-height: 180px;
    overflow-y: auto;
}

.sidebar-widgets .upcoming-today-title,
.sidebar-widgets .pending-appointments-title {
    font-size: 10px;
}

.sidebar-widgets .upcoming-today-item {
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.sidebar-widgets .upcoming-today-name {
    font-size: 12px;
}

/* Sidebar footer (logout area) */
.sidebar-footer {
    padding: 8px 12px 16px;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
    flex-shrink: 0;
}

/* ==================== Main Content ==================== */
.app-main {
    min-width: 0;
    overflow-x: hidden;
    position: relative;
}

/* ==================== Sidebar Overlay (mobiel) ==================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: var(--z-sidebar-overlay);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ==================== Collapsed State (tablet) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .app-layout {
        grid-template-columns: var(--sidebar-collapsed-width) 1fr;
    }

    .app-sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-brand {
        justify-content: center;
        padding: 12px 8px;
        font-size: 0;
    }

    .sidebar-brand-img {
        height: 24px;
        max-width: 40px;
    }

    .sidebar-user-info {
        display: none;
    }

    .sidebar-section-title {
        font-size: 0;
        padding: 0;
        margin-bottom: 2px;
        height: 4px;
    }

    .sidebar-nav-item {
        justify-content: center;
        padding: 10px;
    }

    .sidebar-nav-item span {
        display: none;
    }

    .sidebar-footer .sidebar-nav-item span {
        display: none;
    }

    /* Hide widgets in collapsed mode */
    .sidebar-widgets {
        display: none;
    }

    /* Tooltip bij hover — collapsed mode */
    .sidebar-nav-item {
        position: relative;
    }

    .sidebar-nav-item::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%);
        background: #1d1d1f;
        color: white;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.15s ease;
        z-index: var(--z-tooltip);
        pointer-events: none;
    }

    .sidebar-nav-item:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* ==================== Mobile (<= 768px) ==================== */
@media (max-width: 768px) {
    .app-topbar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: var(--z-topbar);
        height: var(--topbar-height);
        background: rgba(251, 251, 253, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }

    .topbar-hamburger {
        display: flex;
    }

    .app-layout {
        display: block;
        min-height: calc(100vh - var(--topbar-height));
    }

    .app-sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        width: var(--sidebar-width);
        height: calc(100vh - var(--topbar-height));
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: var(--z-sidebar);
        box-shadow: none;
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    /* Hide widgets on mobile — not enough space */
    .sidebar-widgets {
        display: none;
    }

    .app-main {
        width: 100%;
    }
}

/* ==================== Print ==================== */
@media print {
    .app-topbar,
    .app-sidebar,
    .sidebar-overlay {
        display: none !important;
    }

    .app-layout {
        display: block;
    }

    .app-main {
        width: 100% !important;
    }
}

/* ==================== Logout Spinner ==================== */
.sidebar-logout .spin,
.topbar-dropdown-logout .spin {
    animation: sidebar-spin 1s linear infinite;
}

@keyframes sidebar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Notification Overlay ==================== */
.notification-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notifFadeIn 0.3s ease-out;
}

.notification-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notification-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: notifScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(184, 134, 11, 0.1);
}

.notification-icon svg {
    width: 24px;
    height: 24px;
    color: #B8860B;
}

.notification-card.panel-success .notification-icon {
    background: rgba(52, 199, 89, 0.1);
}
.notification-card.panel-success .notification-icon svg {
    color: #34c759;
}
.notification-card.panel-warning .notification-icon {
    background: rgba(255, 149, 0, 0.1);
}
.notification-card.panel-warning .notification-icon svg {
    color: #ff9500;
}
.notification-card.panel-error .notification-icon {
    background: rgba(255, 59, 48, 0.1);
}
.notification-card.panel-error .notification-icon svg {
    color: #ff3b30;
}

.notification-card h4 {
    margin: 0 0 8px 0;
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
}

.notification-card p {
    margin: 0 0 24px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.notification-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border: none;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-dismiss:hover {
    background: #e8e8ed;
}

@keyframes notifFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notifScaleIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Email Quota Widget */
.email-quota-widget {
    padding: 12px;
    margin: 8px 10px;
    background: var(--sidebar-hover, rgba(255,255,255,0.06));
    border-radius: 10px;
    font-size: 12px;
}
.email-quota-widget .eq-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sidebar-text, #ccc);
    font-weight: 600;
    margin-bottom: 8px;
}
.email-quota-widget .eq-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.email-quota-widget .eq-fill {
    height: 100%;
    background: var(--primary, #91BD62);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.email-quota-widget.low .eq-fill {
    background: #ff9500;
}
.email-quota-widget .eq-label {
    color: var(--sidebar-text-muted, #999);
    font-size: 11px;
    margin-top: 4px;
    text-align: right;
}
.email-quota-widget .eq-upgrade {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #9362BD 0%, #7D4EA8 100%);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}
.email-quota-widget .eq-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147,98,189,0.3);
}
