@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg-dark: #f0f4f8;
    /* Soft blue-white */
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-sidebar: #ffffff;
    --border-color: #dee2e6;
    --border-color-hover: #adb5bd;

    --text-primary: #212529;
    /* Bootstrap dark */
    --text-secondary: #495057;
    --text-muted: #6c757d;

    --primary-cyan: #0d6efd;
    /* Bootstrap primary blue */
    --primary-violet: #0a58ca;
    /* Darker blue */
    --accent-emerald: #198754;
    /* Bootstrap success green */
    --accent-gold: #ffc107;
    /* Bootstrap warning yellow */

    --emergency-red: #dc3545;
    /* Bootstrap danger red */
    --emergency-red-glow: rgba(220, 53, 69, 0.25);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button {
    border-radius: 50px !important;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #f4f6fa 0%, #ebedf3 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16.5px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #110e1e;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism Classes (Light Theme) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(24, 21, 40, 0.04);
    transition: var(--transition);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(24, 21, 40, 0.08), 0 0 20px 0 rgba(99, 102, 241, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-violet), #4f46e5);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #787af6, var(--primary-violet));
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--border-color-hover);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--primary-cyan), #0284c7);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    font-weight: 700;
}

.btn-cyan:hover {
    background: linear-gradient(135deg, #0ea5e9, var(--primary-cyan));
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    transform: scale(1.02);
}

.btn-doctor {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-doctor:hover {
    background: linear-gradient(135deg, #34d399, var(--accent-emerald));
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.btn-patient {
    background: linear-gradient(135deg, var(--accent-gold), #92400e);
    color: white;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.2);
}

.btn-patient:hover {
    background: linear-gradient(135deg, #d97706, var(--accent-gold));
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4);
    transform: scale(1.02);
}

.btn-logout {
    background: linear-gradient(135deg, var(--emergency-red), #be123c);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.2);
    font-weight: 700;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #fb7185, var(--emergency-red));
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
    transform: scale(1.02);
}

.btn-home {
    background: linear-gradient(135deg, var(--primary-violet), #4f46e5);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-home:hover {
    background: linear-gradient(135deg, #818cf8, var(--primary-violet));
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: scale(1.02);
}

.btn-emergency {
    background: linear-gradient(135deg, var(--emergency-red), #be123c);
    color: white;
    box-shadow: 0 4px 15px var(--emergency-red-glow);
    font-weight: 700;
    padding: 8px 24px;
    animation: emergency-pulse 2s infinite;
}

.emergency-glowing-title {
    font-size: 2.2rem;
    color: var(--emergency-red);
    text-shadow: 0 0 15px var(--emergency-red-glow);
    font-weight: 800;
    margin: 0;
}

.btn-emergency:hover {
    background: linear-gradient(135deg, #fb7185, var(--emergency-red));
    box-shadow: 0 6px 25px rgba(225, 29, 72, 0.5);
    transform: scale(1.04);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
    background: white;
}

select.form-control option {
    background: white;
    color: var(--text-primary);
}

/* Nav & Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 95px;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
    background: rgba(240, 244, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-img {
    height: 140px;
    margin-top: -45px;
    margin-bottom: -45px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.nav-item {
    opacity: 0;
    animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

.nav-item a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-item a:not(.btn):hover {
    color: var(--primary-violet);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 95px);
    margin-top: 95px;
}

/* ═══════════════════════════════════════════
   NEW SIDEBAR DESIGN
   ═══════════════════════════════════════════ */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 95px);
    position: fixed;
    top: 95px;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 4px; }

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.98rem;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    letter-spacing: 0.01em;
}

.sidebar-item a i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-item a:hover {
    background: rgba(13, 110, 253, 0.06);
    color: var(--primary-cyan);
    transform: translateX(3px);
}

.sidebar-item a:hover i {
    transform: scale(1.15);
}

.sidebar-item.active a {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(99, 102, 241, 0.08));
    color: var(--primary-cyan);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--primary-cyan);
}

.sidebar-item.active a i {
    color: var(--primary-cyan);
}

/* Sidebar section label */
.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 16px 14px 6px;
    font-weight: 700;
}

/* Sidebar bottom section */
.sidebar-menu:last-child {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-menu:last-child .sidebar-item a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.sidebar-menu:last-child .sidebar-item a:hover {
    color: var(--emergency-red);
    background: rgba(220, 53, 69, 0.06);
}

/* Emergency link special style */
.sidebar-item a[style*="emergency-red"],
.sidebar-item.emergency-link a {
    color: var(--emergency-red) !important;
    font-weight: 600;
}

.sidebar-item a[style*="emergency-red"]:hover {
    background: rgba(220, 53, 69, 0.08) !important;
    transform: translateX(3px);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none !important;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 10px !important;
    transition: all 0.2s ease;
    z-index: 1100;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-cyan);
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100%;
}

@media (min-width: 993px) {
    .main-content {
        margin-left: 260px;
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #110e1e;
}

.dashboard-title, .glass-card h2, .glass-card h4 {
    font-weight: 500 !important;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.15), rgba(13, 110, 253, 0.15));
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--primary-cyan);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-violet), var(--primary-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #110e1e;
    margin: 8px 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-blue {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary-cyan);
}

.icon-purple {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-violet);
}

