/* assets/css/nexum-rebranding.css */

.text-primary {
    color: var(--nexum-purple) !important;
}

:root {
    --nexum-purple: #4A148C;
    --nexum-purple-light: #7B1FA2;
    --nexum-purple-dark: #2E0854;
    --nexum-purple-soft: rgba(74, 20, 140, 0.1);
    --nexum-gap: 1.5rem;
    --nexum-gap-lg: 2rem;
    --nexum-border-radius: 12px;
    --nexum-shadow: 0 4px 20px rgba(74, 20, 140, 0.08);
    --nexum-shadow-hover: 0 8px 30px rgba(74, 20, 140, 0.15);
}

/* CONTAINERS FLUÍDOS */
.main-card-wrapper {
    background: white;
    border-radius: var(--nexum-border-radius);
    box-shadow: var(--nexum-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 20, 140, 0.05);
}

.main-card-wrapper:hover {
    box-shadow: var(--nexum-shadow-hover);
    transform: translateY(-2px);
}

/* ESPAÇAMENTOS PADRONIZADOS */
.nexum-gap { gap: var(--nexum-gap) !important; }
.nexum-gap-lg { gap: var(--nexum-gap-lg) !important; }
.nexum-mb { margin-bottom: var(--nexum-gap) !important; }
.nexum-mb-lg { margin-bottom: var(--nexum-gap-lg) !important; }

/* TÍTULOS COM ÍCONES */
.nexum-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--nexum-purple-dark);
    font-weight: 700;
    margin-bottom: var(--nexum-gap);
    font-size: 1.5rem;
}

.nexum-section-title i {
    color: var(--nexum-purple);
    font-size: 1.25rem;
}

.nexum-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--nexum-purple-dark);
    margin-bottom: var(--nexum-gap-lg);
}

/* BOTÕES MODERNOS */
.btn-nexum-primary {
    background: linear-gradient(135deg, var(--nexum-purple) 0%, var(--nexum-purple-light) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.2);
}

.btn-nexum-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(74, 20, 140, 0.3);
    color: white;
}

.btn-nexum-outline {
    border: 2px solid var(--nexum-purple);
    color: var(--nexum-purple);
    background: transparent;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nexum-outline:hover {
    background: var(--nexum-purple);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.2);
}

.btn-nexum-soft {
    background: var(--nexum-purple-soft);
    color: var(--nexum-purple);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-nexum-soft:hover {
    background: var(--nexum-purple);
    color: white;
    transform: translateY(-1px);
}

/* TABELAS MODERNAS */
.nexum-table {
    background: white;
    border-radius: var(--nexum-border-radius);
    overflow: hidden;
    box-shadow: var(--nexum-shadow);
    border: none;
}

.nexum-table thead th {
    background: linear-gradient(135deg, var(--nexum-purple) 0%, var(--nexum-purple-light) 100%);
    color: white;
    font-weight: 600;
    padding: 16px 20px;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nexum-table tbody td {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid rgba(74, 20, 140, 0.05);
    vertical-align: middle;
}

.nexum-table tbody tr:nth-child(even) {
    background-color: rgba(74, 20, 140, 0.02);
}

.nexum-table tbody tr:hover {
    background-color: rgba(74, 20, 140, 0.05);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

/* FORMULÁRIOS MODERNOS */
.nexum-form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.nexum-form-control:focus {
    border-color: var(--nexum-purple);
    box-shadow: 0 0 0 0.2rem rgba(74, 20, 140, 0.15);
    background: white;
}

.nexum-form-label {
    font-weight: 600;
    color: var(--nexum-purple-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* CARDS ESTATÍSTICAS */
.nexum-stat-card {
    background: white;
    border-radius: var(--nexum-border-radius);
    padding: 24px;
    box-shadow: var(--nexum-shadow);
    border: 1px solid rgba(74, 20, 140, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nexum-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--nexum-purple) 0%, var(--nexum-purple-light) 100%);
}

.nexum-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nexum-shadow-hover);
}

.nexum-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
}

.nexum-stat-icon.primary { background: linear-gradient(135deg, var(--nexum-purple) 0%, var(--nexum-purple-light) 100%); }
.nexum-stat-icon.success { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.nexum-stat-icon.warning { background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%); }
.nexum-stat-icon.info { background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%); }

.nexum-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--nexum-purple-dark);
    margin: 0;
}

.nexum-stat-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* EMPTY STATES */
.nexum-empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
}

.nexum-empty-state i {
    font-size: 4rem;
    color: var(--nexum-purple-soft);
    margin-bottom: 24px;
    opacity: 0.7;
}

.nexum-empty-state h5 {
    color: var(--nexum-purple-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.nexum-empty-state p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* BADGES MODERNOS */
.nexum-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nexum-badge.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.nexum-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.nexum-badge.primary {
    background: var(--nexum-purple-soft);
    color: var(--nexum-purple);
    border: 1px solid rgba(74, 20, 140, 0.2);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .nexum-gap { gap: 1rem !important; }
    .nexum-gap-lg { gap: 1.5rem !important; }
    
    .nexum-stat-card {
        padding: 20px;
    }
    
    .nexum-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .nexum-stat-value {
        font-size: 1.5rem;
    }
    
    .nexum-page-title {
        font-size: 1.5rem;
    }
    
    .nexum-section-title {
        font-size: 1.25rem;
    }
}

/* ANIMAÇÕES SUAVES */
@keyframes nexumFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nexum-fade-in {
    animation: nexumFadeIn 0.6s ease-out;
}

/* LOADING STATES */
.nexum-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 20, 140, 0.2);
    border-radius: 50%;
    border-top-color: var(--nexum-purple);
    animation: spin 1s ease-in-out infinite;
}

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