body.dashboard-page {
    background-image: url('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;
    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;
}
