:root {
    /* XCODE CENTER — LIGHT VIBRANT UI */

    --bg: #f4f8ff;
    --bg-2: #eef5ff;
    --bg-3: #e7f0ff;
    --bg-4: #ddeaff;

    --card: rgba(255, 255, 255, 0.88);
    --card-strong: rgba(255, 255, 255, 0.96);
    --card-soft: rgba(248, 251, 255, 0.92);

    --text: #142033;
    --text-soft: #3f5573;
    --muted: #7286a5;

    --brand: #eaf3ff;
    --brand-2: #dbeafe;
    --brand-3: #c9defa;

    --accent: #3b82f6;
    --accent-2: #2563eb;
    --accent-3: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.12);

    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.12);

    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.12);

    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.12);

    --warning: #d97706;
    --warning-soft: rgba(217, 119, 6, 0.12);

    --info: #0284c7;
    --info-soft: rgba(2, 132, 199, 0.12);

    --border: rgba(37, 99, 235, 0.10);
    --border-strong: rgba(37, 99, 235, 0.18);

    --shadow-sm: 0 10px 24px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 16px 40px rgba(59, 130, 246, 0.12);
    --shadow-lg: 0 24px 60px rgba(59, 130, 246, 0.16);

    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 12px;

    --container-max: 1280px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 14%, rgba(6, 182, 212, 0.08), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.10), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(96, 165, 250, 0.10), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: rgba(59, 130, 246, 0.16);
    color: #ffffff;
}

.page-shell {
    position: relative;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(14px, 2vw, 24px);
}

/* Navbar */

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.10);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.08);
}

.navbar-brand {
    letter-spacing: 0.2px;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.brand-badge,
.user-avatar,
.stat-icon,
.quick-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 10px 24px rgba(59, 130, 246, 0.18);
    flex: 0 0 auto;
}

.navbar .nav-link {
    color: var(--text-soft) !important;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    transition: all var(--transition);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2) !important;
    transform: translateY(-1px);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem 0.55rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,255,0.96));
    border: 1px solid rgba(37, 99, 235, 0.10);
    backdrop-filter: blur(10px);
    color: var(--text);
    max-width: 100%;
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    font-size: 1.1rem;
    flex: 0 0 auto;
    border: 1px solid rgba(59, 130, 246, 0.10);
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.user-name {
    color: #142033 !important;
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.user-role-text {
    color: #617896 !important;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-logout-form {
    flex: 0 0 auto;
}

.user-logout-btn {
    min-height: 40px;
    padding-inline: 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    color: #1f3552 !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.06);
}

.user-logout-btn:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.16) !important;
}

.navbar-toggler {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.12) !important;
}

.navbar-toggler-icon {
    filter: invert(22%) sepia(38%) saturate(838%) hue-rotate(181deg) brightness(90%) contrast(91%);
}

/* Shared Panels */

.card,
.table-card,
.page-header-card,
.form-card,
.soft-panel,
.invoice-panel,
.receipt-panel,
.filter-card,
.summary-card,
.inline-panel {
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.card {
    border: 0;
}

.page-header-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 2vw, 1.45rem) clamp(1rem, 2vw, 1.6rem);
    animation: fadeInUp 0.5s ease both;
    background:
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.14), transparent 24%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.10), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.95));
}

.page-header-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -70px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.14), transparent 62%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-2);
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.14);
    max-width: 100%;
}

.page-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
}

.page-title-sm {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
}

.page-subtitle {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
    font-size: 0.97rem;
    max-width: 800px;
}

.hero-actions {
    position: relative;
    z-index: 1;
}

.table-card {
    overflow: hidden;
    animation: fadeInUp 0.55s ease both;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
}

.section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* Tables */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-table,
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    min-width: 100%;
}

.modern-table thead th,
.table thead th {
    background: linear-gradient(180deg, #eff6ff, #e0edff);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(37, 99, 235, 0.10);
    border-top: none;
    padding: 1rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modern-table td,
.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(148, 163, 184, 0.10);
    background: transparent;
    color: var(--text);
}

.modern-table tbody tr,
.table tbody tr {
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.modern-table tbody tr:hover,
.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.table th,
.table td {
    vertical-align: middle;
}

/* Forms */

.form-shell {
    max-width: 760px;
}

.form-shell-lg {
    max-width: 920px;
}

.form-card {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    animation: fadeInUp 0.55s ease both;
}

.form-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.form-text {
    color: var(--text-soft);
}

.form-control,
.form-select {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
    width: 100%;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #8ea0bb;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.26);
    box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
    color: var(--text);
}

.form-select option {
    background: #ffffff;
    color: var(--text);
}

/* Buttons */

.btn {
    border-radius: 14px;
    min-height: 46px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-dark {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #5b96ff, #1d4ed8);
    color: #fff;
}

.btn-modern {
    padding-inline: 1.15rem;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.16);
}

.btn-light:hover,
.btn-outline-dark:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-2);
    border-color: rgba(59, 130, 246, 0.14);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.btn-outline-light {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.btn-outline-light:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-2);
    border-color: rgba(59, 130, 246, 0.16);
}

