/* Estilos globais adicionais para o sistema - Tema Escuro */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1d29 0%, #23252f 100%);
    min-height: 100vh;
    color: #e8eaed;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1d29;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Seleção de texto */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #e8eaed;
}

/* Links */
a {
    color: #8b5cf6;
    transition: color 0.3s;
}

a:hover {
    color: #a78bfa;
}

/* Inputs e selects globais */
input, select, textarea {
    background: #1a1d29;
    color: #e8eaed;
    border: 2px solid #32354a;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

input::placeholder {
    color: #6b7280;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .banco-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar,
    .btn,
    .alert {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #32354a;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #2a2d3a;
    color: #e8eaed;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #32354a;
    z-index: 1000;
}

/* Badges adicionais */
.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

/* Estados de botões */
.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Transições suaves */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}