:root {
    --pink: #f9dfe8;
    --peach: #ffe8d7;
    --lavender: #efe6ff;
    --cream: #fffaf5;
    --coral: #d88ea2;
    --gold-soft: #e5c98d;
    --gold-deep: #caa867;
    --ink: #5a4650;
    --panel: rgba(255, 255, 255, 0.78);
    --shadow-soft: 0 18px 36px rgba(131, 93, 108, 0.12);
    --shadow-strong: 0 18px 36px rgba(131, 93, 108, 0.14);
    --border-soft: rgba(216, 142, 162, 0.18);
    --title: #7e5a67;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.95), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(239, 230, 255, 0.9), transparent 20%),
        linear-gradient(180deg, #fffafd 0%, #fdf0f5 48%, #fff6ed 100%);
}

h1,
h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--title);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--coral);
    font-size: 0.82rem;
    font-weight: 700;
}

.button {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eeb7c7, #d88ea2);
    color: #fffafc;
    text-decoration: none;
    font-weight: 700;
}

.login-shell,
.dashboard-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.login-layout,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

.login-hero,
.login-card,
.dashboard-hero,
.dashboard-card {
    border-radius: 28px;
    background: var(--panel);
}

.login-hero,
.login-card {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.dashboard-hero,
.dashboard-card {
    box-shadow: var(--shadow-soft);
}

.login-hero {
    padding: 28px 24px;
}

.login-hero::before,
.login-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-hero::before {
    top: -30px;
    right: -10px;
    width: 140px;
    height: 140px;
    background: rgba(249, 223, 232, 0.72);
}

.login-card::after {
    bottom: -24px;
    left: -18px;
    width: 110px;
    height: 110px;
    background: rgba(255, 232, 215, 0.82);
}

.login-hero .eyebrow,
.login-hero h1,
.login-hero p {
    position: relative;
    z-index: 1;
}

.login-hero h1 {
    font-size: clamp(2.5rem, 10vw, 4.6rem);
    line-height: 1;
}

.login-hero p,
.login-card p,
.dashboard-hero p,
.dashboard-card p,
.dashboard-card li {
    line-height: 1.75;
}

.login-hero p {
    margin: 16px 0 0;
    max-width: 36rem;
}

.login-card {
    padding: 24px 20px;
    border: 1px solid var(--border-soft);
}

.login-card p {
    margin: 10px 0 0;
}

.field {
    margin-top: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #7a5b67;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(216, 142, 162, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 4px rgba(229, 201, 141, 0.2);
}

button {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #eeb7c7, #d88ea2);
    color: #fffafc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(216, 142, 162, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(216, 142, 162, 0.3);
}

.message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
    line-height: 1.6;
}

.message.error {
    background: rgba(255, 234, 238, 0.95);
    border: 1px solid rgba(216, 100, 130, 0.18);
    color: #8b4457;
}

.note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(90, 70, 80, 0.78);
}

.dashboard-hero {
    padding: 28px 24px;
}

.dashboard-hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
}

.dashboard-grid {
    margin-top: 18px;
}

.dashboard-card {
    padding: 22px 20px;
}

.dashboard-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

/* Navigation - updated */
.main-nav {
    margin-bottom: 24px;
}

.nav-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 245, 0.95));
    border: 1px solid rgba(249, 223, 232, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(131, 93, 108, 0.08);
    padding: 6px;
    backdrop-filter: blur(10px);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 15px;
    color: var(--title);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    min-width: 90px;
}

.nav-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: all 0.25s ease;
}

.nav-svg {
    color: var(--coral);
    transition: all 0.25s ease;
}

.nav-link:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link:hover .nav-svg {
    color: var(--title);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(249, 223, 232, 0.4), rgba(255, 232, 215, 0.3));
    color: var(--coral);
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--pink), rgba(255, 232, 215, 0.8));
    color: var(--title);
    box-shadow: 0 4px 15px rgba(216, 142, 162, 0.2);
    font-weight: 700;
}

.nav-link.active::before {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: var(--coral);
    border-radius: 1px;
}

