/* ========================================
   PALESTRANTE PRO - CSS BASE
   Identidade Visual: Tons azulados, cinza e branco
   Foco em UX intuitiva e design limpo
   ======================================== */

/* ========================================
   VARIÁVEIS CSS - PALETA DE CORES
   ======================================== */
:root {
    /* Cores Primárias - Tons Azulados */
    --primary-blue: #2563eb;           /* Azul principal */
    --primary-blue-dark: #1d4ed8;     /* Azul escuro para hover */
    --primary-blue-light: #3b82f6;    /* Azul claro */
    --secondary-blue: #60a5fa;        /* Azul secundário */
    --accent-blue: #93c5fd;           /* Azul accent */
    
    /* Tons de Cinza */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Cores de Estado */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: var(--secondary-blue);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordas */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Transições */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */
.navbar {
    background-color: white !important;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--primary-blue-dark) !important;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* ========================================
   CARDS E CONTAINERS
   ======================================== */
.card {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

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

.card-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Cards especiais */
.card-profile {
    border: 2px solid var(--accent-blue);
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
}

.card-feature {
    border-left: 4px solid var(--primary-blue);
}

/* ========================================
   FORMULÁRIOS
   ======================================== */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control:hover, .form-select:hover {
    border-color: var(--gray-300);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Seções de formulário */
.form-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: var(--primary-blue);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

/* ========================================
   ALERTAS E MENSAGENS
   ======================================== */
.alert {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: var(--success-color);
}

.alert-danger, .alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: var(--error-color);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: var(--warning-color);
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: var(--info-color);
}

/* ========================================
   TABELAS
   ======================================== */
.table {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background-color: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* ========================================
   BADGES E TAGS
   ======================================== */
.badge {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.badge-primary {
    background-color: var(--primary-blue);
    color: white;
}

.badge-secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

/* ========================================
   COMPONENTES ESPECIAIS
   ======================================== */

/* Loading States */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.loading.show {
    display: block;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-md);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dividers */
.divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 2rem 0;
}

.divider-text {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-200);
}

.divider-text span {
    background-color: var(--gray-50);
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--accent-blue);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        min-width: auto;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.text-primary { color: var(--primary-blue) !important; }
.text-secondary { color: var(--gray-600) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--error-color) !important; }

.bg-primary { background-color: var(--primary-blue) !important; }
.bg-light { background-color: var(--gray-50) !important; }
.bg-white { background-color: white !important; }

.border-primary { border-color: var(--primary-blue) !important; }
.border-light { border-color: var(--gray-200) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }

/* ========================================
   ANIMAÇÕES E TRANSIÇÕES
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.hover-lift {
    transition: transform var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-shadow {
    transition: box-shadow var(--transition-fast);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}
