/* ================================================
   VARIÁVEIS CSS E CONFIGURAÇÕES GERAIS
   ================================================ */

:root {
    /* Cores primárias */
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #fecdd3;

    /* Cores Neutras (para fundo, textos e contraste) */
    --neutral-900: #111827;
    --neutral-700: #374151;
    --neutral-500: #6b7280;
    --neutral-100: #f3f4f6;

    /* Cores Secundárias (contrastantes, para chamadas ou detalhes) */
    --secondary: #6366f1;      /* Azul-violeta (bom contraste com rosa) */
    --secondary-dark: #4f46e5;
    --secondary-light: #dcdafe;
    --secondary-darker: #1e3c72;
    --secondary-mid-dark: #2a5298;


    /* Cores de Destaque / Acento */
    --accent: #facc15;         /* Amarelo solar (ótimo para botões ou detalhes) */
    --accent-dark: #ca8a04;
    --accent-light: #fef9c3;

    /* Cores de Suporte */
    --success: #10b981;        /* Verde esmeralda */
    --warning: #f97316;        /* Laranja queimado */
    --error: #dc2626;          /* Vermelho alerta */
    
    /* Cores secundárias */
    /* --secondary: #6b7280;
    --secondary-light: #9ca3af;
    --secondary-dark: #4b5563; */
    
    /* Backgrounds e superfícies */
    --background: #ffffff;
    --surface: #f9fafb;
    --foreground: #0f172a;
    
    /* Cores de apoio */
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    
    /* Bordas e divisores */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Sombras */
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-md: rgba(0, 0, 0, 0.12);
    --shadow-lg: rgba(0, 0, 0, 0.16);
    
    /* Cores de texto hierárquicas */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --text-disabled: #d1d5db;
    --text-inverse: #ffffff;
    --text-accent: var(--primary);
    --text-link: #2563eb;
    --text-link-hover: #1d4ed8;
    --text-success: #059669;
    --text-warning: #d97706;
    --text-error: #dc2626;
    --text-info: #2563eb;
    
    /* Estados de interação */
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-surface: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}

p {
    font-size: 1rem !important;
    line-height: 1.5;
}

/* Dark theme */
[data-theme="dark"] {
    --primary: #f43f5e;
    --primary-dark: #e11d48;
    --primary-light: #4c1d24;
    
    --secondary: #64748b;
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    
    --background: #0f172a;
    --surface: #1e293b;
    --foreground: #f8fafc;
    
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    
    --border: #334155;
    --border-light: #475569;
    
    --shadow: rgba(0, 0, 0, 0.25);
    --shadow-md: rgba(0, 0, 0, 0.35);
    --shadow-lg: rgba(0, 0, 0, 0.45);
    
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-disabled: #6b7280;
    --text-inverse: #111827;
    --text-accent: var(--primary);
    --text-link: #60a5fa;
    --text-link-hover: #93c5fd;
    --text-success: #34d399;
    --text-warning: #fbbf24;
    --text-error: #f87171;
    --text-info: #60a5fa;
    
    --accent: #fbbf24;
    --accent-light: #365314;
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;
    --info: #60a5fa;
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-surface: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}

/* ================================================
   ESTILOS GERAIS E BASE
   ================================================ */

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    background-color: var(--background);
    color: var(--foreground);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

section {
    overflow: hidden;
}

/* Container padronizado */
.container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.bg-neural-100 {
    background-color: var(--neutral-100);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Utility classes */
.text-primary { 
    color: var(--primary) !important; 
}

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

.text-mid-light { 
    color: var(--secondary-light) !important; 
}

.bg-primary { 
    background-color: var(--primary) !important; 
}

.text-muted { 
    color: var(--muted-foreground) !important; 
}

.text-secondary { 
    color: var(--secondary) !important; 
}

.text-accent { 
    color: var(--accent) !important; 
}

.text-warning { 
    color: var(--warning) !important; 
}

.border-custom { 
    border-color: var(--border) !important; 
}

/* Seção padding padronizado */
.section-padding {
    padding: 5rem 0;
}

.bg-secondary-light {
    background-color: rgba(100, 116, 139, 0.05);
}

.bg-dark-secondary {
    background-color: var(--foreground);
}

[data-theme="dark"] .bg-secondary-light {
    background-color: rgba(71, 85, 105, 0.1);
}


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

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow);
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0.75rem 1.5rem;
}