/* Mobile menu header - alleen zichtbaar op mobiel */
.mobile-menu-header {
    display: none;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.mobile-menu-header:hover {
    background: rgba(216, 142, 162, 0.1);
}

.menu-label {
    color: var(--title);
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 2px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--coral);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hamburger animatie bij open menu */
.nav-container.menu-open .hamburger-icon .hamburger-line:first-child {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-container.menu-open .hamburger-icon .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-container.menu-open .hamburger-icon .hamburger-line:last-child {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

@media (max-width: 640px) {
    .main-nav {
        position: relative;
        z-index: 100;
    }
    
    .nav-container {
        position: relative;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 245, 0.95));
        border: 1px solid rgba(249, 223, 232, 0.6);
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(131, 93, 108, 0.08);
        padding: 12px 16px;
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-container {
        cursor: pointer;
        outline: none;
    }
    
    .nav-container:focus {
        box-shadow: 0 8px 25px rgba(131, 93, 108, 0.15), 0 0 0 2px rgba(216, 142, 162, 0.3);
    }
    
    .mobile-menu-header {
        display: flex;
        z-index: 102;
    }
    
    .nav-list {
        position: absolute;
        top: calc(100% + 1px);
        left: -1px;
        right: -1px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 245, 0.98));
        border: 1px solid rgba(249, 223, 232, 0.6);
        border-top: none;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 25px rgba(131, 93, 108, 0.15);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101;
    }
    
    /* Open menu staat */
    .nav-container.menu-open .nav-list {
        max-height: 300px;
        opacity: 1;
        padding: 12px 8px;
        transform: translateY(0);
    }
    
    .nav-link {
        justify-content: flex-start;
        gap: 12px;
        min-width: auto;
        padding: 12px 16px;
        font-size: 0.94rem;
        margin: 2px 0;
        border-radius: 12px;
        text-align: left;
    }
    
    .nav-icon {
        width: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav-svg {
        width: 16px;
        height: 16px;
    }
}

.actions {
    margin-top: 18px;
}

@media (min-width: 820px) {
    .login-shell,
    .dashboard-page {
        padding: 32px 24px 48px;
    }

    .login-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 24px;
    }

    .login-hero {
        padding: 42px 36px;
    }

    .login-card {
        padding: 32px 28px;
    }

    .dashboard-hero {
        padding: 40px 36px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 22px;
    }
}

/* To-Do Styling */

/* Statistieken */
.todo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: var(--panel);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.stat-card.urgent {
    background: linear-gradient(135deg, rgba(255, 234, 238, 0.95), rgba(255, 250, 245, 0.98));
    border-color: rgba(216, 100, 130, 0.3);
}

.stat-card.warning {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(255, 250, 245, 0.98));
    border-color: rgba(229, 201, 141, 0.4);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--title);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0.8;
    font-weight: 600;
}

/* Filters */
.todo-filters {
    background: var(--panel);
    border-radius: 20px;
    padding: 0;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.filters-header:hover {
    background: rgba(249, 223, 232, 0.1);
}

.filters-header h3 {
    margin: 0;
    color: var(--title);
    font-size: 1.1rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-indicator {
    background: var(--coral);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.toggle-arrow {
    color: var(--coral);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.filters-content {
    border-top: 1px solid rgba(216, 142, 162, 0.15);
    padding: 24px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--title);
    margin-bottom: 4px;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 1px solid rgba(216, 142, 162, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 0.9rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(216, 142, 162, 0.15);
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.button-filter {
    background: linear-gradient(135deg, var(--coral), var(--gold-deep));
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.button-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 142, 162, 0.3);
}

.button-reset {
    background: rgba(90, 70, 80, 0.1);
    color: var(--ink);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(90, 70, 80, 0.2);
    transition: all 0.2s ease;
}

.button-reset:hover {
    background: rgba(90, 70, 80, 0.15);
}

.button-primary {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)) !important;
    color: var(--ink) !important;
    box-shadow: 0 4px 15px rgba(229, 201, 141, 0.3);
}

/* Tabel styling */
.table-container {
    background: var(--panel);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.todo-table {
    width: 100%;
    border-collapse: collapse;
}

.todo-table th {
    background: linear-gradient(135deg, rgba(249, 223, 232, 0.6), rgba(255, 232, 215, 0.4));
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--title);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-soft);
}

.todo-table th a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.todo-table th a:hover {
    color: var(--coral);
}

.todo-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(216, 142, 162, 0.1);
    vertical-align: top;
}

.todo-row:hover {
    background: rgba(249, 223, 232, 0.15);
    transform: translateY(-1px);
}

.todo-row.afgerond {
    opacity: 0.7;
}

.todo-row {
    transition: all 0.2s ease;
}

.date-cell {
    font-size: 0.85rem;
    color: var(--ink);
}

.date-cell .no-deadline {
    color: var(--ink);
    opacity: 0.5;
}

.title-cell {
    min-width: 200px;
}

.todo-title {
    font-weight: 600;
    color: var(--title);
    margin-bottom: 4px;
}

.todo-description {
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0.8;
    line-height: 1.4;
}

.priority-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.priority-icon {
    font-size: 1rem;
}

.priority-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-nieuw {
    background: rgba(229, 201, 141, 0.2);
    color: var(--gold-deep);
    border: 1px solid rgba(229, 201, 141, 0.3);
}

