/**
 * Global Premium Colors - Academia Krav Maga v2.0
 * Aplica cores premium (#667eea + #764ba2) em TODOS os elementos padrão
 * Última atualização: 02/10/2025
 */

/* ============================================== */
/* BOTÕES PRIMÁRIOS - Gradient Azul → Roxo */
/* ============================================== */

button[class*="btn"]:not([class*="btn-secondary"]):not([class*="btn-danger"]):not([class*="btn-cancel"]),
.btn-primary,
.btn-save,
.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

button[class*="btn"]:not([class*="btn-secondary"]):not([class*="btn-danger"]):not([class*="btn-cancel"]):hover,
.btn-primary:hover,
.btn-save:hover,
.action-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================== */
/* HEADERS - Gradient Sutil */
/* ============================================== */

.module-header,
.page-header,
.section-header,
header.primary,
.header-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 2px solid #667eea;
}

.module-header h1,
.page-header h1,
.section-header h1 {
    color: #667eea;
    font-weight: 600;
}

/* ============================================== */
/* CARDS - Borda e Hover Premium */
/* ============================================== */

.card,
.data-card,
.course-card,
.student-card,
.stat-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.card:hover,
.data-card:hover,
.course-card:hover,
.student-card:hover,
.stat-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

/* ============================================== */
/* STATS - Números com Cor Premium */
/* ============================================== */

.stat-number,
.stat-value,
.metric-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ============================================== */
/* TABS - Ativa com Gradient */
/* ============================================== */

.tab-btn,
.tab-button,
.nav-tab {
    color: #64748B;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-button.active,
.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.tab-btn:hover,
.tab-button:hover,
.nav-tab:hover {
    color: #667eea;
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

/* ============================================== */
/* FORMS - Focus States Premium */
/* ============================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================== */
/* BADGES - Cores Premium */
/* ============================================== */

.badge-primary,
.badge-active,
.status-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
}

.badge-error,
.badge-danger {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: white;
}

/* ============================================== */
/* LINKS - Cor Premium */
/* ============================================== */

a:not(.btn):not(.tab-btn) {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:not(.btn):not(.tab-btn):hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================== */
/* TABELAS - Header Premium */
/* ============================================== */

table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

table thead th {
    color: #667eea;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
}

table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
    transition: background 0.3s ease;
}

/* ============================================== */
/* PROGRESS BARS - Gradient Premium */
/* ============================================== */

.progress-bar,
.progress-fill,
.bar-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.progress-container,
.progress-track {
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

/* ============================================== */
/* SIDEBAR - Item Ativo Premium */
/* ============================================== */

.sidebar-nav a.active,
.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-left: 3px solid #667eea;
}

.sidebar-nav a:hover,
.nav-item:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

/* ============================================== */
/* MODAIS - Header Premium */
/* ============================================== */

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}

.modal-footer button[type="submit"],
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ============================================== */
/* ICONS - Cor Premium */
/* ============================================== */

.icon-primary,
.icon-premium {
    color: #667eea;
}

.icon-primary:hover,
.icon-premium:hover {
    color: #764ba2;
}

/* ============================================== */
/* LOADING STATES - Spinner Premium */
/* ============================================== */

.spinner,
.loading-spinner {
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================== */
/* BREADCRUMBS - Cor Premium */
/* ============================================== */

.breadcrumb a {
    color: #667eea;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb .active {
    color: #64748B;
}

/* ============================================== */
/* DROPDOWNS - Hover Premium */
/* ============================================== */

.dropdown-item:hover,
.menu-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #667eea;
}

/* ============================================== */
/* PAGINATION - Ativo Premium */
/* ============================================== */

.pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.pagination button:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

/* ============================================== */
/* ALERTS - Premium Styling */
/* ============================================== */

.alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    color: #667eea;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10B981;
    color: #10B981;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
    color: #F59E0B;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    color: #EF4444;
}

/* ============================================== */
/* TOOLTIPS - Premium Background */
/* ============================================== */

.tooltip,
[data-tooltip]:hover::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* ============================================== */
/* SCROLLBAR - Premium Colors */
/* ============================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
}

/* ============================================== */
/* CHECKBOXES & RADIOS - Premium Accent */
/* ============================================== */

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* ============================================== */
/* RESPONSIVE - Mobile Premium */
/* ============================================== */

@media (max-width: 768px) {
    .module-header-premium,
    .module-header {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    button[class*="btn"] {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================== */
/* PRINT - Remove Gradients */
/* ============================================== */

@media print {
    .module-header,
    .card,
    button {
        background: white !important;
        color: black !important;
        border: 1px solid #000 !important;
    }
}