.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    color: white;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--background);
}

.btn-outline-light:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-blue {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
}

.btn-secondary-blue:hover {
    background-color: var(--secondary-mid-dark) !important;
    border-color: var(--secondary-mid-dark) !important;
    color: white !important;
}

.title-highlight-blue {
    color: var(--secondary) !important;
    font-weight: bold;
}

.text-secondary-blue {
    color: var(--secondary) !important;
}

/* ================================================
   CARDS
   ================================================ */

.card {
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px var(--shadow);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ================================================
   FORMS
   ================================================ */

.form-control, .form-select {
    background-color: var(--background);
    border: 2px solid var(--border);
    color: var(--foreground);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    background-color: var(--background);
    color: var(--foreground);
}

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

/* Dark mode form adjustments */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: rgba(51, 65, 85, 0.5);
    border-color: var(--border);
    color: var(--foreground);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: rgba(51, 65, 85, 0.7);
    border-color: var(--primary);
}

/* ================================================
   ACCORDION
   ================================================ */

.accordion-button {
    background-color: var(--background);
    color: var(--foreground);
    border: none;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--background);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

.accordion-item {
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: 8px !important;
    margin-bottom: 1rem;
}

.accordion-item:last-of-type {
    border-radius: 8px !important;
}

.accordion-item:first-of-type {
    border-radius: 8px !important;
}

.accordion-collapse {
    border-top: 1px solid var(--border);
}

.accordion-body {
    padding: 1.25rem 1.5rem;
}

/* ================================================
   BADGE E ICON STYLES
   ================================================ */

.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: white;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    transform: scale(1.1);
}

/* ================================================
   ALERT STYLES
   ================================================ */

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #166534;
    border-left: 4px solid #22c55e;
}

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

/* ================================================
   SCROLLBAR E LOADING
   ================================================ */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: loading 0.8s ease-out forwards;
}

@keyframes loading {
    to {
        opacity: 1;
    }
}

/* Back to Top Button - ESTRUTURA IGUAL AO FAB */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top a {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.back-to-top a:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #9f1239 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.6);
    color: var(--background);
}

.back-to-top a:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

/* Garantir altura igual nas colunas */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-col {
    display: flex;
    flex-direction: column;
}

.flex-grow-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mt-auto {
    margin-top: auto !important;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilo para imagem clicável */
.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-image:hover .template-image {
    transform: scale(1.05);
}

/* Image overlay effects */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.card:hover .img-overlay {
    opacity: 1;
}

/* ================================================
   FOOTER
   ================================================ */

footer {
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--muted-foreground) !important; 
    text-decoration: none !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary) !important;
}

.bg-dark-footer {
    background-color: #262626;
}

/* ================================================
   RIPPLE EFFECT
   ================================================ */

/* Classe principal para ativar o efeito ripple */
.ripple-effect {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Container para o efeito ripple */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Animação do ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

/* Variantes de cor */
.ripple-effect.ripple-dark .ripple {
    background: rgba(0, 0, 0, 0.2);
}

.ripple-effect.ripple-primary .ripple {
    background: rgba(33, 150, 243, 0.1);
}

.ripple-effect.ripple-success .ripple {
    background: rgba(76, 175, 80, 0.1);
}

.ripple-effect.ripple-warning .ripple {
    background: rgba(255, 193, 7, 0.1);
}

.ripple-effect.ripple-danger .ripple {
    background: rgba(244, 67, 54, 0.04);
}

/* Keyframes para animação */
@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

h2.some_title {
    color: var(--primary);
	text-transform: uppercase;
	font-weight: bold;
	border-bottom: 2px solid var(--primary);
	display: inline-block;
	padding-bottom: 5px;
	font-size: 18px;
	letter-spacing: 1px;
}

.section-padding-y-2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.section-padding-y-4 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-padding-y-6 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-padding-x-2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.section-padding-x-4 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-padding-x-6 {
    padding-top: 60px;
    padding-bottom: 60px;
}

