* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

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

.login-header h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #764ba2;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9em;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #764ba2;
}

/* Adicione estas regras ao final do arquivo */
.user-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.user-info p {
    margin-bottom: 10px;
    color: #666;
}

.admin-stats {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.admin-stats h5 {
    color: #667eea;
    margin-bottom: 15px;
}

.welcome-message h4 {
    color: #333;
    margin-bottom: 20px;
}

/* Estilos Gerais */
.dashboard-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.bg-success { background: linear-gradient(135deg, #48bb78, #38a169); }
.bg-warning { background: linear-gradient(135deg, #f6ad55, #ed8936); }

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
}

.user-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.status-badge.active {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.inactive {
    background: #fed7d7;
    color: #822727;
}

.btn-icon {
    background: none;
    border: none;
    color: #4a5568;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: #667eea;
    transform: scale(1.1);
}

.role-select {
    padding: 0.25rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-select:hover {
    border-color: #c3dafe;
}

.crud-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.form-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-card h4 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
}

.list-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.list-card h4 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}
/* Garantir exibição correta dos números */
.stat-card p {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

/* Adicionar estas regras */
.dashboard-overview {
    margin-top: 80px; /* Altura do header + margem */
    padding-top: 100px;
}

.report-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 100px auto 0; /* Margem superior aumentada */
    position: relative;
}

/* No menu principal do dashboard (style.css) */
.navbar {
    z-index: 1000; /* Superior ao header do relatório */
}

/* No header do relatório */
.report-header {
    z-index: 999; /* Um nível abaixo do menu principal */
}

/* Melhorar responsividade */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .crud-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        margin-top: 120px; /* Aumenta espaço para navbar mobile */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }
    
    .nav-links a {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .main-content {
        margin-top: 100px;
        padding: 10px;
    }
}