.btn-primary-soft,
.btn-danger-soft,
.btn-info-soft,
.btn-success-soft,
.btn-warning-soft {
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary-soft {
    color: var(--accent-2);
    background: rgba(59, 130, 246, 0.12);
}

.btn-primary-soft:hover {
    background: rgba(59, 130, 246, 0.20);
    color: #1d4ed8;
}

.btn-danger-soft {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.12);
}

.btn-danger-soft:hover {
    background: rgba(220, 38, 38, 0.20);
    color: #b91c1c;
}

.btn-info-soft {
    color: var(--info);
    background: rgba(2, 132, 199, 0.12);
}

.btn-info-soft:hover {
    background: rgba(2, 132, 199, 0.20);
    color: #0369a1;
}

.btn-success-soft {
    color: var(--success);
    background: rgba(22, 163, 74, 0.12);
}

.btn-success-soft:hover {
    background: rgba(22, 163, 74, 0.20);
    color: #15803d;
}

.btn-warning-soft {
    color: var(--warning);
    background: rgba(217, 119, 6, 0.12);
}

.btn-warning-soft:hover {
    background: rgba(217, 119, 6, 0.20);
    color: #b45309;
}

/* Action / Alerts / Badges */

.action-group {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.alert {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem;
}

.alert-success {
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    color: #166534;
}

.alert-danger {
    background: linear-gradient(180deg, #fef2f2, #fee2e2);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    color: #9a3412;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-soft-success {
    color: #166534;
    background: var(--success-soft);
    border-color: rgba(22, 163, 74, 0.14);
}

.badge-soft-warning {
    color: #9a3412;
    background: var(--warning-soft);
    border-color: rgba(217, 119, 6, 0.14);
}

.badge-soft-secondary {
    color: #475569;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.16);
}

.badge-soft-info {
    color: #0f766e;
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.14);
}

.badge-soft-danger {
    color: #b91c1c;
    background: var(--danger-soft);
    border-color: rgba(220, 38, 38, 0.14);
}

.badge-soft-dark {
    color: #334155;
    background: rgba(226, 232, 240, 0.78);
    border-color: rgba(148, 163, 184, 0.14);
}

/* Live / Rooms */

.live-timer {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 1px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #60a5fa);
    color: #12325f;
    text-align: center;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.14);
    overflow-wrap: anywhere;
}

.room-card {
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 248, 255, 0.94));
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.room-live {
    border-color: rgba(239, 68, 68, 0.16);
    background: linear-gradient(180deg, rgba(255, 245, 245, 0.96), rgba(255, 237, 237, 0.94));
}

.room-idle {
    border-color: rgba(34, 197, 94, 0.16);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(236, 253, 245, 0.94));
}

.room-inactive {
    border-color: rgba(245, 158, 11, 0.16);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.90));
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.status-dot.live {
    background: var(--danger);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.10);
}

.status-dot.idle {
    background: var(--success);
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.08);
}

.status-dot.warning {
    background: var(--warning);
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

.pulse-soft {
    animation: pulseSoft 1.8s infinite;
}

.empty-state {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Login */

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12), transparent 20%),
        radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.10), transparent 18%),
        linear-gradient(180deg, #f4f8ff, #e7f0ff);
}

.login-card {
    width: 100%;
    max-width: 540px;
    padding: clamp(1.2rem, 3vw, 1.85rem);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 28px;
    border: 1px solid rgba(59, 130, 246, 0.10);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.7s ease both;
    color: var(--text);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 900;
    color: var(--text);
}

.login-brand p {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
}

/* Stats */

.stat-card,
.metric-card,
.summary-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 255, 0.96));
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.08);
    color: var(--text);
}

.stat-card::after,
.metric-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -32px;
    top: -34px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
}

.report-stat.stat-primary::after,
.metric-card::after {
    background: rgba(59, 130, 246, 0.10);
}

.report-stat.stat-success::after,
.metric-card.success::after {
    background: rgba(22, 163, 74, 0.10);
}

.report-stat.stat-warning::after,
.metric-card.warning::after {
    background: rgba(217, 119, 6, 0.12);
}

