body.dashboard-page {
    background-image: url('../assets/nyc_daytime_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    min-height: 100vh;
}

.dashboard-main {
    padding: 120px 20px 40px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.center-panel {
    background: rgba(255, 255, 255, 0.03);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    padding: 60px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.center-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85); /* Pale white */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 0, 0, 0.1); /* Subtle black border */
    border-radius: 24px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

.panel-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h1 {
    font-size: 3.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.date-time-bar {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.date-time-bar::before,
.date-time-bar::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
}

.dynamic-content {
    min-height: 200px;
}

/* Typography & Messages */
h3.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 30px;
    margin-bottom: 20px;
}

.status-message {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 20px;
}

/* Buttons (Glow Variant) */
.glow-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.glow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6) !important;
    filter: brightness(1.1);
}

.btn-start-task.glow-button {
    border-radius: 12px !important;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 30px !important;
    padding: 30px 40px !important; /* Reduced padding for more content space */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
    gap: 30px; /* Ensure space between text and button */
}

.summary-heading {
    color: #ffffff !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .center-panel {
        padding: 40px 20px;
        border-radius: 24px;
        margin: 10px;
        width: auto;
    }

    .panel-header {
        flex-direction: column;
        gap: 20px;
    }

    .panel-header h1 {
        font-size: 2.2rem;
        word-break: keep-all;
    }

    .date-time-bar {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }

    .date-time-bar::before,
    .date-time-bar::after {
        display: none;
    }

    .summary-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 25px 25px !important;
        gap: 20px !important;
    }

    .summary-heading {
        white-space: normal !important;
        font-size: 1.1rem !important;
        line-height: 1.4;
        text-align: center;
    }

    .btn-summary-action {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* Auth Overlay Styles */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(1, 4, 8, 0.85); /* Much darker overlay */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-modal {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.auth-modal h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.75rem;
    color: #ffffff;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #d1d5db;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

/* Base Nav text adjustments for light body */
#nav-user-name {
    color: #4b5563 !important;
}

/* Notifications */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: color 0.2s;
    margin-right: 15px;
}
.notification-wrapper:hover {
    color: #111827;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fdfbf7;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 330px;
    z-index: 100;
    backdrop-filter: blur(16px);
    transform-origin: top right;
    animation: dropFadeIn 0.2s ease-out forwards;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.dropdown-list {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}
.dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
}
.notification-item:hover {
    background: rgba(0, 0, 0, 0.03);
}
.notification-icon {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}
.notification-content p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}
.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease-out forwards;
}

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

.modal-content.task-detail-modal {
    background: rgba(255, 255, 255, 0.85); /* Matches glassy cards */
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 28px;
    width: min(95%, 700px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 1);
    transform: scale(0.95);
    animation: modalPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modalPop {
    to { transform: scale(1); }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.close-btn:hover {
    color: #ef4444;
}

.modal-body {
    padding: 25px 30px 30px; /* Reduced bottom padding to handle unfilled space */
    overflow-y: auto;
    flex: 1; /* Ensures it takes remaining space and scrolls */
}
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

.info-item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Subtle black border */
    padding: 18px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.2s;
}
.info-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6);
}

.info-item .label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    display: block;
    font-size: 1rem;
    color: #4b5563;
    font-weight: 600;
}

.modal-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.step-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.step-card.active {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.step-card-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.step-card.completed .step-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.step-card.active .step-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.step-card.todo .step-icon {
    background: rgba(0, 0, 0, 0.05);
    color: #9ca3af;
}

.step-title {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.step-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}
.step-time {
    font-size: 0.85rem;
    color: #4b5563;
    text-align: right;
}

/* Animated Task View Cards Extracted From Index */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.task-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal, 0.3s), box-shadow var(--transition-normal, 0.3s), border-color var(--transition-normal, 0.3s);
}

