/* =========================================
   1. CONFIGURAÇÕES BASE E VARIÁVEIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. COMPONENTES GLOBAIS (PADRÃO)
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color); /* Herda do Config */
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    filter: brightness(90%);
    transform: translateY(-2px);
}

/* Estilo para a Badge de Status no Admin */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    background: #e9ecef;
    color: #495057;
}

/* =========================================
   3. ESTRUTURA E CARDS
   ========================================= */
.hero {
    background-color: var(--primary-color); /* Herda do Config */
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* =========================================
   4. FORMULÁRIOS
   ========================================= */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* =========================================
   5. CÂMERA E MODAL
   ========================================= */
.btn-camera-doc {
    border: 2px dashed #ccc;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
}

.preview-doc { 
    max-height: 150px; 
    border-radius: 8px; 
    display: none; 
    margin: 10px auto; 
    border: 2px solid var(--secondary-color); 
}

.modal-camera {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
}

/* =========================================
   6. PÁGINA DE LOGIN (CENTRALIZAÇÃO)
   ========================================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Faz o card flutuar no meio da tela */
    padding: 40px 20px;
}

.login-card {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

/* Garante que o logo no login fique bem posicionado */
.login-card img {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
}

/* Ajuste fino para os títulos no login */
.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}