.badge-uitvoering {
    background: rgba(216, 142, 162, 0.2);
    color: var(--coral);
    border: 1px solid rgba(216, 142, 162, 0.3);
}

.badge-afgerond {
    background: rgba(134, 179, 134, 0.2);
    color: #4a7c4a;
    border: 1px solid rgba(134, 179, 134, 0.3);
}

.badge-geannuleerd {
    background: rgba(90, 70, 80, 0.1);
    color: var(--ink);
    border: 1px solid rgba(90, 70, 80, 0.2);
}

.actiehouder-cell .actiehouder-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.actiehouder-mama {
    background: rgba(255, 182, 193, 0.3);
    color: #8b4457;
}

.actiehouder-papa {
    background: rgba(173, 216, 230, 0.3);
    color: #4682b4;
}

.actiehouder-samen {
    background: rgba(221, 160, 221, 0.3);
    color: #8b3a8b;
}

.deadline-cell .deadline-info {
    font-size: 0.85rem;
}

.deadline-info.overdue {
    color: #d32f2f;
    font-weight: 600;
}

.deadline-info.nearby {
    color: #f57c00;
    font-weight: 600;
}

.deadline-warning {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.no-deadline {
    color: var(--ink);
    opacity: 0.5;
}

.actions-cell {
    display: flex;
    gap: 8px;
}

.action-button {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-button.view {
    background: rgba(134, 179, 134, 0.1);
    border-color: rgba(134, 179, 134, 0.2);
}

.action-button.edit {
    background: rgba(229, 201, 141, 0.1);
    border-color: rgba(229, 201, 141, 0.2);
}

.action-button.delete {
    background: rgba(255, 99, 99, 0.1);
    border-color: rgba(255, 99, 99, 0.2);
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.empty-state h3 {
    color: var(--title);
    margin: 0 0 12px;
}

.empty-state p {
    color: var(--ink);
    opacity: 0.8;
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.todo-summary {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--ink);
    opacity: 0.8;
}

/* Responsive aanpassingen */
@media (min-width: 640px) {
    .filter-row {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
    
    .filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .todo-table {
        font-size: 0.85rem;
    }
    
    .todo-table th,
    .todo-table td {
        padding: 8px 6px;
    }
    
    .actions-cell {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-button {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
}

/* To-Do Formulier Styling */
.todo-form-section {
    background: var(--panel);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    margin-top: 24px;
}

.todo-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--title);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(216, 142, 162, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(216, 142, 162, 0.15);
}

.form-group textarea {
    min-height: 100px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.button-secondary {
    background: rgba(90, 70, 80, 0.08);
    color: var(--ink);
    border: 1px solid rgba(90, 70, 80, 0.15);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
}

.button-secondary:hover {
    background: rgba(90, 70, 80, 0.12);
    transform: translateY(-1px);
}

.message-section {
    margin: 20px 0;
}

.message.success {
    background: rgba(134, 179, 134, 0.15);
    border: 1px solid rgba(134, 179, 134, 0.3);
    color: #2e7d32;
}

/* Responsive formulier */
@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }
    
    .form-actions {
        justify-content: flex-start;
    }
}

/* Todo Detail View Styling */
.todo-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(229, 201, 141, 0.15);
    color: var(--gold-deep);
    border: 1px solid rgba(229, 201, 141, 0.3);
}

.todo-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.todo-detail-card {
    background: var(--panel);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.todo-detail-card h2 {
    margin: 0 0 20px;
    color: var(--title);
    font-size: 1.3rem;
}

.todo-detail-card h3 {
    margin: 24px 0 12px;
    color: var(--title);
    font-size: 1.1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item,
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item label,
.meta-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--title);
    opacity: 0.8;
}

.detail-item div,
.meta-item div {
    font-size: 0.95rem;
    color: var(--ink);
}

.description-section {
    border-top: 1px solid rgba(216, 142, 162, 0.15);
    padding-top: 20px;
    margin-top: 20px;
}

.description-text {
    background: rgba(249, 223, 232, 0.1);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(216, 142, 162, 0.15);
    line-height: 1.6;
    font-size: 0.95rem;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(216, 142, 162, 0.15);
    flex-wrap: wrap;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(216, 142, 162, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-header strong {
    color: var(--title);
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--ink);
    opacity: 0.7;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink);
}

.no-comments {
    color: var(--ink);
    opacity: 0.7;
    font-style: italic;
    margin: 0;
}

.overdue {
    color: #d32f2f !important;
    font-weight: 600;
}

/* Responsive detail view */
@media (min-width: 768px) {
    .todo-detail-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
    
    .detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }
    
    .detail-actions {
        justify-content: flex-start;
    }
}
