:root {
    --luminous-blue: #004a99;
    --luminous-yellow: #ffcb05;
    --luminous-dark-blue: #003366;
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --column-bg: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--luminous-dark-blue);
    overflow-x: hidden;
}

.app-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.2rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo {
    height: 45px;
    width: auto;
}

.header-text h1 {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--luminous-blue);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.header-text p {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-right: 1.5rem;
    margin-right: 1rem;
    border-right: 1px solid rgba(0, 0, 102, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--luminous-dark-blue);
}

.user-role {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.2rem;
}

.badge-pch { 
    background: var(--luminous-yellow); 
    color: var(--luminous-dark-blue);
    box-shadow: 0 2px 4px rgba(255, 203, 5, 0.3);
}

.badge-manager { 
    background: var(--luminous-blue); 
    color: white;
    box-shadow: 0 2px 4px rgba(0, 74, 153, 0.3);
}

.btn-icon {
    background: rgba(0, 74, 153, 0.05);
    padding: 0.6rem;
    color: var(--luminous-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 74, 153, 0.1);
}

.btn-icon:hover {
    background: var(--luminous-blue);
    color: white;
    transform: rotate(15deg);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 0.9fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.2rem 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid var(--luminous-blue);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 74, 153, 0.12);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #777;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.stat-value {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--luminous-blue);
    line-height: 1.1;
}

.chart-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--luminous-dark-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    border-bottom: 1px solid rgba(0, 74, 153, 0.1);
    width: 100%;
    padding-bottom: 0.5rem;
}

.chart-title i {
    color: var(--luminous-blue);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    .stats-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
}

.kanban-column {
    background: var(--column-bg);
    backdrop-filter: blur(5px);
    border-radius: var(--radius);
    padding: 1.2rem;
    min-height: 70vh;
    border: 1px solid var(--glass-border);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.column-header h2 {
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--luminous-dark-blue);
}

.column-header h2 i {
    color: var(--luminous-blue);
    font-size: 1.1rem;
}

.count-badge {
    background: var(--luminous-blue);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-list {
    min-height: 100px;
}

/* Task Cards */
.task-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: grab;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: rgba(0, 74, 153, 0.2);
}

.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--luminous-blue);
}

.delete-task {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    color: #e57373;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    opacity: 0.7;
    padding: 4px;
    border-radius: 4px;
}

.delete-task:hover {
    color: #d32f2f;
    transform: scale(1.2);
    opacity: 1;
    background: rgba(211, 47, 47, 0.05);
}

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

