:root {
    --bg: #f4f6fb;
    --bg-accent: radial-gradient(circle at top left, rgba(13, 110, 253, 0.16), transparent 32%), linear-gradient(135deg, #f8fbff 0%, #eef2f8 100%);
    --card: rgba(255, 255, 255, 0.9);
    --text: #182230;
    --muted: #6c7a89;
    --border: rgba(24, 34, 48, 0.08);
    --late: #ffe1e1;
    --late-border: #dc3545;
    --finished: #ebedf0;
    --finished-text: #66707a;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--bg-accent);
}

.auth-page,
.app-page {
    position: relative;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-card,
.hero-panel,
.form-shell .card,
.table-modern {
    backdrop-filter: blur(12px);
}

.auth-card {
    width: min(100%, 460px);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.hero-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0d6efd;
}

.form-shell {
    max-width: 960px;
}

.table-modern {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(13, 110, 253, 0.04);
}

.table-modern thead th {
    background: rgba(24, 34, 48, 0.03);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 800;
    border-bottom: 0;
    padding: 1rem;
}

.table-modern tbody td {
    padding: 1rem;
    border-color: var(--border);
    vertical-align: top;
}

.task-late td {
    background: var(--late);
    border-top: 1px solid rgba(220, 53, 69, 0.2);
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.task-late td:first-child {
    box-shadow: inset 4px 0 0 var(--late-border);
}

.task-finished td {
    background: var(--finished);
    color: var(--finished-text);
}

.obs-cell {
    min-width: 220px;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: rgba(24, 34, 48, 0.12);
    padding: 0.8rem 1rem;
}

.btn {
    border-radius: 14px;
    padding: 0.75rem 1.15rem;
    font-weight: 700;
}

.btn-primary {
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.card {
    background: var(--card);
    border-radius: 24px;
}

.obs-icon-cell {
    min-width: 110px;
}

.obs-trigger {
    min-width: 42px;
    font-size: 1rem;
    line-height: 1;
}

.obs-modal-content {
    border: 0;
    border-radius: 24px;
}

.obs-modal-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-panel {
        padding: 1.25rem;
    }

    .table-modern thead {
        display: none;
    }

    .table-modern,
    .table-modern tbody,
    .table-modern tr,
    .table-modern td {
        display: block;
        width: 100%;
    }

    .table-modern tbody tr {
        padding: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .table-modern tbody td {
        padding: 0.5rem 0.75rem;
        border: 0;
    }

    .obs-cell {
        min-width: 0;
    }
}