/* =====================================================================
   Paleta de cores inspirada no Serasa
   Vermelho principal: #CC092F  |  Vermelho escuro: #A00726
   Cinza texto: #333  |  Cinza fundo: #F5F5F5  |  Branco: #FFF
   ===================================================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #F5F5F5;
    color: #333;
    line-height: 1.5;
}

a { color: #CC092F; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
    background: #CC092F;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.header .logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}
.header .logo span { color: #FFD100; }
.header nav a {
    color: #fff;
    margin-left: 20px;
    font-weight: 500;
}
.header nav a:hover { text-decoration: underline; }

/* ---------- Login ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #CC092F 0%, #A00726 100%);
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 400px;
}
.login-box h1 {
    color: #CC092F;
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
}
.login-box p.sub {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CC092F;
}

.btn {
    display: inline-block;
    background: #CC092F;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn:hover { background: #A00726; text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-secondary { background: #666; }
.btn-secondary:hover { background: #444; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Layout Painel ---------- */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
}
.card h2 {
    color: #CC092F;
    border-bottom: 2px solid #F5F5F5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.stat {
    background: #CC092F;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.stat .num { font-size: 36px; font-weight: bold; }
.stat .lbl { font-size: 13px; opacity: 0.9; }

/* ---------- Tabelas ---------- */
table { width: 100%; border-collapse: collapse; }
table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
table th {
    background: #F5F5F5;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}
table tr:hover { background: #FAFAFA; }

/* ---------- Alertas ---------- */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #D4EDDA; color: #155724; border-left: 4px solid #00A859; }
.alert-error   { background: #F8D7DA; color: #721C24; border-left: 4px solid #CC092F; }
.alert-info    { background: #D1ECF1; color: #0C5460; border-left: 4px solid #17A2B8; }

/* ---------- Score ---------- */
.score-box {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    color: #fff;
}
.score-box .valor { font-size: 60px; font-weight: bold; }
.score-box .classificacao { font-size: 18px; margin-top: 8px; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.badge-ativo   { background: #CC092F; }
.badge-quitado { background: #00A859; }

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