﻿/* ====== AGENDRIX-STYLE TOP NAVIGATION ====== */
/* Authentic professional design with refined spacing and interactions */

/* ====== Main Topbar ====== */
.roovia-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

    .roovia-topbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

.roovia-topbar-container {
    height: 100%;
    width: 100%;
}

.roovia-topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

/* ====== Brand Section - Authentic Agendrix Style ====== */
.roovia-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    border-radius: 0.625rem;
    margin-left: -0.75rem;
}

    .roovia-brand:hover {
        background-color: rgba(15, 105, 115, 0.03);
        transform: translateY(-0.5px);
    }

.brand-logo-wrapper {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.roovia-brand:hover .brand-logo {
    transform: scale(1.02);
}

.brand-text {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: rgb(15, 105, 115);
    letter-spacing: -0.8px;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
}

/* ====== Navigation Menu - Refined Agendrix Style ====== */
.roovia-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    min-height: 2.25rem;
    letter-spacing: -0.15px;
}

    .nav-link:hover {
        color: rgb(15, 105, 115);
        background: rgba(15, 105, 115, 0.04);
        transform: translateY(-0.5px);
    }

    .nav-link:focus {
        outline: 2px solid rgba(15, 105, 115, 0.2);
        outline-offset: 2px;
    }

    .nav-link.active {
        color: rgb(15, 105, 115);
        background: rgba(15, 105, 115, 0.06);
        font-weight: 600;
        box-shadow: 0 1px 2px rgba(15, 105, 115, 0.08);
    }


.nav-icon {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    width: 0.875rem;
    height: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover .nav-icon {
    transform: scale(1.05);
}

.nav-badge {
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    min-width: 0.875rem;
    height: 0.875rem;
    background: linear-gradient(135deg, #F59E0B, #EAB308);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ====== Actions Section - Authentic Agendrix ====== */
.roovia-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* Credits Display - Agendrix Style */
.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.03), rgba(34, 197, 94, 0.01));
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 1.25rem;
    color: rgb(21, 128, 61);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: default;
}

    .credits-display:hover {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
        transform: translateY(-0.5px);
        box-shadow: 0 2px 6px rgba(34, 197, 94, 0.12);
    }

    .credits-display i {
        font-size: 0.75rem;
        animation: rotate-gentle 10s linear infinite;
    }

@keyframes rotate-gentle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.credits-amount {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.25px;
    font-weight: 600;
}

/* Action Buttons - Agendrix Precision */
.action-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .action-btn:hover {
        background: rgba(15, 105, 115, 0.04);
        color: rgb(15, 105, 115);
        border-color: rgba(15, 105, 115, 0.08);
        transform: translateY(-0.5px);
    }

    .action-btn:focus {
        outline: 2px solid rgba(15, 105, 115, 0.2);
        outline-offset: 2px;
    }

    .action-btn i {
        transition: transform 0.2s ease;
    }

    .action-btn:hover i {
        transform: scale(1.05);
    }

.action-badge {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    min-width: 0.75rem;
    height: 0.75rem;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

/* Theme Toggle - Agendrix Style */
.theme-toggle {
    position: relative;
}

    .theme-toggle i {
        transition: all 0.25s ease;
    }

    .theme-toggle:hover i {
        color: #F59E0B;
        transform: rotate(15deg) scale(1.05);
    }

/* ====== User Section - Refined Agendrix ====== */
.user-section {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0.625rem;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 1.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 2.25rem;
}

    .user-trigger:hover {
        background-color: rgba(15, 105, 115, 0.03);
        border-color: rgba(15, 105, 115, 0.08);
        transform: translateY(-0.5px);
    }

    .user-trigger.active {
        background-color: rgba(15, 105, 115, 0.05);
        border-color: rgba(15, 105, 115, 0.12);
        box-shadow: 0 1px 3px rgba(15, 105, 115, 0.08);
    }

.user-avatar {
    position: relative;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, rgb(15, 105, 115), rgb(12, 84, 92));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .user-avatar.guest {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.1));
        color: rgba(0, 0, 0, 0.55);
    }

.avatar-text {
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.25px;
}

.user-chevron {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

    .user-chevron.rotate {
        transform: rotate(180deg);
    }

.guest-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(15, 105, 115);
    margin-right: 0.25rem;
    letter-spacing: -0.15px;
}

/* ====== User Dropdown Menu - Enhanced ====== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 300px;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow: hidden;
}

.dropdown.show .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.dropdown-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: linear-gradient(135deg, rgba(15, 105, 115, 0.015), rgba(15, 105, 115, 0.005));
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

    .dropdown-header.guest {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 0.875rem;
    }

.dropdown-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, rgb(15, 105, 115), rgb(12, 84, 92));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

    .dropdown-avatar .avatar-text {
        font-size: 0.875rem;
        font-weight: 700;
        color: white;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

.dropdown-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(15, 105, 115, 0.06);
    color: rgb(15, 105, 115);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.dropdown-info {
    flex: 1;
    min-width: 0;
}

    .dropdown-info h4 {
        margin: 0 0 0.25rem 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.9);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.25px;
    }

    .dropdown-info p {
        margin: 0;
        font-size: 0.8125rem;
        color: rgba(0, 0, 0, 0.5);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.04);
    margin: 0;
    border: none;
}

/* Dropdown Items */
.dropdown-items {
    padding: 0.625rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    letter-spacing: -0.15px;
}

    .dropdown-item:hover {
        background: rgba(15, 105, 115, 0.03);
        color: rgb(15, 105, 115);
        transform: translateX(2px);
    }

    .dropdown-item.primary {
        background: rgb(15, 105, 115);
        color: white;
        margin: 0 0.625rem;
        border-radius: 0.5rem;
        font-weight: 600;
    }

        .dropdown-item.primary:hover {
            background: rgb(12, 84, 92);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(15, 105, 115, 0.2);
        }

    .dropdown-item.logout {
        color: #EF4444;
    }

        .dropdown-item.logout:hover {
            background: rgba(239, 68, 68, 0.03);
            color: #DC2626;
        }

    .dropdown-item i {
        font-size: 0.875rem;
        width: 0.875rem;
        text-align: center;
        flex-shrink: 0;
        transition: transform 0.15s ease;
    }

    .dropdown-item:hover i {
        transform: scale(1.05);
    }