.task-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Glow variant */
.task-card.glow-gold:hover {
    border-color: rgba(218, 165, 32, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(218, 165, 32, 0.1);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.task-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.task-badge.in-progress {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.task-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.task-dates {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ==========================================================================
   RMC etched-glass registration table
   All selectors are scoped to .registration-workspace to avoid collisions
   with the existing dashboard, cards, forms, notification menu, and modal.
   ========================================================================== */
/* Registration table: readable light glass on a bright background */

.registration-workspace {
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    color: #243447;
    font-family: "Inter", sans-serif;
}

.registration-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.registration-table-label,
.registration-record-count {
    color: rgba(226, 235, 243, 0.68);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.8px;
}

.registration-record-count {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    letter-spacing: 1px;
}

.registration-count-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8ec9dc;
    box-shadow: 0 0 8px rgba(142, 201, 220, 0.25);
}

/* Keep the table inside its own scrolling window */
.registration-glass-table {
    width: 100%;
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(44, 62, 80, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(20, 35, 50, 0.16);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}


/* Keep column headings visible while scrolling */
.registration-table {
    width: 100%;
    min-width: 790px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.registration-table thead {
    background: rgba(220, 233, 245, 0.035);
}

.registration-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 48px;
    padding: 0 16px;
    background: rgba(239, 244, 249, 0.98);
    border-bottom: 1px solid rgba(44, 62, 80, 0.2);
    color: #34465a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.registration-table td {
    height: 68px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(44, 62, 80, 0.12);
    color: #29394b;
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}



.registration-table tbody tr:last-child td {
    border-bottom: 0;
}

.registration-table tbody tr:hover td {
    background: rgba(220, 234, 247, 0.65);
}

.registration-table .registration-company-column {
    width: 29%;
}

.registration-table .registration-action-column {
    width: 110px;
    text-align: right;
}

.registration-company-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.registration-company-monogram {
    border: 1px solid rgba(44, 62, 80, 0.2);
    background: rgba(225, 235, 245, 0.85);
    color: #30465c;
}

.registration-company-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.registration-company-name {
    color: #172b40;
    font-size: 13px;
    font-weight: 650;
    white-space: normal;
}

.registration-company-type {
    color: #586b7e;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.registration-jurisdiction {
     color: #29394b;
}

.registration-date {
    color: #526477;
    font-size: 12px;
}

.registration-status {
    color: #805b16;
}


.registration-status-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: #d6b77c;
    box-shadow: 0 0 8px rgba(214, 183, 124, 0.2);
}

.registration-status.is-completed {
    color: #176747;
}

.registration-status.is-completed .registration-status-dot {
    background: #82bba8;
    box-shadow: 0 0 8px rgba(130, 187, 168, 0.2);
}

.registration-status.is-awaiting {
    color: #175b83;
}

.registration-status.is-awaiting .registration-status-dot {
    background: #8ec9dc;
}

.registration-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 8px 0 8px 8px;
    border: 0;
    background: transparent;
    color: #075985;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
    transition: color 180ms ease;
}

.registration-row-action:hover {
    color: #0c3c5b;
}

.registration-row-action:focus-visible {
    outline: 1px solid #8ec9dc;
    outline-offset: 4px;
}

.registration-row-action-arrow {
    font-size: 15px;
    transition: transform 180ms ease;
}

.registration-row-action:hover .registration-row-action-arrow {
    transform: translate(2px, -2px);
}

.registration-table-message {
    height: auto !important;
    padding: 32px 20px !important;
    color: #526477 !important;
    text-align: center;
    white-space: normal !important;
}

.registration-table-error {
    color: #a12622 !important;
}

.registration-table .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .registration-workspace {
        margin-top: 18px;
    }

    .registration-table-meta {
        align-items: flex-start;
    }

    .registration-table-label,
    .registration-record-count {
        font-size: 8px;
        letter-spacing: 1px;
    }


   }
 .registration-glass-table {
           border-radius: 40px;
       }
   /* Registration labels — all screen sizes */
    .registration-table-label,
       .registration-record-count {
    /*   color: #a8465a; */
       color: white;
         text-shadow: 2px 2px 4px red;
       font-size: 15px;
       font-weight: 600;
   }


/* Chrome, Edge, and other WebKit/Blink browsers */
.registration-glass-table
{
   overflow-y: auto;
   scrollbar-width: none;       /* Firefox */
   -ms-overflow-style: none;    /* IE/Edge legacy */
}

.registration-glass-table::-webkit-scrollbar
{
  display: none;               /* Chrome / Safari / Edge */
}

/* Highly Stylized Scrollbar  */

/* Highly Stylized Scrollbar */

.wrapper {
    position: relative;
    height: 400px;
    min-width: 0;
}

/* The table scrolls independently; its native scrollbar is hidden. */
.content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content::-webkit-scrollbar {
    display: none;
}

/* Track begins immediately below the 48px table header. */
.track {
    position: absolute;
    top: 48px;
    right: 3px;
    width: 2px;
    height: calc(100% - 48px);
    background: rgba(100, 116, 139, 0.18);
    border-radius: 4px;
    transform: none;
    z-index: 5;
}

/* Fixed-size thumb, centered on the track. */
.thumb {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);

    width: 12px;
    height: 22px;
    box-sizing: border-box;

    background: rgba(90, 110, 135, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow: 0 0 7px rgba(60, 80, 110, 0.35);

    cursor: grab;
    touch-action: none;
}

.thumb:hover {
    background: rgba(65, 90, 120, 0.95);
    box-shadow: 0 0 10px rgba(60, 80, 110, 0.5);
}

.thumb:active {
    cursor: grabbing;
}
