/**
 * MCM Frontend Portal — Jouw Tuin
 *
 * @package MCM
 * @author MCM Websites
 * @link https://mcmwebsites.nl
 * @since 1.0.0
 */

/* ===========================
   DASHBOARD GRID LAYOUT
   =========================== */

.mcm-dashboard-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.mcm-dashboard-welkom .mcm-welkom {
    height: 100%;
    margin-bottom: 0;
}

.mcm-dashboard-fases .mcm-fase-overzicht {
    height: 100%;
    margin-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
}

.mcm-dashboard-fases .mcm-fase-stap {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 6px 0;
    min-width: auto;
}

.mcm-dashboard-fases .mcm-fase-icoon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.mcm-dashboard-fases .mcm-fase-naam {
    flex: 1;
}

.mcm-dashboard-fases .mcm-fase-lijn {
    width: 3px;
    height: 16px;
    margin-top: 0;
    margin-left: 17px;
    min-width: 3px;
}

.mcm-dashboard-midden .mcm-formulieren {
    margin-bottom: 0;
}

.mcm-form-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mcm-dashboard-midden .mcm-form-card,
.mcm-form-cards .mcm-form-card {
    margin-bottom: 0;
}

.mcm-dashboard-onder {
    margin-top: 24px;
}

/* ===========================
   WELKOM SECTIE
   =========================== */

.mcm-welkom {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-left: 4px solid #008a8a;
}

.mcm-welkom h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ae432b;
    margin: 0 0 12px 0;
}

.mcm-welkom p {
    font-size: 16px;
    color: #555;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.mcm-welkom-fase {
    font-size: 17px;
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mcm-welkom-fase strong {
    color: #008a8a;
}

/* ===========================
   FASE OVERZICHT (stepper)
   =========================== */

.mcm-fase-overzicht {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 32px 16px;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mcm-fase-stap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
    position: relative;
    z-index: 1;
}

.mcm-fase-icoon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mcm-fase-naam {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mcm-fase-check,
.mcm-fase-status {
    font-size: 12px;
    font-weight: 600;
}

/* Verbindingslijnen */
.mcm-fase-lijn {
    flex: 1;
    height: 3px;
    background: #E0E0E0;
    margin-top: 32px;
    min-width: 40px;
    border-radius: 2px;
}

.mcm-fase-lijn-actief {
    background: #66b5b5;
}

/* Status: Afgerond */
.mcm-fase-afgerond .mcm-fase-icoon {
    background: #008a8a;
    border: 3px solid #008a8a;
    color: #fff;
}

.mcm-fase-afgerond .mcm-fase-check {
    color: #008a8a;
    font-size: 14px;
}

.mcm-fase-afgerond .mcm-fase-naam {
    color: #008a8a;
}

/* Status: Actief */
.mcm-fase-actief .mcm-fase-icoon {
    background: #e78e46;
    border: 3px solid #e78e46;
    color: #fff;
    animation: mcm-pulse 2s infinite ease-in-out;
}

.mcm-fase-actief .mcm-fase-status {
    color: #ae432b;
    background: #fdf0ea;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcm-fase-actief .mcm-fase-naam {
    color: #ae432b;
    font-weight: 700;
}

/* Status: Toekomstig */
.mcm-fase-toekomstig .mcm-fase-icoon {
    background: #F5F5F5;
    border: 3px solid #E0E0E0;
    color: #BDBDBD;
}

.mcm-fase-toekomstig .mcm-fase-naam {
    color: #9E9E9E;
}

/* Pulse animatie */
@keyframes mcm-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 142, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(231, 142, 70, 0);
    }
}

/* ===========================
   FORMULIEREN
   =========================== */

.mcm-formulieren {
    margin-bottom: 32px;
}

.mcm-formulieren h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ae432b;
    margin: 0 0 20px 0;
}

.mcm-formulieren-done-heading {
    margin-top: 28px;
    color: #757575;
}