/* Category Colors */
.tag-socialmedia { background: #e3f2fd; color: #1565c0; }
.tag-content { background: #f3e5f5; color: #7b1fa2; }
.tag-events { background: #fff8e1; color: #f9a825; }
.tag-leadgen { background: #e8f5e9; color: #2e7d32; }
.tag-seosem { background: #efebe9; color: #4e342e; }
.tag-offline { background: #fce4ec; color: #c2185b; }

.task-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.task-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
    font-size: 0.8rem;
}

.task-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-avatar {
    width: 24px;
    height: 24px;
    background: var(--luminous-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary { background: var(--luminous-blue); color: var(--white); }
.btn-primary:hover { background: var(--luminous-dark-blue); }

.btn-secondary { background: #f0f0f0; color: #444; }
.btn-icon { background: transparent; padding: 0.5rem; color: #666; }
.btn-icon:hover { color: var(--luminous-blue); background: rgba(0,0,0,0.05); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    gap: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: #555; }
input, select, textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 8px; }
input:focus { border-color: var(--luminous-blue); outline: none; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Drag & Drop */
.sortable-ghost {
    opacity: 0.4;
    background: #e3f2fd !important;
}

/* Details Modal Enhancements */
.details-content {
    max-width: 700px;
}

.header-main h2 {
    font-size: 1.5rem;
    color: var(--luminous-dark-blue);
    margin-top: 0.5rem;
}

.details-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.desc-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    background: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 8px;
}

.modal-scrollable-content {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 0.5rem;
}

/* Comments Section */
.comments-section {
    display: flex;
    flex-direction: column;
}

.comments-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.comments-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--luminous-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comment-content {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 0 12px 12px 12px;
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.comment-user {
    font-weight: 600;
    font-size: 0.85rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #999;
}

.comment-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.comment-photo {
    margin-top: 0.8rem;
    border-radius: 8px;
    max-width: 100%;
    display: block;
    cursor: zoom-in;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Comment Form */
.comment-form textarea {
    resize: none;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.8rem;
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 4px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--luminous-blue);
    color: var(--luminous-blue);
}

.btn-outline:hover {
    background: var(--luminous-blue);
    color: white;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 74, 153, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--luminous-blue);
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.1);
}

.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timeline-time {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sortable-drag {
    transform: rotate(2deg);
}

@media (max-width: 768px) {
    .kanban-board { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .app-header { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Footer Styles */
.app-footer {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--luminous-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--luminous-dark-blue);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================
   ENHANCEMENTS: Search, Filters, Deadlines & Dark Theme
   ========================================== */

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    gap: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 74, 153, 0.03);
    border: 1px solid rgba(0, 74, 153, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    max-width: 500px;
    transition: var(--transition);
}

.search-box i {
    color: #888;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--luminous-dark-blue);
}

.search-box:focus-within {
    border-color: var(--luminous-blue);
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 74, 153, 0.1);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--luminous-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-group select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 74, 153, 0.15);
    background: var(--white);
    color: var(--luminous-dark-blue);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    border-color: var(--luminous-blue);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .filter-actions {
        justify-content: flex-end;
    }
}

/* Due Date & Deadlines */
.detail-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.detail-owner-badge,
.detail-due-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-owner-badge {
    background: rgba(0, 74, 153, 0.08);
    color: var(--luminous-blue);
}

.detail-due-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

/* Overdue pulsing card states */
.task-card.overdue {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    animation: pulse-overdue 2s infinite ease-in-out;
}

.task-card.due-soon {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, rgba(254, 252, 232, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
}

@keyframes pulse-overdue {
    0% { box-shadow: 0 4px 6px rgba(239, 68, 68, 0.05); }
    50% { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2); }
    100% { box-shadow: 0 4px 6px rgba(239, 68, 68, 0.05); }
}

@keyframes pulse-overdue-dark {
    0% { box-shadow: 0 4px 6px rgba(239, 68, 68, 0.1); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35); }
    100% { box-shadow: 0 4px 6px rgba(239, 68, 68, 0.1); }
}

.card-due-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
}

.card-due-badge.overdue-text {
    background: #fee2e2;
    color: #b91c1c;
}

.card-due-badge.due-soon-text {
    background: #fef9c3;
    color: #a16207;
}

.card-due-badge.normal-text {
    background: #f1f5f9;
    color: #64748b;
}

/* Edit Mode styling inside Details Modal */
.details-content.is-editing .view-mode {
    display: none !important;
}

.details-content.is-editing .edit-mode {
    display: block !important;
}

.edit-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0.5rem 0;
}

.edit-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

/* ==========================================
   DARK THEME SYSTEM (PERSISTENT)
   ========================================== */

body.dark-theme {
    --white: #1e293b;
    --bg-gradient: linear-gradient(135deg, #0b1329 0%, #1c2541 100%);
    --card-bg: rgba(30, 41, 59, 0.85);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --column-bg: rgba(15, 23, 42, 0.45);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --luminous-dark-blue: #f8fafc;
    --luminous-blue: #3b82f6;
}

/* Specific Dark Mode overrides for premium look */
body.dark-theme input[type="text"],
body.dark-theme input[type="date"],
body.dark-theme select,
body.dark-theme textarea {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #64748b !important;
}

body.dark-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-theme .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .column-header h2 {
    color: #e2e8f0;
}

body.dark-theme .task-card h3 {
    color: #f8fafc;
}

body.dark-theme .task-card p {
    color: #94a3b8;
}

body.dark-theme .task-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .task-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body.dark-theme .comment-item {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .comment-content p {
    color: #cbd5e1;
}

body.dark-theme .comment-content strong {
    color: #f8fafc;
}

body.dark-theme .modal-header {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .timeline-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

body.dark-theme .timeline-time {
    color: #94a3b8;
}

body.dark-theme .timeline-dot {
    border-color: #1e293b;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

body.dark-theme .footer-content {
    color: #94a3b8;
}

body.dark-theme .footer-links a:hover {
    color: #60a5fa;
}

/* Dark mode chart canvas adjustments */
body.dark-theme .chart-title {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme #completion-rate-text {
    color: #f8fafc !important;
}

/* Dark mode specific overlays for overdue & due-soon card styles */
body.dark-theme .task-card.overdue {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.25) 0%, rgba(30, 41, 59, 0.75) 100%) !important;
    animation: pulse-overdue-dark 2s infinite ease-in-out;
}

body.dark-theme .task-card.due-soon {
    background: linear-gradient(135deg, rgba(120, 53, 4, 0.25) 0%, rgba(30, 41, 59, 0.75) 100%) !important;
}

body.dark-theme .card-due-badge.overdue-text {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

body.dark-theme .card-due-badge.due-soon-text {
    background: rgba(217, 119, 6, 0.2);
    color: #fde047;
}

body.dark-theme .card-due-badge.normal-text {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

body.dark-theme .detail-owner-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

body.dark-theme .detail-due-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

body.dark-theme .search-box {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .search-box input {
    color: #f8fafc;
}

body.dark-theme .search-box:focus-within {
    border-color: var(--luminous-blue);
    background: rgba(15, 23, 42, 0.4);
}

body.dark-theme .filter-group select {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* Custom gorgeous scrollbar for details modal & page in dark mode */
body.dark-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.dark-theme ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dark Mode Header Readability Polish */
body.dark-theme .header-text p {
    color: #94a3b8 !important;
}

body.dark-theme .user-info {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .btn-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #3b82f6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .btn-icon:hover {
    background: #3b82f6 !important;
    color: white !important;
}

body.dark-theme .stats-container .stat-card {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

body.dark-theme .stats-container .stat-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    border-color: var(--luminous-yellow) !important;
}

body.dark-theme .stat-label {
    color: #94a3b8 !important;
}

body.dark-theme .stat-value {
    color: #f8fafc !important;
}

body.dark-theme .kanban-column {
    background: var(--column-bg) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
