* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --app-bg: #08131f;
    --panel-bg: rgba(8, 25, 39, 0.78);
    --panel-border: rgba(159, 215, 255, 0.16);
    --card-bg: rgba(11, 34, 54, 0.9);
    --input-bg: rgba(227, 244, 255, 0.95);
    --accent: #4fd1c5;
    --accent-strong: #20b7aa;
    --accent-soft: rgba(79, 209, 197, 0.14);
    --warning: #ffd166;
    --text-main: #eff8ff;
    --text-muted: #9eb6ca;
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.35);
}

body {
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(79, 209, 197, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.14), transparent 25%),
        linear-gradient(180deg, #0a1826 0%, #07111b 100%);
}

.app-shell {
    position: relative;
}

.app-navbar {
    background: rgba(6, 16, 26, 0.76);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
    color: var(--text-main);
}

.app-navbar .navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.app-navbar .nav-link {
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
    color: #ffffff;
    opacity: 1;
}

.hero-panel,
.controls-panel,
.content-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.hero-panel {
    padding: 2rem;
}

.eyebrow,
.panel-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #a5fff6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-copy,
.section-heading p,
.tasks-caption,
.field-hint {
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 49, 74, 0.95), rgba(7, 28, 43, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.stat-value {
    font-size: 2rem;
    color: #ffffff;
}

.controls-panel,
.content-panel {
    padding: 1.5rem;
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 0.5rem;
}

.section-heading-inline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
}

.search-box svg {
    left: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #577288;
}

.app-input {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--input-bg);
    color: #0d1a24;
}

.app-input:focus {
    border-color: rgba(79, 209, 197, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(79, 209, 197, 0.18);
}

.pill-input {
    min-height: 52px;
    border-radius: 999px;
}

#search {
    padding-left: 48px;
}

.app-textarea {
    min-height: 220px;
    border-radius: 22px;
    resize: vertical;
}

.field-hint {
    margin-top: 0.45rem;
    font-size: 0.85rem;
}

.app-primary-btn,
.filter-trigger,
.utility-icon-btn {
    border: none;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-primary-btn {
    padding: 0.9rem 1.4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #04212a;
    font-weight: 700;
}

.filter-trigger {
    min-height: 52px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-icon-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    background: rgba(79, 209, 197, 0.18);
    color: #dffffb;
}

.app-primary-btn:hover,
.filter-trigger:hover,
.utility-icon-btn:hover,
.task-card:hover {
    transform: translateY(-2px);
}

.app-primary-btn:hover,
.utility-icon-btn:hover {
    box-shadow: 0 16px 30px rgba(32, 183, 170, 0.24);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.task-card:hover {
    border-color: rgba(79, 209, 197, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.task-card h5,
.task-card p {
    color: #f3fbff;
}

.task-card p {
    margin-bottom: 0;
    color: #d1e6f5;
}

.task-card small {
    color: #8fb2c8;
}

.task-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.7rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.task-status-badge.pending {
    background: rgba(255, 209, 102, 0.15);
    color: var(--warning);
}

.task-status-badge.completed {
    background: rgba(79, 209, 197, 0.15);
    color: #97fff6;
}

.form-check-input {
    margin-top: 0.35rem;
    width: 1.15rem;
    height: 1.15rem;
    border-color: rgba(255, 255, 255, 0.25);
    background-color: transparent;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.task-actions .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    padding: 2rem;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.empty-state i {
    font-size: 2rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.utility-panel {
    max-width: 820px;
}

.textarea-wrapper {
    position: relative;
}

.utility-textarea {
    min-height: 280px;
}

@media (max-width: 991.98px) {
    .hero-panel,
    .controls-panel,
    .content-panel {
        border-radius: 22px;
    }

    .section-heading-inline {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 575.98px) {
    .hero-panel,
    .controls-panel,
    .content-panel {
        padding: 1.1rem;
    }

    .task-card {
        flex-direction: column;
    }

    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