.item-badge {
    background: linear-gradient(135deg, #F59E0B, #EAB308);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.625rem;
    margin-left: auto;
}

/* ====== Mobile Toggle ====== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.1875rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

    .mobile-toggle:hover {
        background: rgba(15, 105, 115, 0.03);
        border-color: rgba(15, 105, 115, 0.08);
    }

    .mobile-toggle span {
        width: 1rem;
        height: 0.125rem;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 0.0625rem;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-toggle:hover span {
        background: rgb(15, 105, 115);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(0.1875rem, 0.1875rem);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0.1875rem, -0.1875rem);
    }

/* ====== Mobile Panel ====== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1200;
}

    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: white;
    box-shadow: -25px 0 50px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .mobile-panel.show {
        transform: translateX(0);
    }

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, rgba(15, 105, 115, 0.015), rgba(15, 105, 115, 0.005));
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: rgb(15, 105, 115);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.25px;
}

    .mobile-brand img {
        height: 1.75rem;
    }

.mobile-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

    .mobile-close:hover {
        background: rgba(15, 105, 115, 0.04);
        color: rgb(15, 105, 115);
        transform: rotate(90deg);
    }

/* Mobile Navigation */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(15, 105, 115, 0.03), rgba(15, 105, 115, 0.015));
    border: 1px solid rgba(15, 105, 115, 0.06);
    border-radius: 0.875rem;
    margin-bottom: 1.5rem;
}

.mobile-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, rgb(15, 105, 115), rgb(12, 84, 92));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

    .mobile-avatar span {
        color: white;
        font-size: 0.875rem;
        font-weight: 700;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

    .mobile-user-details h6 {
        margin: 0 0 0.25rem 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.9);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.25px;
    }

    .mobile-user-details p {
        margin: 0 0 0.75rem 0;
        font-size: 0.8125rem;
        color: rgba(0, 0, 0, 0.5);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.mobile-credits {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: rgb(21, 128, 61);
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

    .mobile-credits i {
        color: rgb(21, 128, 61);
    }

/* Mobile Guest Info */
.mobile-guest-info {
    margin-bottom: 1.5rem;
}

.mobile-auth {
    display: flex;
    gap: 0.75rem;
}

.mobile-auth-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.15px;
}

    .mobile-auth-btn.primary {
        background: rgb(15, 105, 115);
        color: white;
        border: 1px solid rgb(15, 105, 115);
    }

        .mobile-auth-btn.primary:hover {
            background: rgb(12, 84, 92);
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(15, 105, 115, 0.2);
        }

    .mobile-auth-btn:not(.primary) {
        background: transparent;
        color: rgba(0, 0, 0, 0.75);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

        .mobile-auth-btn:not(.primary):hover {
            background: rgba(15, 105, 115, 0.03);
            border-color: rgba(15, 105, 115, 0.12);
            color: rgb(15, 105, 115);
        }

/* Mobile Navigation Links */
.mobile-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 0.625rem;
    transition: all 0.15s ease;
    position: relative;
    letter-spacing: -0.15px;
}

    .mobile-link:hover {
        background: rgba(15, 105, 115, 0.03);
        color: rgb(15, 105, 115);
        transform: translateX(3px);
    }

    .mobile-link i {
        font-size: 0.875rem;
        width: 0.875rem;
        text-align: center;
        flex-shrink: 0;
        color: rgba(0, 0, 0, 0.4);
        transition: all 0.15s ease;
    }

    .mobile-link:hover i {
        color: rgb(15, 105, 115);
        transform: scale(1.05);
    }

.mobile-badge {
    background: linear-gradient(135deg, #F59E0B, #EAB308);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.625rem;
    margin-left: auto;
}

/* Mobile Footer */
.mobile-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.005);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-theme-btn,
.mobile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.15px;
}

    .mobile-theme-btn:hover {
        background: rgba(15, 105, 115, 0.03);
        border-color: rgba(15, 105, 115, 0.12);
        color: rgb(15, 105, 115);
    }

    .mobile-logout:hover {
        background: rgba(239, 68, 68, 0.03);
        border-color: rgba(239, 68, 68, 0.12);
        color: #EF4444;
    }

/* ====== Backdrop ====== */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

