/* ================================================
   ESTILOS GLOBAIS DO SISTEMA
   ================================================ */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #F0F4F8;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Títulos */
h1 {
    color: #1B3A5C;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h1::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #4A90D9, transparent);
}

h2 {
    color: #2C3E50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: #F8FAFC;
}

table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2C3E50;
    border-bottom: 2px solid #E2E8F0;
}

table td {
    padding: 10px 15px;
    border-bottom: 1px solid #E2E8F0;
}

table tbody tr:hover {
    background: #F8FAFC;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-secondary { background: #E2E8F0; color: #4A5568; }

/* Botões */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-primary {
    background: #1B3A5C;
    color: white;
}

.btn-primary:hover {
    background: #2C5F8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 58, 92, 0.3);
}

.btn-success {
    background: #27AE60;
    color: white;
}

.btn-success:hover {
    background: #219A52;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-warning {
    background: #F39C12;
    color: white;
}

.btn-warning:hover {
    background: #E08E0B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: #E53E3E;
    color: white;
}

.btn-danger:hover {
    background: #C53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* Formulários */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 4px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #F8FAFC;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90D9;
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Mensagens */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left-color: #27AE60;
}

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border-left-color: #E53E3E;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-left-color: #F39C12;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border-left-color: #17A2B8;
}

/* Links */
a {
    color: #4A90D9;
    text-decoration: none;
}

a:hover {
    color: #1B3A5C;
}

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #718096; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

/* Grid */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 0;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 6px 10px;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    h1 {
        font-size: 20px;
    }
}