/**
 * Estilos para Melhorias de UX - Kalberis Portfolio
 * Loading states, toasts, validação, animações
 */

/* ========================================
   1. LOADING OVERLAY
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #F6A451;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* ========================================
   2. TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #333;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* ========================================
   3. FORM VALIDATION STYLES
   ======================================== */

.form-control.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    padding-right: calc(1.5em + .75rem);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========================================
   4. SCROLL PROGRESS INDICATOR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(246, 164, 81, 0.2);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #F6A451 0%, #ff6b6b 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* ========================================
   5. RIPPLE EFFECT
   ======================================== */

.btn, button, .service-card {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   6. ENHANCED FOCUS STATES
   ======================================== */

.btn:focus-visible,
.service-card:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #F6A451;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(246, 164, 81, 0.1);
}

/* ========================================
   7. LAZY LOADED IMAGES
   ======================================== */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* Placeholder enquanto carrega */
img[loading="lazy"]:not(.lazy-loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

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

/* ========================================
   8. SMOOTH TRANSITIONS
   ======================================== */

a, button, .btn, .service-card, input, textarea, select {
    transition: all 0.3s ease;
}

/* Reduzir animações para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ripple {
        display: none;
    }
}

/* ========================================
   9. MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        padding: 0.875rem 1rem;
    }

    .loading-spinner {
        transform: scale(0.9);
    }
}

/* ========================================
   9.5 TOUCH OPTIMIZATION
   ======================================== */

/* Garantir tamanhos mínimos para elementos interativos (WCAG 2.1) */
button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.form-control,
.form-select,
textarea,
select,
a[role="button"],
[role="button"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Otimizar campos de formulário para toque */
.form-control,
.form-select,
textarea {
    font-size: 16px; /* Previne zoom no iOS */
    padding: 12px 16px;
}

/* Botões pequenos precisam de atenção especial */
.btn-sm {
    min-height: 36px;
    padding: 8px 12px;
}

/* Links que funcionam como botões */
.nav-link,
.dropdown-item,
.btn-hero {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

/* Elementos de navegação */
.navbar-toggler {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
}

/* Botões de cartão de serviço */
.service-cta-btn {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 16px;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.service-cta-btn:focus {
    outline: 3px solid #25D366;
    outline-offset: 2px;
}

.service-cta-btn i {
    font-size: 18px;
}

/* ========================================
   11.5 SERVICE CARDS ENHANCEMENTS
   ======================================== */

/* Melhorar layout dos cartões de serviço */
.service-card {
    position: relative;
    padding: 24px;
    margin-bottom: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Efeito especial para cartão mobile */
.service-card:hover .service-icon[data-icon="mobile"] {
    animation: iconRotate 2s ease-in-out infinite, iconBounce 1s ease-in-out;
}

/* Brilho sutil no cartão mobile */
.service-card:has(.service-icon[data-icon="mobile"])::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(255, 107, 107, 0.1) 25%,
        rgba(102, 126, 234, 0.1) 50%,
        rgba(238, 90, 36, 0.1) 75%,
        transparent 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:has(.service-icon[data-icon="mobile"]):hover::before {
    opacity: 1;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.1);
    }
    40% {
        transform: translateY(-10px) scale(1.15);
    }
    60% {
        transform: translateY(-5px) scale(1.12);
    }
}

/* Ícone do serviço */
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Efeito especial para ícone mobile */
.service-icon[data-icon="mobile"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #667eea 100%);
    animation: iconRotate 4s ease-in-out infinite;
}

.service-icon[data-icon="mobile"]:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

@keyframes iconRotate {
    0%, 100% {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #667eea 100%);
    }
    50% {
        background: linear-gradient(225deg, #667eea 0%, #ee5a24 50%, #ff6b6b 100%);
    }
}

/* Badge do serviço */
.service-badge {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: white !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    animation: badgePulse 2s ease-in-out infinite, badgeGlow 3s ease-in-out infinite alternate !important;
}

.service-badge i {
    font-size: 0.8rem !important;
    opacity: 0.9 !important;
}

.service-badge .badge-separator {
    margin: 0 4px !important;
    opacity: 0.7 !important;
    font-weight: 400 !important;
}

.service-badge span:not(.badge-separator) {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
}

/* Animações aprimoradas do badge */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    }
}

@keyframes badgeGlow {
    0% {
        filter: brightness(1) saturate(1);
    }
    100% {
        filter: brightness(1.1) saturate(1.2);
    }
}

/* Hover effect no cartão para o badge */
.service-card:hover .service-badge {
    animation: badgePulse 1.5s ease-in-out infinite, badgeGlow 2s ease-in-out infinite alternate, badgeFloat 3s ease-in-out infinite !important;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    33% {
        transform: scale(1.05) translateY(-2px);
    }
    66% {
        transform: scale(1.03) translateY(1px);
    }
}

/* Informações de preço */
.service-price-hint {
    text-align: center;
    margin-bottom: 20px;
}

.price-tag {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e8aa7;
    margin-bottom: 4px;
}

.delivery-tag {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Título e subtítulo */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-subtitle {
    display: block;
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Seções de problema, solução e resultado */
.service-problem,
.service-solution,
.service-result {
    margin: 16px 0 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    position: relative !important;
    clear: both !important;
}

.service-problem {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.08) 100%) !important;
    border-left: 4px solid #ff6b6b !important;
}

.service-solution {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.08) 100%) !important;
    border-left: 4px solid #2ecc71 !important;
}