/* ====== Responsive Design ====== */
@media (max-width: 1199.98px) {
    .roovia-topbar-content {
        padding: 0 1.25rem;
        gap: 1.5rem;
    }

    .credits-display {
        padding: 0.3125rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .roovia-topbar {
        height: 3.75rem;
    }

    .roovia-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .brand-text {
        display: none;
    }

    .roovia-topbar-content {
        padding: 0 1rem;
        gap: 1rem;
    }

    .roovia-actions {
        gap: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .roovia-topbar-content {
        padding: 0 0.875rem;
    }

    .roovia-actions {
        gap: 0.125rem;
    }

    .action-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.8125rem;
    }

    .credits-display {
        padding: 0.25rem 0.625rem;
    }

        .credits-display .credits-amount {
            font-size: 0.75rem;
        }

    .user-dropdown {
        width: 280px;
        right: -0.875rem;
    }

    .mobile-panel {
        width: 100vw;
    }
}

@media (max-width: 479.98px) {
    .brand-logo-wrapper {
        width: 1.75rem;
        height: 1.75rem;
    }

    .roovia-brand {
        padding: 0.375rem 0.5rem;
    }

    .user-dropdown {
        width: calc(100vw - 1.75rem);
        right: 0;
        left: 0.875rem;
    }

    .credits-display {
        display: none;
    }
}

/* ====== Dark Theme Support ====== */
[data-theme="atriver-dark"] .roovia-topbar {
    background: rgba(20, 20, 23, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

    [data-theme="atriver-dark"] .roovia-topbar.scrolled {
        background: rgba(20, 20, 23, 0.98);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

[data-theme="atriver-dark"] .brand-name {
    color: rgb(80, 150, 170);
}

[data-theme="atriver-dark"] .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

    [data-theme="atriver-dark"] .nav-link:hover,
    [data-theme="atriver-dark"] .nav-link.active {
        color: rgb(80, 150, 170);
        background: rgba(80, 150, 170, 0.08);
    }

        [data-theme="atriver-dark"] .nav-link.active::after {
            background-color: rgb(80, 150, 170);
        }

[data-theme="atriver-dark"] .action-btn {
    color: rgba(255, 255, 255, 0.6);
}

    [data-theme="atriver-dark"] .action-btn:hover {
        background: rgba(80, 150, 170, 0.08);
        color: rgb(80, 150, 170);
        border-color: rgba(80, 150, 170, 0.12);
    }

[data-theme="atriver-dark"] .user-dropdown,
[data-theme="atriver-dark"] .mobile-panel {
    background: rgb(28, 28, 32);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="atriver-dark"] .dropdown-header,
[data-theme="atriver-dark"] .mobile-header {
    background: linear-gradient(135deg, rgba(80, 150, 170, 0.03), rgba(80, 150, 170, 0.01));
}

[data-theme="atriver-dark"] .dropdown-info h4,
[data-theme="atriver-dark"] .mobile-user-details h6 {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="atriver-dark"] .dropdown-info p,
[data-theme="atriver-dark"] .mobile-user-details p {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="atriver-dark"] .dropdown-item,
[data-theme="atriver-dark"] .mobile-link {
    color: rgba(255, 255, 255, 0.75);
}

    [data-theme="atriver-dark"] .dropdown-item:hover,
    [data-theme="atriver-dark"] .mobile-link:hover {
        background: rgba(80, 150, 170, 0.08);
        color: rgb(80, 150, 170);
    }

    [data-theme="atriver-dark"] .dropdown-item.primary {
        background: rgb(80, 150, 170);
        color: rgb(0, 0, 0);
    }

        [data-theme="atriver-dark"] .dropdown-item.primary:hover {
            background: rgb(105, 175, 195);
        }

[data-theme="atriver-dark"] .mobile-toggle span {
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="atriver-dark"] .mobile-toggle:hover span {
    background: rgb(80, 150, 170);
}

/* ====== Print Styles ====== */
@media print {
    .roovia-topbar {
        position: static;
        background: white;
        box-shadow: none;
        border-bottom: 1px solid #ddd;
    }

    .roovia-actions,
    .mobile-panel,
    .user-dropdown {
        display: none;
    }

    .roovia-nav {
        display: flex;
    }

    .nav-link {
        color: black;
    }
}

/* ====== Accessibility Enhancements ====== */
@media (prefers-reduced-motion: reduce) {
    .roovia-topbar,
    .nav-link,
    .user-chevron,
    .mobile-toggle span,
    .mobile-panel,
    .user-dropdown,
    .action-btn i {
        transition: none;
    }

    .nav-badge,
    .action-badge {
        animation: none;
    }

    .credits-display i {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .roovia-topbar {
        border-bottom-width: 2px;
    }

    .nav-link,
    .dropdown-item,
    .mobile-link {
        border: 1px solid transparent;
    }

        .nav-link:focus,
        .dropdown-item:focus,
        .mobile-link:focus {
            border-color: currentColor;
        }
}

/* ====== Performance Optimizations ====== */
.user-dropdown,
.mobile-panel {
    will-change: transform, opacity;
}

.nav-link,
.dropdown-item,
.mobile-link {
    will-change: transform;
}

/* Force hardware acceleration */
.roovia-topbar {
    transform: translateZ(0);
}
/* ====== DARK MODE FIXES - Complete Color Transitions ====== */

/* ====== Logo Handling in Dark Mode ====== */
[data-theme="atriver-dark"] .brand-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

[data-theme="atriver-dark"] .roovia-brand:hover .brand-logo {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(80, 150, 170, 0.3));
}

/* Mobile logo fix */
[data-theme="atriver-dark"] .mobile-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ====== Brand Name Color Enhancement ====== */
[data-theme="atriver-dark"] .brand-name {
    color: rgb(110, 180, 200); /* Brighter teal */
}

[data-theme="atriver-dark"] .mobile-brand {
    color: rgb(110, 180, 200);
}

/* ====== All Icons - Universal Dark Mode Fix ====== */
[data-theme="atriver-dark"] .nav-icon,
[data-theme="atriver-dark"] .action-btn i,
[data-theme="atriver-dark"] .toast-icon i,
[data-theme="atriver-dark"] .error-icon i,
[data-theme="atriver-dark"] .dropdown-item i,
[data-theme="atriver-dark"] .mobile-link i,
[data-theme="atriver-dark"] .mobile-close i,
[data-theme="atriver-dark"] .error-close i,
[data-theme="atriver-dark"] .toast-dismiss i,
[data-theme="atriver-dark"] .user-avatar.guest i,
[data-theme="atriver-dark"] .dropdown-icon i,
[data-theme="atriver-dark"] .mobile-theme-btn i,
[data-theme="atriver-dark"] .mobile-logout i,
[data-theme="atriver-dark"] .mobile-auth-btn i {
    color: rgba(255, 255, 255, 0.65);
}

/* ====== Navigation Link Icons & Text ====== */
[data-theme="atriver-dark"] .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

    [data-theme="atriver-dark"] .nav-link .nav-icon {
        color: rgba(255, 255, 255, 0.6);
    }

    [data-theme="atriver-dark"] .nav-link:hover {
        color: rgb(110, 180, 200);
        background: rgba(80, 150, 170, 0.1);
    }

        [data-theme="atriver-dark"] .nav-link:hover .nav-icon {
            color: rgb(110, 180, 200);
        }

    [data-theme="atriver-dark"] .nav-link.active {
        color: rgb(110, 180, 200);
        background: rgba(80, 150, 170, 0.15);
    }

        [data-theme="atriver-dark"] .nav-link.active .nav-icon {
            color: rgb(110, 180, 200);
        }

/* ====== Action Buttons Enhancement ====== */
[data-theme="atriver-dark"] .action-btn {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

    [data-theme="atriver-dark"] .action-btn:hover {
        background: rgba(80, 150, 170, 0.12);
        color: rgb(110, 180, 200);
        border-color: rgba(80, 150, 170, 0.2);
    }

        [data-theme="atriver-dark"] .action-btn:hover i {
            color: rgb(110, 180, 200);
        }

/* Theme Toggle Special Styling */
[data-theme="atriver-dark"] .theme-toggle:hover i {
    color: #FCD34D; /* Bright yellow for sun icon */
}

/* ====== Credits Display Enhancement ====== */
[data-theme="atriver-dark"] .credits-display {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.04));
    border-color: rgba(52, 211, 153, 0.2);
    color: rgb(52, 211, 153);
}

    [data-theme="atriver-dark"] .credits-display i {
        color: rgb(52, 211, 153);
    }

    [data-theme="atriver-dark"] .credits-display:hover {
        background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(52, 211, 153, 0.06));
        box-shadow: 0 2px 6px rgba(52, 211, 153, 0.2);
    }

/* ====== User Section Improvements ====== */
[data-theme="atriver-dark"] .user-trigger {
    border-color: rgba(255, 255, 255, 0.08);
}

    [data-theme="atriver-dark"] .user-trigger:hover {
        background-color: rgba(80, 150, 170, 0.08);
        border-color: rgba(80, 150, 170, 0.15);
    }

[data-theme="atriver-dark"] .user-chevron {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="atriver-dark"] .guest-text {
    color: rgb(110, 180, 200);
}

[data-theme="atriver-dark"] .user-avatar.guest {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.15);
}

/* ====== Dropdown Menu Dark Mode ====== */
[data-theme="atriver-dark"] .dropdown-header {
    background: linear-gradient(135deg, rgba(80, 150, 170, 0.06), rgba(80, 150, 170, 0.02));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .dropdown-divider {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
}

    [data-theme="atriver-dark"] .dropdown-item i {
        color: rgba(255, 255, 255, 0.5);
    }

    [data-theme="atriver-dark"] .dropdown-item:hover {
        background: rgba(80, 150, 170, 0.1);
        color: rgb(110, 180, 200);
    }

        [data-theme="atriver-dark"] .dropdown-item:hover i {
            color: rgb(110, 180, 200);
        }

    [data-theme="atriver-dark"] .dropdown-item.primary {
        background: rgb(80, 150, 170);
        color: white;
    }

        [data-theme="atriver-dark"] .dropdown-item.primary:hover {
            background: rgb(105, 175, 195);
            color: white;
        }

        [data-theme="atriver-dark"] .dropdown-item.primary i {
            color: white;
        }

    [data-theme="atriver-dark"] .dropdown-item.logout {
        color: #FB7185; /* Brighter red */
    }

        [data-theme="atriver-dark"] .dropdown-item.logout i {
            color: #FB7185;
        }

        [data-theme="atriver-dark"] .dropdown-item.logout:hover {
            background: rgba(251, 113, 133, 0.08);
            color: #FDA4AF;
        }

            [data-theme="atriver-dark"] .dropdown-item.logout:hover i {
                color: #FDA4AF;
            }

/* ====== Mobile Menu Dark Mode Fixes ====== */
[data-theme="atriver-dark"] .mobile-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="atriver-dark"] .mobile-panel {
    background: rgb(25, 25, 30);
    box-shadow: -25px 0 50px rgba(0, 0, 0, 0.5);
}

[data-theme="atriver-dark"] .mobile-header {
    background: linear-gradient(135deg, rgba(80, 150, 170, 0.06), rgba(80, 150, 170, 0.02));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .mobile-close {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

    [data-theme="atriver-dark"] .mobile-close:hover {
        background: rgba(80, 150, 170, 0.1);
        color: rgb(110, 180, 200);
    }

        [data-theme="atriver-dark"] .mobile-close:hover i {
            color: rgb(110, 180, 200);
        }

/* ====== Mobile User Info Dark Mode ====== */
[data-theme="atriver-dark"] .mobile-user-info {
    background: linear-gradient(135deg, rgba(80, 150, 170, 0.08), rgba(80, 150, 170, 0.03));
    border-color: rgba(80, 150, 170, 0.15);
}

[data-theme="atriver-dark"] .mobile-credits {
    color: rgb(52, 211, 153);
}

    [data-theme="atriver-dark"] .mobile-credits i {
        color: rgb(52, 211, 153);
    }

/* ====== Mobile Navigation Links ====== */
[data-theme="atriver-dark"] .mobile-link {
    color: rgba(255, 255, 255, 0.8);
}

    [data-theme="atriver-dark"] .mobile-link i {
        color: rgba(255, 255, 255, 0.5);
    }

    [data-theme="atriver-dark"] .mobile-link:hover {
        background: rgba(80, 150, 170, 0.1);
        color: rgb(110, 180, 200);
    }

        [data-theme="atriver-dark"] .mobile-link:hover i {
            color: rgb(110, 180, 200);
        }

/* ====== Mobile Auth Buttons ====== */
[data-theme="atriver-dark"] .mobile-auth-btn {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

    [data-theme="atriver-dark"] .mobile-auth-btn.primary {
        background: rgb(80, 150, 170);
        color: white;
        border-color: rgb(80, 150, 170);
    }

        [data-theme="atriver-dark"] .mobile-auth-btn.primary:hover {
            background: rgb(105, 175, 195);
            border-color: rgb(105, 175, 195);
        }

    [data-theme="atriver-dark"] .mobile-auth-btn:not(.primary):hover {
        background: rgba(80, 150, 170, 0.08);
        color: rgb(110, 180, 200);
        border-color: rgba(80, 150, 170, 0.2);
    }

/* ====== Mobile Footer Dark Mode ====== */
[data-theme="atriver-dark"] .mobile-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .mobile-theme-btn,
[data-theme="atriver-dark"] .mobile-logout {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

    [data-theme="atriver-dark"] .mobile-theme-btn i,
    [data-theme="atriver-dark"] .mobile-logout i {
        color: rgba(255, 255, 255, 0.65);
    }

    [data-theme="atriver-dark"] .mobile-theme-btn:hover {
        background: rgba(80, 150, 170, 0.08);
        border-color: rgba(80, 150, 170, 0.2);
        color: rgb(110, 180, 200);
    }

        [data-theme="atriver-dark"] .mobile-theme-btn:hover i {
            color: #FCD34D; /* Yellow for theme toggle */
        }

    [data-theme="atriver-dark"] .mobile-logout:hover {
        background: rgba(251, 113, 133, 0.08);
        border-color: rgba(251, 113, 133, 0.2);
        color: #FB7185;
    }

        [data-theme="atriver-dark"] .mobile-logout:hover i {
            color: #FB7185;
        }

/* ====== Mobile Toggle Button ====== */
[data-theme="atriver-dark"] .mobile-toggle span {
    background: rgba(255, 255, 255, 0.65);
}

[data-theme="atriver-dark"] .mobile-toggle:hover {
    background: rgba(80, 150, 170, 0.08);
    border-color: rgba(80, 150, 170, 0.15);
}

    [data-theme="atriver-dark"] .mobile-toggle:hover span {
        background: rgb(110, 180, 200);
    }

/* ====== Badge Colors Enhancement ====== */
[data-theme="atriver-dark"] .nav-badge,
[data-theme="atriver-dark"] .action-badge,
[data-theme="atriver-dark"] .item-badge,
[data-theme="atriver-dark"] .mobile-badge {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    border-color: rgba(25, 25, 30, 0.9);
}

/* ====== Error UI Dark Mode ====== */
[data-theme="atriver-dark"] .error-toast {
    background: rgb(28, 28, 32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .error-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    color: #FB7185;
}

[data-theme="atriver-dark"] .error-details h4 {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="atriver-dark"] .error-details p {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="atriver-dark"] .error-close {
    color: rgba(255, 255, 255, 0.5);
}

    [data-theme="atriver-dark"] .error-close:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.75);
    }

/* ====== Toast Notifications Dark Mode ====== */
[data-theme="atriver-dark"] .roovia-toast {
    background: rgb(28, 28, 32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .toast-message {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="atriver-dark"] .toast-dismiss {
    color: rgba(255, 255, 255, 0.5);
}

    [data-theme="atriver-dark"] .toast-dismiss:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.75);
    }

[data-theme="atriver-dark"] .roovia-toast--success .toast-icon {
    color: rgb(52, 211, 153);
}

[data-theme="atriver-dark"] .roovia-toast--warning .toast-icon {
    color: #FCD34D;
}

[data-theme="atriver-dark"] .roovia-toast--error .toast-icon {
    color: #FB7185;
}

[data-theme="atriver-dark"] .roovia-toast--info .toast-icon {
    color: rgb(110, 180, 200);
}

/* ====== Connection Status Dark Mode ====== */
[data-theme="atriver-dark"] .connection-status {
    background: rgb(28, 28, 32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="atriver-dark"] .status-dot {
    background-color: rgb(52, 211, 153);
}

    [data-theme="atriver-dark"] .status-dot.disconnected {
        background-color: #FB7185;
    }

/* ====== Focus States in Dark Mode ====== */
[data-theme="atriver-dark"] .nav-link:focus,
[data-theme="atriver-dark"] .action-btn:focus,
[data-theme="atriver-dark"] .dropdown-item:focus,
[data-theme="atriver-dark"] .mobile-link:focus {
    outline-color: rgba(110, 180, 200, 0.4);
}

/* ====== Scrollbar Dark Mode (Webkit browsers) ====== */
[data-theme="atriver-dark"] ::-webkit-scrollbar {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="atriver-dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

    [data-theme="atriver-dark"] ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* ====== Selection Colors ====== */
[data-theme="atriver-dark"] ::selection {
    background: rgba(80, 150, 170, 0.3);
    color: white;
}


/* ============================================
   MAIN LAYOUT - Complete with Dark Mode Support
   Using Full Variable System
   ============================================ */

/* ============================================
   GLOBAL LAYOUT STRUCTURE
   ============================================ */

.roovia-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--body-bg);
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: var(--topbar-height);
    transition: background-color var(--transition-normal);
}

.roovia-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: padding var(--transition-normal);
}

.roovia-content {
    flex: 1;
    padding: var(--content-padding);
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    padding-right: var(--space-lg);
    padding-left: var(--space-lg);
    margin-right: auto;
    margin-left: auto;
}

/* ============================================
   ENHANCED ERROR UI
   ============================================ */

#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn var(--duration-normal) var(--easing-decelerate);
}

.error-toast {
    background-color: var(--content-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: slideInUp var(--duration-slow) var(--easing-decelerate);
    border: 1px solid var(--border-divider);
}

.error-content {
    display: flex;
    padding: var(--space-xl);
    gap: var(--space-lg);
    align-items: flex-start;
}

.error-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgb(var(--color-danger-100)), rgb(var(--color-danger-200)));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--color-danger-600));
    font-size: 1.25rem;
}