.icon-green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald);
}

.icon-red {
    background: rgba(225, 29, 72, 0.08);
    color: var(--emergency-red);
}

/* Table styling */
.custom-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: white;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: #EBF5FF;
    padding: 16px;
    font-weight: 700;
    color: var(--primary-violet);
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.custom-table th:hover {
    background: #DBEAFE;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(180, 83, 9, 0.1);
    color: var(--accent-gold);
}

.badge-approved {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary-cyan);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.badge-cancelled {
    background: rgba(225, 29, 72, 0.1);
    color: var(--emergency-red);
}

/* Animations */
@keyframes emergency-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* ============================================
   TABLET BREAKPOINT (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: row;
        min-height: calc(100vh - 73px);
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 270px;
        min-width: 270px;
        height: 100vh;
        padding: 24px 14px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        z-index: 1050;
        border-right: 1px solid rgba(0,0,0,0.06);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        padding: 20px;
        width: 100%;
    }

    /* Responsive tables */
    .custom-table-container {
        -webkit-overflow-scrolling: touch;
    }

    .custom-table th,
    .custom-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ============================================
   MOBILE BREAKPOINT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        flex-direction: row;
        gap: 5px;
        text-align: left;
        padding: 10px 3%;
        align-items: center;
        z-index: 1000;
    }

    .navbar > div {
        justify-content: flex-start;
        width: auto;
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 70px;
        margin-top: -15px;
        margin-bottom: -15px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-links {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 4px;
        margin-left: auto;
    }

    .nav-item a.btn {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
    }

    .btn-home, .btn-cyan, .btn-secondary {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
    }

    .notification-container {
        margin-right: 8px;
    }

    .notification-bell {
        font-size: 1.2rem;
    }

    .notification-dropdown {
        width: 280px;
        right: -50px;
    }

    .user-badge {
        padding: 4px 8px;
        border: none;
        background: transparent;
    }

    .user-badge span:not(.user-avatar) {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .emergency-banner {
        flex-direction: column;
        text-align: center;
    }

    .emergency-glowing-title {
        font-size: 1.6rem;
    }

    /* Table cells: smaller text */
    .custom-table th,
    .custom-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    /* Modal responsiveness */
    #editPatientModal > div,
    [id*="Modal"] > .glass-card {
        max-width: 95vw !important;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .responsive-grid-2 {
        grid-template-columns: 1fr;
    }

    .responsive-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Dashboard header forms */
    .dashboard-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dashboard-header form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dashboard-header form > div {
        flex-direction: column;
        align-items: stretch !important;
        width: 100% !important;
    }

    .dashboard-header input,
    .dashboard-header select {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Beds ticker */
    .beds-ticker-content {
        flex-direction: column;
        gap: 8px;
    }

    .ticker-item {
        font-size: 0.85rem;
    }
}

/* ============================================
   SMALL MOBILE BREAKPOINT (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .main-content {
        padding: 12px;
    }

    .glass-card {
        padding: 14px;
        border-radius: 12px;
    }

    .glass-card:hover {
        transform: none;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .navbar {
        padding: 8px 3%;
    }

    .logo-img {
        height: 55px;
        margin-top: -10px;
        margin-bottom: -10px;
    }

    /* Force all inline forms to stack */
    form[style*="display: flex"],
    form[style*="display:flex"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Sidebar narrower on very small screens */
    .sidebar {
        width: 250px;
    }

    .sidebar-item a {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* Table action buttons */
    td[style*="text-align: right"] {
        white-space: normal !important;
    }

    .custom-table th,
    .custom-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    /* Notification dropdown */
    .notification-dropdown {
        width: 260px;
        right: -80px;
    }

    .notification-item {
        padding: 10px 12px;
    }

    .notification-item p {
        font-size: 0.82rem;
    }
}

/* ============================================
   EXTRA SMALL BREAKPOINT (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .dashboard-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .logo-img {
        height: 45px;
        margin-top: -8px;
        margin-bottom: -8px;
    }

    .sidebar {
        width: 220px;
    }

    .sidebar-item a {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 5%;
        right: 5%;
        width: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sidebar, .navbar, .mobile-menu-toggle,
    .notification-container, .sidebar-overlay {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .glass-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Notification System */
.notification-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.notification-bell {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--accent-gold);
    position: relative;
    padding: 5px;
    transition: var(--transition);
}

.notification-bell:hover {
    color: var(--primary-violet);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--emergency-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    transform: translate(20%, -20%);
    box-shadow: 0 0 5px rgba(225, 29, 72, 0.5);
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 130%;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(24, 21, 40, 0.1);
    z-index: 2000;
}

.notification-dropdown.active {
    display: block;
    animation: fade-in-down 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--primary-violet);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.03);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notification-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
