/* common.css - Estilos Compartilhados do Sistema de Canhotos */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- TOPO / HEADER --- */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* --- NAVEGAÇÃO / MENU --- */
.nav {
    background: #34495e;
    padding: 15px 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav a.active {
    background: #667eea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- CONTEÚDO --- */
.content {
    padding: 30px;
    flex: 1;
}

/* --- BOTÕES GERAIS --- */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* --- STATUS BADGES --- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-processado {
    background: #d4edda;
    color: #155724;
}

.status-rejeitado {
    background: #f8d7da;
    color: #721c24;
}

.status-validado {
    background: #198754;
    color: white;
}

.status-processando {
    background: #fff3cd;
    color: #856404;
}

.status-pendente {
    background: #d1ecf1;
    color: #0c5460;
}

.status-pendente-ia {
    background: #e2d9f3;
    color: #4a148c;
    font-weight: bold;
}

/* --- RODAPÉ --- */
.footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    color: #6c757d;
    font-size: 0.9em;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: stretch;
    }

    .header h1 {
        font-size: 1.8em;
    }
}