.error-details {
    flex: 1;
    min-width: 0;
}

    .error-details h4 {
        margin: 0 0 var(--space-sm) 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        font-family: 'Montserrat', sans-serif;
        letter-spacing: -0.025em;
    }

    .error-details p {
        margin: 0 0 var(--space-lg) 0;
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

.error-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.error-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

    .error-close:hover {
        background-color: var(--hover-bg);
        color: var(--text-secondary);
    }

/* ============================================
   TOAST SYSTEM
   ============================================ */

.toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    pointer-events: none;
    max-width: 400px;
    margin-top: var(--topbar-height);
}

.roovia-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background-color: var(--content-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    border-left: 4px solid;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all var(--transition-normal) var(--easing-decelerate);
    pointer-events: auto;
    max-width: 100%;
}

    .roovia-toast.show {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    .roovia-toast.dismissing {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
        transition-duration: var(--duration-fast);
    }

.roovia-toast--success {
    border-left-color: rgb(var(--color-success-500));
}

.roovia-toast--warning {
    border-left-color: rgb(var(--color-warning-500));
}

.roovia-toast--error {
    border-left-color: rgb(var(--color-danger-500));
}

.roovia-toast--info {
    border-left-color: rgb(var(--color-accent-500));
}

.toast-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.roovia-toast--success .toast-icon {
    color: rgb(var(--color-success-600));
}

.roovia-toast--warning .toast-icon {
    color: rgb(var(--color-warning-600));
}

.roovia-toast--error .toast-icon {
    color: rgb(var(--color-danger-600));
}

.roovia-toast--info .toast-icon {
    color: rgb(var(--color-accent-600));
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
}

.toast-dismiss {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

    .toast-dismiss:hover {
        background-color: var(--hover-bg);
        color: var(--text-secondary);
    }

/* ============================================
   CONNECTION STATUS
   ============================================ */

.connection-status {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--content-bg);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(1rem);
    transition: all var(--transition-normal);
    pointer-events: none;
    border: 1px solid var(--border-divider);
}

    .connection-status.show {
        opacity: 1;
        transform: translateY(0);
    }

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background-color: rgb(var(--color-success-500));
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

    .status-dot.disconnected {
        background-color: rgb(var(--color-danger-500));
        animation: none;
    }

.status-text {
    font-family: 'Rubik', sans-serif;
    letter-spacing: 0.025em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199.98px) {
    .roovia-content {
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .roovia-app {
        padding-top: var(--topbar-height);
    }

    .roovia-content {
        padding: var(--space-lg);
    }
}

@media (max-width: 767.98px) {
    .toast-container {
        top: calc(var(--topbar-height) + var(--space-sm));
        right: var(--space-sm);
        left: var(--space-sm);
        max-width: none;
    }

    .roovia-toast {
        padding: var(--space-md);
    }

    .error-content {
        padding: var(--space-lg);
        gap: var(--space-md);
        flex-direction: column;
        text-align: center;
    }

    .error-actions {
        justify-content: center;
    }

    .error-close {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
    }

    .connection-status {
        bottom: var(--space-md);
        right: var(--space-md);
        font-size: 0.6875rem;
    }
}

@media (max-width: 479.98px) {
    .toast-container {
        top: calc(var(--topbar-height) + var(--space-xs));
        right: var(--space-xs);
        left: var(--space-xs);
    }

    .roovia-content {
        padding: var(--space-md);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(2rem) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.roovia-toast,
.error-toast,
.connection-status {
    will-change: transform, opacity;
}

.roovia-app {
    text-rendering: optimizeSpeed;
}

@media (min-width: 768px) {
    .roovia-app {
        text-rendering: optimizeLegibility;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .status-dot {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .roovia-toast,
    .error-toast,
    .connection-status {
        border: 2px solid var(--border-color);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .roovia-app {
        background: white;
        padding-top: 0;
    }

    .roovia-main {
        margin-top: 0;
    }

    #blazor-error-ui,
    .toast-container,
    .connection-status {
        display: none !important;
    }

    .roovia-content {
        padding: 0;
        max-width: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.js-enabled {
    /* Styles that only apply when JavaScript is available */
}

.no-js {
    /* Fallback styles for when JavaScript is disabled */
}

.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

    .is-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.5rem;
        height: 1.5rem;
        margin: -0.75rem 0 0 -0.75rem;
        border: 2px solid transparent;
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.focus-trap {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */

[data-theme="atriver-dark"] .error-icon {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.15));
    color: rgb(248, 113, 113);
}

[data-theme="atriver-dark"] .roovia-toast--success .toast-icon {
    color: rgb(52, 211, 153);
}

[data-theme="atriver-dark"] .roovia-toast--warning .toast-icon {
    color: rgb(251, 191, 36);
}

[data-theme="atriver-dark"] .roovia-toast--error .toast-icon {
    color: rgb(248, 113, 113);
}

[data-theme="atriver-dark"] .roovia-toast--info .toast-icon {
    color: rgb(129, 140, 248);
}

[data-theme="atriver-dark"] .status-dot {
    background-color: rgb(52, 211, 153);
}

    [data-theme="atriver-dark"] .status-dot.disconnected {
        background-color: rgb(248, 113, 113);
    }

/* ============================================
   SMOOTH SCROLLING & CUSTOM SCROLLBAR
   ============================================ */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Custom Scrollbar - Light Theme */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--subtle-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: var(--radius-md);
    border: 3px solid var(--subtle-bg);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--scroll-thumb-hover);
    }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--subtle-bg);
}

/* ====== AGENDRIX NOTIFICATION SYSTEM - Scoped Styles ====== */
.agx-notif-wrapper {
    position: relative;
    display: inline-flex;
}

.agx-notif-trigger {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
}

    .agx-notif-trigger:hover {
        background: rgba(15, 105, 115, 0.04);
        color: rgb(15, 105, 115);
        border-color: rgba(15, 105, 115, 0.08);
        transform: translateY(-0.5px);
    }

    .agx-notif-trigger.is-active {
        background: rgba(15, 105, 115, 0.06);
        color: rgb(15, 105, 115);
        border-color: rgba(15, 105, 115, 0.12);
    }

    .agx-notif-trigger.has-pulse::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 0.5rem;
        border: 2px solid rgb(15, 105, 115);
        opacity: 0;
        animation: agx-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

@keyframes agx-pulse-ring {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    40% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.agx-notif-count {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    min-width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0 0.3125rem;
    border: 2px solid white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.025em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

    .agx-notif-count.is-pulsing {
        animation: agx-count-pulse 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

@keyframes agx-count-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Dropdown Panel */
.agx-notif-panel {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 360px;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow: hidden;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

    .agx-notif-panel.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

/* Panel Header */
.agx-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(15, 105, 115, 0.02), rgba(15, 105, 115, 0.005));
    flex-shrink: 0;
}

.agx-notif-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

    .agx-notif-title i {
        color: rgb(15, 105, 115);
        font-size: 0.875rem;
    }

    .agx-notif-title h3 {
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.9);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.025em;
    }

.agx-notif-new-badge {
    background: rgb(15, 105, 115);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    margin-left: 0.25rem;
}

.agx-notif-mark-read {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

    .agx-notif-mark-read:hover {
        background: rgba(15, 105, 115, 0.04);
        border-color: rgba(15, 105, 115, 0.12);
        color: rgb(15, 105, 115);
    }

    .agx-notif-mark-read i {
        font-size: 0.75rem;
    }

    .agx-notif-mark-read span {
        display: none;
    }

@media (min-width: 480px) {
    .agx-notif-mark-read span {
        display: inline;
    }
}

/* Panel Body */
.agx-notif-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

    .agx-notif-body::-webkit-scrollbar {
        width: 5px;
    }

    .agx-notif-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .agx-notif-body::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 999px;
    }

/* Notification Items */
.agx-notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

    .agx-notif-item:last-child {
        border-bottom: none;
    }

    .agx-notif-item:hover {
        background: rgba(15, 105, 115, 0.02);
    }

    .agx-notif-item.is-unread {
        background: rgba(15, 105, 115, 0.01);
    }

        .agx-notif-item.is-unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: rgb(15, 105, 115);
        }

        .agx-notif-item.is-unread:hover {
            background: rgba(15, 105, 115, 0.03);
        }

/* Icon Styles */
.agx-notif-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    transition: transform 0.15s ease;
}

.agx-notif-item:hover .agx-notif-icon {
    transform: scale(1.05);
}

.agx-notif-icon.type-new {
    background: rgba(15, 105, 115, 0.1);
    color: rgb(15, 105, 115);
}

.agx-notif-icon.type-contact {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
}

.agx-notif-icon.type-update {
    background: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
}

.agx-notif-icon.type-system {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

/* Content */
.agx-notif-content {
    flex: 1;
    min-width: 0;
}

    .agx-notif-content h4 {
        margin: 0 0 0.125rem 0;
        font-size: 0.8125rem;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.9);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .agx-notif-content p {
        margin: 0 0 0.375rem 0;
        font-size: 0.75rem;
        color: rgba(0, 0, 0, 0.6);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.agx-notif-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.6875rem;
    color: rgba(0, 0, 0, 0.45);
}

.agx-notif-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .agx-notif-time i {
        font-size: 0.625rem;
    }

.agx-notif-link {
    color: rgb(15, 105, 115);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .agx-notif-link i {
        font-size: 0.625rem;
    }

/* Unread Indicator */
.agx-notif-dot {
    position: absolute;
    top: 0.875rem;
    right: 1.25rem;
    width: 6px;
    height: 6px;
    background: rgb(15, 105, 115);
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(15, 105, 115, 0.2);
}

/* Loading State */
.agx-notif-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.agx-notif-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-top-color: rgb(15, 105, 115);
    border-radius: 999px;
    animation: agx-spin 0.8s linear infinite;
}

@keyframes agx-spin {
    to {
        transform: rotate(360deg);
    }
}

.agx-notif-loading p {
    margin: 0.75rem 0 0 0;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Empty State */
.agx-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

    .agx-notif-empty i {
        font-size: 2.5rem;
        color: rgba(0, 0, 0, 0.15);
        margin-bottom: 1rem;
    }

    .agx-notif-empty h4 {
        margin: 0 0 0.25rem 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.9);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .agx-notif-empty p {
        margin: 0;
        font-size: 0.75rem;
        color: rgba(0, 0, 0, 0.5);
    }

/* Footer */
.agx-notif-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.01);
    flex-shrink: 0;
}

    .agx-notif-footer a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: rgb(15, 105, 115);
        text-decoration: none;
        font-size: 0.8125rem;
        font-weight: 500;
        padding: 0.375rem;
        border-radius: 0.5rem;
        transition: all 0.15s ease;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.01em;
    }

        .agx-notif-footer a:hover {
            background: rgba(15, 105, 115, 0.05);
        }

    .agx-notif-footer i {
        font-size: 0.75rem;
        transition: transform 0.15s ease;
    }

    .agx-notif-footer a:hover i {
        transform: translateX(2px);
    }

/* Backdrop */
.agx-notif-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1199;
}

/* Dark Theme */
[data-theme="atriver-dark"] .agx-notif-trigger {
    color: rgba(255, 255, 255, 0.65);
}

    [data-theme="atriver-dark"] .agx-notif-trigger:hover {
        background: rgba(80, 150, 170, 0.1);
        color: rgb(110, 180, 200);
        border-color: rgba(80, 150, 170, 0.15);
    }

    [data-theme="atriver-dark"] .agx-notif-trigger.is-active {
        background: rgba(80, 150, 170, 0.12);
        color: rgb(110, 180, 200);
        border-color: rgba(80, 150, 170, 0.2);
    }

    [data-theme="atriver-dark"] .agx-notif-trigger.has-pulse::after {
        border-color: rgb(110, 180, 200);
    }

[data-theme="atriver-dark"] .agx-notif-count {
    border-color: rgb(28, 28, 32);
    background: linear-gradient(135deg, #FB7185, #F87171);
}

[data-theme="atriver-dark"] .agx-notif-panel {
    background: rgb(28, 28, 32);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="atriver-dark"] .agx-notif-header {
    background: linear-gradient(135deg, rgba(80, 150, 170, 0.06), rgba(80, 150, 170, 0.02));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="atriver-dark"] .agx-notif-title i {
    color: rgb(110, 180, 200);
}

[data-theme="atriver-dark"] .agx-notif-title h3 {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="atriver-dark"] .agx-notif-new-badge {
    background: rgb(110, 180, 200);
}

[data-theme="atriver-dark"] .agx-notif-mark-read {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
}

    [data-theme="atriver-dark"] .agx-notif-mark-read:hover {
        background: rgba(80, 150, 170, 0.08);
        border-color: rgba(80, 150, 170, 0.2);
        color: rgb(110, 180, 200);
    }

[data-theme="atriver-dark"] .agx-notif-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="atriver-dark"] .agx-notif-item {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

    [data-theme="atriver-dark"] .agx-notif-item:hover {
        background: rgba(80, 150, 170, 0.06);
    }

    [data-theme="atriver-dark"] .agx-notif-item.is-unread {
        background: rgba(80, 150, 170, 0.03);
    }

        [data-theme="atriver-dark"] .agx-notif-item.is-unread::before {
            background: rgb(110, 180, 200);
        }

[data-theme="atriver-dark"] .agx-notif-content h4 {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="atriver-dark"] .agx-notif-content p {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="atriver-dark"] .agx-notif-meta {
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="atriver-dark"] .agx-notif-link {
    color: rgb(110, 180, 200);
}

[data-theme="atriver-dark"] .agx-notif-dot {
    background: rgb(110, 180, 200);
    box-shadow: 0 0 0 2px rgba(110, 180, 200, 0.2);
}

[data-theme="atriver-dark"] .agx-notif-empty i {
    color: rgba(255, 255, 255, 0.15);
}

[data-theme="atriver-dark"] .agx-notif-empty h4 {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="atriver-dark"] .agx-notif-empty p {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="atriver-dark"] .agx-notif-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top-color: rgba(255, 255, 255, 0.08);
}

    [data-theme="atriver-dark"] .agx-notif-footer a {
        color: rgb(110, 180, 200);
    }

        [data-theme="atriver-dark"] .agx-notif-footer a:hover {
            background: rgba(80, 150, 170, 0.08);
        }

/* Responsive */
@media (max-width: 768px) {
    .agx-notif-panel {
        width: 340px;
    }
}

@media (max-width: 480px) {
    .agx-notif-panel {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }

    .agx-notif-header {
        padding: 0.875rem 1rem;
    }

    .agx-notif-item {
        padding: 0.625rem 1rem;
    }
}