.mcm-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-left: 4px solid #E0E0E0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mcm-form-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.mcm-form-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 6px 0;
}

.mcm-form-card p {
    font-size: 14px;
    color: #757575;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.mcm-form-status {
    font-size: 13px;
    font-weight: 600;
}

/* Open formulier */
.mcm-form-open {
    border-left-color: #e78e46;
}

.mcm-form-open .mcm-form-status {
    color: #ae432b;
}

/* Ingevuld formulier */
.mcm-form-done {
    border-left-color: #008a8a;
}

.mcm-form-done .mcm-form-status {
    color: #008a8a;
}

/* Bezig formulier */
.mcm-form-bezig {
    border-left-color: #2196F3;
}

.mcm-form-bezig .mcm-form-status {
    color: #1565C0;
}

/* Formulier button */
.mcm-form-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    min-height: 44px;
    line-height: 1;
}

.mcm-form-open .mcm-form-button {
    background: #e78e46;
    color: #fff;
}

.mcm-form-open .mcm-form-button:hover {
    background: #ae432b;
    color: #fff;
    transform: translateY(-1px);
}

.mcm-form-done .mcm-form-button {
    background: #e6f3f3;
    color: #008a8a;
    border: 1px solid #b3d9d9;
}

.mcm-form-done .mcm-form-button:hover {
    background: #b3d9d9;
    color: #006666;
}

.mcm-form-bezig .mcm-form-button {
    background: #2196F3;
    color: #fff;
}

.mcm-form-bezig .mcm-form-button:hover {
    background: #1976D2;
    color: #fff;
    transform: translateY(-1px);
}

/* ===========================
   TAKEN
   =========================== */

.mcm-taken {
    margin-bottom: 32px;
}

.mcm-taken h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ae432b;
    margin: 0 0 20px 0;
}

.mcm-taken-leeg {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.mcm-taken-leeg p {
    font-size: 15px;
    color: #9E9E9E;
    margin: 0;
    line-height: 1.6;
}

.mcm-taak {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.mcm-taak:hover {
    background: #F8F9FA;
}

.mcm-taak-status {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mcm-taak-content strong {
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.mcm-taak-content p {
    font-size: 13px;
    color: #757575;
    margin: 0;
    line-height: 1.5;
}

.mcm-taak-done {
    opacity: 0.6;
}

.mcm-taak-done strong {
    text-decoration: line-through;
}

/* ===========================
   NOTICES
   =========================== */

.mcm-login-notice,
.mcm-geen-project {
    background: #fdf0ea;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.mcm-login-notice p,
.mcm-geen-project p {
    font-size: 15px;
    color: #ae432b;
    margin: 0;
}

.mcm-login-notice a,
.mcm-geen-project a {
    color: #ae432b;
    font-weight: 600;
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE (mobile-first)
   =========================== */

@media (max-width: 960px) {
    .mcm-dashboard-top {
        grid-template-columns: 1fr;
    }

    .mcm-form-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mcm-welkom {
        padding: 24px 20px;
    }

    .mcm-welkom h2 {
        font-size: 24px;
    }

    /* Stepper verticaal op mobiel */
    .mcm-fase-overzicht {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 0;
    }

    .mcm-fase-stap {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 8px 0;
        min-width: auto;
    }

    .mcm-fase-icoon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .mcm-fase-naam {
        flex: 1;
    }

    .mcm-fase-lijn {
        width: 3px;
        height: 24px;
        margin-top: 0;
        margin-left: 20px;
        min-width: 3px;
    }

    .mcm-form-card {
        padding: 20px;
    }

    .mcm-form-button {
        display: block;
        text-align: center;
        width: 100%;
        padding: 14px 20px;
    }

    .mcm-taak {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .mcm-welkom h2 {
        font-size: 20px;
    }

    .mcm-fase-icoon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .mcm-fase-lijn {
        margin-left: 18px;
    }
}
