:root {
    --primary-purple: #6d28d9;    
    --dark-purple: #4c1d95;       
    --light-bg: #f5f3ff;          
    --border-purple: #ddd6fe;
    --text-main: #1e1b4b;         
    --success-green: #059669;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
}

/* --- REUSABLE UI --- */
.btn-primary {
    background: var(--primary-purple);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: 0.2s;
}

.btn-primary:hover { background: var(--dark-purple); box-shadow: 0 10px 15px rgba(109, 40, 217, 0.2); }

.btn-outline {
    background: white;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

.btn-outline:hover { background: var(--primary-purple); color: white; }

/* --- FORM CARD (INDEX) --- */
.main-content { display: flex; justify-content: center; padding: 40px 20px; }
.form-card {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.1);
    border: 1px solid var(--border-purple);
}

.field { margin-bottom: 20px; }
label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; color: var(--primary-purple); }
input, select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border-purple);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.check-container {
    background: #fdfbff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-purple);
    margin-bottom: 25px;
}
.check-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; }
.check-item input { width: 18px; height: 18px; accent-color: var(--primary-purple); cursor: pointer; }
.dotted-divider { border-top: 2px dotted var(--border-purple); margin: 15px 0; }

/* --- DASHBOARD ELEMENTS --- */
.db-container { max-width: 800px; margin: 0 auto; padding: 20px; min-height: 100vh; }
.db-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.accordion-item {
    background: white;
    border: 1.5px solid var(--border-purple);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: 0.2s;
}

.accordion-header.active { background: var(--primary-purple); color: white; }
.accordion-header.active span { color: white !important; }

.accordion-content { display: none; padding: 20px; border-top: 1px solid var(--border-purple); }
.accordion-content.open { display: block; }

.filter-group {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.filter-label { font-size: 0.75rem; font-weight: 800; color: var(--primary-purple); text-transform: uppercase; }

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.score-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--success-green);
    background: #f0fdf4;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #dcfce7;
}

.footer-sig { text-align: right; padding: 30px; font-size: 0.8rem; font-weight: 700; color: var(--primary-purple); opacity: 0.7; }
