/*
AI Assistance Disclosure (CS50x Final Project):
I used GitHub Copilot Chat (Feb 2026) to help draft/refine parts of this stylesheet.
I reviewed and integrated the changes myself.
*/


:root {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.3;
}

body {
    margin: 0;
    background: #0b0e14;
    color: #e6e6e6;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card {
    background: #131a24;
    border: 1px solid #263245;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #263245;
}

code {
    background: #0b0e14;
    padding: 2px 6px;
    border-radius: 6px;
}

.error {
    color: #ff6b6b;
}

.muted {
    color: #aab3c5;
}

input,
button,
select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #263245;
    background: #0b0e14;
    color: #e6e6e6;
}

button {
    cursor: pointer;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

label {
    font-weight: 600;
}

.flash-wrap {
    margin: 12px 0 18px;
    display: grid;
    gap: 8px;
}

.flash {
    border: 1px solid #263245;
    border-radius: 10px;
    padding: 10px 12px;
    background: #0b0e14;
}

.flash-success {
    border-color: #2b7a4b;
}

.flash-error {
    border-color: #8a2b2b;
}

.flash-info {
    border-color: #2b587a;
}



.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #263245;
    background: #0b0e14;
}

.badge-warn {
    border-color: #8a6b2b;
    color: #ffd28a;
}

.badge-link {
    text-decoration: none;
}

.badge-link:hover {
    text-decoration: none;
}

/* --- Dashboard progress bar (with label) --- */
.progress {
    height: 18px;
    /* taller so percent text fits */
    border-radius: 999px;
    border: 1px solid #263245;
    background: #0b0e14;
    overflow: hidden;

    --pct: 0%;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #2b587a;
    width: var(--pct);
}

.progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #e6e6e6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.progress--done .progress-bar {
    background: #2b7a4b;
    /* green */
}


.progress--no-goal {
    border-style: dashed;
    background: #0b0e14;
}

.progress--no-goal .progress-bar {
    width: 0;
}