.report-stat.stat-info::after,
.metric-card.active::after {
    background: rgba(6, 182, 212, 0.12);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
}

.dashboard-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1.2rem 1.25rem;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.metric-value {
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    word-break: break-word;
    color: var(--text);
}

/* Grids */

.live-meta-grid,
.estimate-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.live-meta-grid > div,
.estimate-panel > div,
.info-tile {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.live-meta-grid span,
.estimate-panel span,
.info-tile span {
    display: block;
    color: var(--text-soft);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.live-meta-grid strong,
.estimate-panel strong,
.info-tile strong {
    font-weight: 900;
    color: var(--text);
    overflow-wrap: anywhere;
}

.estimate-panel .total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #dbeafe, #60a5fa);
    color: #12325f;
}

.estimate-panel .total span {
    color: rgba(18, 50, 95, 0.78);
}

/* Utility Panels */

.filter-card,
.invoice-panel,
.receipt-panel,
.summary-strip,
.inline-panel {
    padding: 1.2rem 1.25rem;
}

.report-hero,
.invoice-hero,
.receipt-hero {
    background:
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.08), transparent 24%),
        rgba(255, 255, 255, 0.92);
}

.info-grid,
.summary-grid,
.invoice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

/* Quick Links */

.quick-link-list {
    display: grid;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.10);
    transition: var(--transition);
    min-width: 0;
}

.quick-link:hover {
    transform: translateY(-2px);
    color: var(--accent-2);
    box-shadow: var(--shadow-sm);
    background: rgba(239, 246, 255, 0.95);
}

.quick-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    flex: 0 0 auto;
}

.quick-link-meta {
    min-width: 0;
}

.quick-link-meta strong {
    display: block;
    font-size: 0.97rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-link-meta span {
    color: var(--text-soft);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Preloader */

.app-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .45s ease, visibility .45s ease, transform .45s ease;
}

.app-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
}

.app-preloader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.12), transparent 24%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(231, 240, 255, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-preloader__content {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    padding: 2rem 1.5rem;
    border-radius: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(59, 130, 246, 0.10);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.12);
}

.app-preloader__logo-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
}

.app-preloader__logo {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.85rem;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 14px 30px rgba(59, 130, 246, 0.18);
}

.app-preloader__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.20), transparent 65%);
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

.app-preloader__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
}

.app-preloader__subtitle {
    margin: .45rem 0 1rem;
    color: var(--text-soft);
    font-size: .95rem;
}

.app-preloader__loader {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
}

.app-preloader__loader span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.20);
    animation: preloaderDots 1s infinite ease-in-out;
}

.app-preloader__loader span:nth-child(2) {
    animation-delay: .15s;
}

.app-preloader__loader span:nth-child(3) {
    animation-delay: .3s;
}

/* Footer */

.app-footer {
    margin-top: 60px;
    padding: 2.5rem 0 1.5rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(96, 165, 250, 0.08), transparent 22%),
        radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.96));
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand h5 {
    font-weight: 900;
    color: var(--text);
}

