/* =========================================================
   GETFIT GRAFFITI THEME — CLEAN & CONSISTENT
   ========================================================= */

:root {
    --black: #0d0d0d;
    --dark: #161616;
    --gray: #2a2a2a;
    --white: #f8fafc;

    --orange: #ff7a00;
    --orange2: #ff5e00;
    --green: #00ff66;
    --blue: #00c8ff;
}

/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;
    padding: 20px;
    font-family: "Inter", Arial, sans-serif;

    background: url("../images/getfit.png") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;

    color: var(--white);
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   TITELS
   ========================================================= */

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 8px rgba(0,255,102,0.4);
    text-align: center;
}

.page-title {
    margin-bottom: 20px;
}

/* =========================================================
   INPUTS
   ========================================================= */

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(22,22,22,0.85);
    border: 1px solid var(--gray);
    color: var(--white);
    margin-top: 8px;
    backdrop-filter: blur(3px);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--blue);
}

/* =========================================================
   BUTTONS
   ========================================================= */

button {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: var(--black);
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

button:hover {
    background: linear-gradient(135deg, #ff9a33, #ff6f1a);
}

/* LOGOUT BUTTON */
.header-logout-btn {
    background: var(--green);
    color: var(--black);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.header-logout-btn:hover {
    background: #33ff77;
}

/* =========================================================
   HEADER KNOPPEN
   ========================================================= */

.header-btn-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.progress-btn,
.home-btn {
    background: linear-gradient(135deg, #ffe600, #ffcc00);
    color: #b30000;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.45);
    transition: 0.2s;
}

.progress-btn:hover,
.home-btn:hover {
    background: linear-gradient(135deg, #fff066, #ffd633);
    color: #ff0000;
}

/* =========================================================
   HEADER CARD
   ========================================================= */

.home-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

/* =========================================================
   KAARTEN
   ========================================================= */

.card {
    background: rgba(15, 15, 15, 0.55);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6),
                0 0 20px rgba(0,0,0,0.35);
}

/* =========================================================
   DOELKAART + ANALYSEKAART (GELIJK GESTIJLD)
   ========================================================= */

.goal-card,
.analysis-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: rgba(15, 15, 15, 0.65);
    border-radius: 14px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
}

.analysis-card pre {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    color: var(--white);
    white-space: pre-wrap;
    line-height: 1.5;
}

/* =========================================================
   DOELKAART RING
   ========================================================= */

.goal-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.goal-ring-inner {
    --p: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(255,255,255,0.15) 0);
}

.goal-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 8px rgba(0,255,102,0.4);
}

/* =========================================================
   CHARTS
   ========================================================= */

canvas {
    background: rgba(20, 20, 20, 0.85);
    border-radius: 10px;
    padding: 6px;
    width: 100% !important;
    height: auto !important;
    max-height: 260px;
    backdrop-filter: blur(4px);
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(12px);
    padding: 30px 28px;
    border-radius: 14px;
    width: 100%;
    max-width: 380px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6),
                0 0 20px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container input,
.login-container button {
    width: 360px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   EINDE
   ========================================================= */
/* =========================================================
   POPUP FIX — TERUGGEZET
   ========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 900;
}

.popup-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f172a;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    display: none;
    z-index: 1000;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}
/* =========================================================
   WEEK NAV FIX — PIJLEN TERUG OP DE JUISTE PLEK
   ========================================================= */

.week-nav-card {
    padding: 15px;
    margin-bottom: 0; /* voorkomt dat pijlen los komen te staan */
}

.week-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.week-nav h2 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.week-btn {
    margin: 0; /* voorkomt dat ze boven/onder komen */
}
/* =========================================================
   HOME — 2x4 WEEK GRID
   ========================================================= */

.week-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.day-card {
    background: rgba(15, 15, 15, 0.55);
    padding: 14px;
    border-radius: 12px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    text-align: center;
}

.day-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--green);
}

.day-card p {
    margin: 4px 0;
    font-size: 0.95rem;
}
/* =========================================================
   JAARKALENDER GRID
   ========================================================= */

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.month-card {
    text-align: center;
}

.month-card h2 {
    margin-bottom: 10px;
}

.month-card h3 {
    margin-top: 12px;
    margin-bottom: 6px;
    color: var(--blue);
}
.year-btn {
    background: linear-gradient(135deg, #ffe600, #ffcc00);
    color: #b30000;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.45);
    transition: 0.2s;
}

.year-btn:hover {
    background: linear-gradient(135deg, #fff066, #ffd633);
    color: #ff0000;
}
