/* assets/css/style.css */
:root {
    --primary: #814a84;
    --primary-dark: #663869;
    --green: #a2c62b;
    --teal: #099485;
    --orange: #eb5c2e;
    --red: #cd1719;
    --yellow: #fcd31f;
    --white: #ffffff;
    --bg-light: #f6f7fb;
    --text-dark: #2c2e3e;
    --text-muted: #6c757d;
    --border-color: #e2e5ec;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Avenir Book', 'Avenir', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .title-bold {
    font-family: 'Avenir Black', 'Avenir', Arial, sans-serif;
    font-weight: 800;
    color: var(--primary);
}

.topbar {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-badge {
    background: var(--green);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-pill {
    background: var(--yellow);
    color: var(--text-dark);
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Avenir Medium', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { filter: brightness(0.95); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { filter: brightness(0.95); }

.btn-orange { background: var(--orange); color: var(--white); }
.btn-danger { background: var(--red); color: var(--white); padding: 6px 12px; font-size: 0.85rem; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.container {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-top: 4px solid var(--primary);
}

.card-teal { border-top-color: var(--teal); }
.card-green { border-top-color: var(--green); }
.card-orange { border-top-color: var(--orange); }

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 74, 132, 0.15);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

th {
    background-color: #f1eef5;
    color: var(--primary);
    font-weight: 800;
}

tr:hover {
    background-color: #faf9fc;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}
.badge-superadmin { background: var(--primary); color: var(--white); }
.badge-coadmin { background: var(--teal); color: var(--white); }
.badge-step { background: #e9ecef; color: var(--text-dark); }
.badge-done { background: var(--green); color: var(--white); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-error { background: #fde8e8; color: var(--red); border-left: 4px solid var(--red); }
.alert-success { background: #eef7d6; color: #4d630c; border-left: 4px solid var(--green); }

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.active { display: flex; }
.modal-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
}