.footer-text {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.footer-links a {
    color: var(--text-soft);
    transition: .2s;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-copy,
.footer-credit {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.footer-credit a {
    color: var(--accent-2);
    font-weight: 700;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Print */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .app-navbar,
    .hero-actions,
    .btn,
    form,
    .no-print,
    .app-preloader,
    .app-footer {
        display: none !important;
    }

    .page-header-card,
    .table-card,
    .invoice-panel,
    .receipt-panel,
    .filter-card,
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        color: #000 !important;
    }

    .table th,
    .table td {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSoft {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.16);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

@keyframes preloaderPulse {
    0% {
        transform: scale(.75);
        opacity: .55;
    }
    70% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes preloaderDots {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .5;
    }
    40% {
        transform: translateY(-7px);
        opacity: 1;
    }
}

/* Responsive */

@media (max-width: 1399.98px) {
    .container {
        max-width: 1180px;
    }
}

@media (max-width: 1199.98px) {
    .dashboard-grid,
    .metrics-grid,
    .info-grid,
    .summary-grid,
    .invoice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .page-title {
        font-size: 1.6rem;
    }

    .page-title-sm {
        font-size: 1.35rem;
    }

    .live-timer {
        font-size: 1.1rem;
    }

    .navbar .nav-link {
        width: 100%;
        border-radius: 16px;
        justify-content: flex-start;
    }

    .user-chip {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        border-radius: 22px;
        padding: 0.85rem;
        margin-top: 0.9rem;
    }

    .user-meta {
        min-width: 0;
    }

    .user-name {
        max-width: 100%;
    }

    .user-logout-form {
        width: 100%;
    }

    .user-logout-btn {
        width: 100%;
    }

    .page-header-content,
    .form-card-head,
    .section-head {
        align-items: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding-inline: 14px;
    }

    .page-header-card,
    .form-card,
    .table-card,
    .card {
        border-radius: 18px;
    }

    .page-header-content,
    .form-card-head,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .action-group .btn,
    .action-group form,
    .action-group form .btn {
        width: 100%;
    }

    .modern-table,
    .table {
        min-width: 720px;
    }

    .login-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .dashboard-grid,
    .metrics-grid,
    .info-grid,
    .summary-grid,
    .invoice-grid,
    .live-meta-grid,
    .estimate-panel {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 110px;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 48px;
    }

    .app-preloader__content {
        padding: 1.7rem 1.15rem;
        border-radius: 24px;
    }

    .app-preloader__logo-wrap {
        width: 82px;
        height: 82px;
    }

    .app-preloader__logo {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        border-radius: 20px;
    }

    .app-preloader__title {
        font-size: 1.12rem;
    }

    .app-preloader__subtitle {
        font-size: .88rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.35rem;
    }

    .page-subtitle {
        font-size: 0.92rem;
    }

    .eyebrow {
        font-size: 0.74rem;
        padding: 0.4rem 0.7rem;
    }

    .brand-badge {
        width: 42px;
        height: 42px;
    }

    .navbar-brand {
        font-size: 0.98rem;
        gap: 0.6rem;
    }

    .modern-table,
    .table {
        min-width: 640px;
    }

    .metric-value {
        font-size: 1.35rem;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .live-timer {
        padding: 10px 12px;
        font-size: 1rem;
    }

    .user-chip {
        gap: 0.65rem;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }

    .user-name {
        font-size: 0.95rem;
    }

    .user-role-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .container {
        padding-inline: 12px;
    }

    .page-header-card,
    .form-card,
    .table-card {
        padding-inline: 0.95rem;
    }

    .btn-modern {
        padding-inline: 0.9rem;
    }

    .modern-table,
    .table {
        min-width: 600px;
    }

}

/* Birthday notification bell */
.app-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.notification-dropdown {
    position: relative;
}

.notification-bell {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,255,0.96));
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.notification-bell:hover,
.notification-bell:focus,
.notification-bell.show {
    color: var(--accent-2);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.notification-bell i {
    font-size: 1.2rem;
}

.notification-bell.has-alert {
    animation: bellRing 2.2s ease-in-out infinite;
}

.notification-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22);
}

.notification-menu {
    width: min(380px, calc(100vw - 32px));
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.notification-menu__header,
.notification-menu__footer {
    padding: 1rem 1rem;
    background: linear-gradient(180deg, rgba(248,251,255,0.95), rgba(241,247,255,0.96));
}

.notification-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.notification-menu__title {
    color: var(--text);
    font-weight: 900;
}

.notification-menu__subtitle {
    color: var(--muted);
    font-size: 0.82rem;
}

.notification-menu__counter {
    min-width: 34px;
    height: 34px;
    padding-inline: 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    font-weight: 900;
}

.notification-menu__body {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-empty-state {
    padding: 1.75rem 1rem;
    text-align: center;
}

.notification-empty-state__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.9rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    font-size: 1.35rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem;
    border-radius: 18px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.notification-item:hover {
    background: rgba(59, 130, 246, 0.07);
    transform: translateY(-1px);
}

.notification-item + .notification-item {
    margin-top: 0.35rem;
}

.notification-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.notification-item__icon.birthday-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(236, 72, 153, 0.16));
    color: #db2777;
}

.notification-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-item__title {
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
}

.notification-item__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.notification-item__time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #b45309;
    font-size: 0.79rem;
    font-weight: 800;
}

.notification-menu__footer {
    border-top: 1px solid rgba(37, 99, 235, 0.08);
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    3% { transform: rotate(10deg); }
    6% { transform: rotate(-9deg); }
    9% { transform: rotate(7deg); }
    12% { transform: rotate(-5deg); }
    15% { transform: rotate(0deg); }
}
/* =========================================
   TOPBAR / NAVBAR - FINAL POLISHED VERSION
   ========================================= */

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.app-navbar .container {
    min-height: 88px;
}

.navbar-brand {
    letter-spacing: 0.2px;
    font-size: 1.04rem;
    font-weight: 900;
    color: var(--text) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    margin-inline-end: 1rem;
}

.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 12px 24px rgba(59, 130, 246, 0.20);
    flex: 0 0 auto;
}

.navbar-nav-center {
    gap: 0.2rem;
}

.navbar .nav-link {
    color: var(--text-soft) !important;
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    transition: all var(--transition);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    line-height: 1.1;
    white-space: nowrap;
}

.navbar .nav-link i {
    font-size: 0.95rem;
    opacity: 0.9;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2) !important;
    transform: translateY(-1px);
}

