/* Estilos modernos para a plataforma Karen Vieh */

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Variáveis CSS */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

/* Botões modernos */
.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 12px 24px !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
}

.btn-outline-primary {
    border: 2px solid #667eea !important;
    color: #667eea !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: white !important;
}

/* Cards modernos */
.card {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Stats cards com gradiente */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 16px !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
}

.stats-card::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
    transform: rotate(45deg) !important;
}

.stats-card .card-body {
    position: relative;
    z-index: 2;
}

/* Course cards com efeitos */
.course-card {
    transition: all 0.3s ease !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.course-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.course-card img {
    transition: transform 0.3s ease !important;
}

.course-card:hover img {
    transform: scale(1.05) !important;
}

/* Hero section moderno */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="250" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Navbar moderno */
.navbar {
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Efeitos de hover para links */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Formulários modernos */
.form-control {
    border-radius: 8px !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

/* Badges modernos */
.badge {
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
}

/* Efeitos de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efeitos de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar e Dropdown */
.navbar {
    z-index: 1050 !important;
}

.dropdown-menu {
    z-index: 1055 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

.dropdown-item {
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    color: #374151 !important;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    transform: translateX(4px) !important;
}

/* Cores mais aconchegantes e profissionais */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --warm-gray: #6b7280;
    --warm-blue: #3b82f6;
    --warm-green: #10b981;
    --warm-purple: #8b5cf6;
}

/* Background mais aconchegante */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    min-height: 100vh;
}

/* Cards com sombra suave - apenas para cards sem background específico */
.card:not(.bg-primary):not(.bg-secondary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info) {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

/* Botões mais suaves */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: white !important;
}

.btn-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: white !important;
}

.btn-info {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
    color: white !important;
}

/* Garantir que o rodapé seja sempre visível */
/* Removido - duplicado abaixo */

/* Layout flexível para garantir que o rodapé fique no final */
/* Removido - duplicado abaixo */

/* Garantir que o conteúdo não sobreponha o rodapé */
/* Removido - duplicado abaixo */

/* CSS específico para o dashboard */
.dashboard-container {
    min-height: calc(100vh - 200px) !important;
    padding-bottom: 3rem !important;
    margin-bottom: 2rem !important;
}

/* Garantir que o rodapé seja sempre visível no dashboard */
/* Removido - duplicado abaixo */

/* Forçar o rodapé a ser sempre visível */
/* Removido - duplicado abaixo */

/* Garantir que não há sobreposição */
/* Removido - duplicado abaixo */

/* Espaçamento adicional para o rodapé */
.py-5 {
    padding-bottom: 4rem !important;
}

/* Garantir que o rodapé seja sempre visível - solução definitiva */
html, body {
    height: 100% !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

main {
    flex: 1 0 auto !important;
    padding-bottom: 2rem !important;
}

footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    position: relative !important;
    z-index: 1000 !important;
    clear: both !important;
    width: 100% !important;
}

/* Garantir que o conteúdo não sobreponha o rodapé */
.container {
    position: relative !important;
    z-index: 1 !important;
}

/* Corrigir problema específico do rodapé cortado */
@media (max-height: 800px) {
    .dashboard-container {
        min-height: auto !important;
        padding-bottom: 1rem !important;
    }
    
    main {
        padding-bottom: 1rem !important;
    }
}

/* Garantir que o rodapé seja sempre visível em telas pequenas */
@media (max-width: 768px) {
    .dashboard-container {
        padding-bottom: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    footer {
        position: relative !important;
        margin-top: 1rem !important;
    }
}