.service-result {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.08) 100%) !important;
    border-left: 4px solid #3498db !important;
}

.service-problem strong,
.service-solution strong,
.service-result strong {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
}

.service-problem strong { color: #e74c3c !important; }
.service-solution strong { color: #27ae60 !important; }
.service-result strong { color: #2980b9 !important; }

/* Lista de features */
.service-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 24px 0 !important;
}

.service-features li {
    padding: 12px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    line-height: 1.5 !important;
}

.service-features li i {
    color: #28a745 !important;
    font-size: 1rem !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

/* Botão CTA */
.service-cta-btn {
    width: 100% !important;
    min-height: 52px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    margin-top: 24px !important;
}

.service-cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
}

.service-cta-btn:focus {
    outline: 3px solid #25d366 !important;
    outline-offset: 2px !important;
}

.service-cta-btn i {
    font-size: 20px !important;
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .service-card {
        padding: 20px;
        margin-bottom: 24px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .service-icon i {
        font-size: 24px;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .service-problem,
    .service-solution,
    .service-result {
        padding: 14px 16px !important;
        margin: 12px 0 !important;
    }

    .service-features li {
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
    }

    .service-cta-btn {
        min-height: 48px !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

/* ========================================
   12. PRINT STYLES
   ======================================== */

@media print {
    .loading-overlay,
    .toast-container,
    .scroll-progress,
    .whatsapp-widget,
    .social-proof-bar {
        display: none !important;
    }
}

/* ========================================
   11. ACCESSIBILITY ENHANCEMENTS
   ======================================== */

.skip-link:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F6A451;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100000;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   12. HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: high) {
    .btn,
    .service-card,
    .toast {
        border: 2px solid currentColor;
    }

    .scroll-progress-bar {
        background: #000;
    }
}

/* ========================================
   13.6 CRM ENHANCEMENTS
   ======================================== */

/* Gradiente de fundo para hero */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Badge do hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* Estatísticas do hero */
.hero-stats {
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    color: #ffd700;
    font-weight: 700;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wrapper da imagem do hero */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Seção de features */
.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Cards de features */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 16px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Formulário do CRM */
.crm-form .card-header {
    border-radius: 16px 16px 0 0 !important;
    border: none;
}

.crm-form .form-label {
    color: #495057;
    margin-bottom: 8px;
}

.crm-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.crm-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.crm-form .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.crm-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Lista de leads */
.crm-list .card-header {
    border-radius: 16px 16px 0 0 !important;
    border: none;
}

.crm-list .btn-group .btn {
    border-radius: 8px !important;
    margin: 0 2px;
    font-weight: 500;
}

.crm-list .table th {
    background: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
    padding: 16px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crm-list .table td {
    padding: 16px;
    vertical-align: middle;
    border-color: #e9ecef;
}

.crm-list .table tbody tr:hover {
    background: #f8f9fa;
}

/* Estado vazio */
#emptyState {
    color: #6c757d;
}

#emptyState i {
    color: #dee2e6;
}

/* Footer aprimorado */
.footer-brand {
    font-size: 1.25rem;
}

.footer-links a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-status {
    font-size: 0.75rem;
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .crm-main .row {
        --bs-gutter-x: 1rem;
    }

    .crm-form,
    .crm-list {
        margin-bottom: 20px;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .footer-links {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-status {
        text-align: center;
    }
}

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

.feature-card,
.crm-form,
.crm-list {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de loading e sucesso */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   13.5 CRM HERO VISUAL ENHANCEMENTS
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #E05A00 0%,
        #E06A21 100%
    );
    border-radius: 0 0 32px 32px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* Navbar styles to match main page */
.navbar {
    background: linear-gradient(135deg, #E05A00 0%, #E06A21 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

/* Briefing form styles */
.briefing-form .form-label {
    font-weight: 600;
    color: #2E8AA7;
}

.briefing-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.briefing-form .form-control:focus {
    border-color: #2E8AA7;
    box-shadow: 0 0 0 0.2rem rgba(46, 138, 167, 0.25);
}

.briefing-form .btn-primary {
    background: linear-gradient(135deg, #E05A00 0%, #E06A21 100%);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.briefing-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 90, 0, 0.3);
    background: linear-gradient(135deg, #E06A21 0%, #E05A00 100%);
}

/* ========================================
   13. DARK MODE SUPPORT (futuro)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .toast {
        background: #1f2937;
        color: white;
    }

    .toast-message {
        color: white;
    }

    .toast-close {
        color: #9ca3af;
    }

    .toast-close:hover {
        color: white;
    }
}