.app-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-inline-start: 1.2rem;
    flex-shrink: 0;
}

.topbar-user-card {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    max-width: 245px;
    padding: 0.52rem 0.8rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.96));
    border: 1px solid rgba(37, 99, 235, 0.10);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.07);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    font-size: 1.12rem;
    flex: 0 0 42px;
    border: 1px solid rgba(59, 130, 246, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.08;
}

.user-name {
    color: var(--text) !important;
    font-size: 0.96rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.user-role-text {
    color: #617896 !important;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-logout-form {
    flex: 0 0 auto;
}

.user-logout-btn {
    min-height: 42px;
    padding-inline: 1rem;
    border-radius: 14px;
    background: #ffffff;
    color: #1f3552 !important;
    border: 1px solid rgba(37, 99, 235, 0.10) !important;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.05);
}

.user-logout-btn:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: var(--accent-2) !important;
    border-color: rgba(37, 99, 235, 0.16) !important;
}

.notification-dropdown {
    position: relative;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,255,0.96));
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.notification-bell:hover,
.notification-bell:focus,
.notification-bell.show {
    color: var(--accent-2);
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.10);
    transform: translateY(-1px);
}

.notification-bell i {
    font-size: 1.05rem;
}

.notification-bell.has-alert {
    animation: bellRing 2.2s ease-in-out infinite;
}

.notification-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.18);
}

.notification-menu {
    width: min(390px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 0.7rem;
}

.notification-menu__header,
.notification-menu__footer {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(248,251,255,0.95), rgba(241,247,255,0.96));
}

.notification-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.notification-menu__title {
    color: var(--text);
    font-weight: 900;
}

.notification-menu__subtitle {
    color: var(--muted);
    font-size: 0.82rem;
}

.notification-menu__counter {
    min-width: 34px;
    height: 34px;
    padding-inline: 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    font-weight: 900;
}

.notification-menu__body {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-empty-state {
    padding: 1.75rem 1rem;
    text-align: center;
}

.notification-empty-state__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.9rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    color: var(--accent-2);
    font-size: 1.35rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem;
    border-radius: 18px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.notification-item:hover {
    background: rgba(59, 130, 246, 0.07);
    transform: translateY(-1px);
}

.notification-item + .notification-item {
    margin-top: 0.35rem;
}

.notification-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.notification-item__icon.birthday-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(236, 72, 153, 0.16));
    color: #db2777;
}

.notification-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-item__title {
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
}

.notification-item__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.notification-item__time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #b45309;
    font-size: 0.79rem;
    font-weight: 800;
}

.notification-menu__footer {
    border-top: 1px solid rgba(37, 99, 235, 0.08);
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    3% { transform: rotate(10deg); }
    6% { transform: rotate(-9deg); }
    9% { transform: rotate(7deg); }
    12% { transform: rotate(-5deg); }
    15% { transform: rotate(0deg); }
}

@media (max-width: 1199.98px) {
    .navbar .nav-link {
        padding: 0.72rem 0.82rem;
        font-size: 0.94rem;
    }

    .topbar-user-card {
        max-width: 210px;
    }

    .user-name {
        max-width: 130px;
    }
}

@media (max-width: 991.98px) {
    .app-navbar .container {
        min-height: auto;
    }

    .navbar-nav-center {
        gap: 0.35rem;
        margin-top: 1rem;
    }

    .navbar .nav-link {
        width: 100%;
        border-radius: 16px;
        justify-content: flex-start;
    }

    .app-navbar-actions {
        width: 100%;
        margin-inline-start: 0;
        margin-top: 1rem;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .notification-dropdown {
        order: 1;
    }

    .topbar-user-card {
        order: 2;
        flex: 1 1 auto;
        max-width: none;
    }

    .user-logout-form {
        order: 3;
        width: 100%;
    }

    .user-logout-btn {
        width: 100%;
    }

    .user-name {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .app-navbar-actions {
        gap: 0.65rem;
    }

    .topbar-user-card {
        width: calc(100% - 56px);
        min-width: 0;
        padding: 0.5rem 0.65rem;
    }

    .notification-bell {
        width: 44px;
        height: 44px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .user-name {
        font-size: 0.92rem;
    }

    .user-role-text {
        font-size: 0.73rem;
    }
}