/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== GLOBAL ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --card-bg: #ffffff;
    --green-primary: #166534;
    --green-secondary: #22c55e;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --green-primary: #22c55e;
    --green-secondary: #16a34a;
}

body {
    background: var(--bg-primary) !important;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== BOUTON MODE SOMBRE ===== */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 60px;
    height: 32px;
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--green-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #ffffff;
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(28px);
}

/* ===== HEADER PROFESSIONNEL AMÉLIORÉ ===== */
.header-bar {
    width: 100%;
    background: linear-gradient(135deg, #166534 0%, #22c55e 50%, #16a34a 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(22, 101, 52, 0.3);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { box-shadow: 0 8px 32px rgba(22, 101, 52, 0.3); }
    100% { box-shadow: 0 12px 40px rgba(22, 101, 52, 0.5), 0 0 60px rgba(34, 197, 94, 0.2); }
}

.header-bar::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.header-bar::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(34, 197, 94, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Orbes lumineux supplémentaires */
.header-bar .orb-1 {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat1 10s ease-in-out infinite;
}

.header-bar .orb-2 {
    position: absolute;
    bottom: -20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat2 8s ease-in-out infinite reverse;
}

.header-bar .orb-3 {
    position: absolute;
    top: 60%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(22, 101, 52, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(180deg) scale(1.1); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -20px) scale(1.2); opacity: 0.5; }
    50% { transform: translate(60px, 10px) scale(0.8); opacity: 0.2; }
    75% { transform: translate(20px, 30px) scale(1.1); opacity: 0.4; }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.2; }
    33% { transform: translate(-40px, -30px) rotate(120deg); opacity: 0.4; }
    66% { transform: translate(-20px, 20px) rotate(240deg); opacity: 0.3; }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    20% { transform: translate(25px, -15px) scale(1.3) rotate(72deg); }
    40% { transform: translate(-10px, -25px) scale(0.9) rotate(144deg); }
    60% { transform: translate(-30px, 10px) scale(1.1) rotate(216deg); }
    80% { transform: translate(15px, 25px) scale(0.8) rotate(288deg); }
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Conteneur des 3 animations */
.animations-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 0 auto 2rem auto;
    flex-wrap: wrap;
}

/* Animation 1 : Pulse d'énergie */
.energy-pulse {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulseExpand 3s ease-out infinite;
}

.pulse-ring:nth-child(1) {
    animation-delay: 0s;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

.pulse-core {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: coreGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

@keyframes coreGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
        transform: scale(1.1);
    }
}

/* Animation 2 : Scan/détection */
.scan-animation {
    width: 100px;
    height: 100px;
    position: relative;
}

.scan-container {
    width: 100%;
    height: 100%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    animation: scanSweep 3s ease-in-out infinite;
    box-shadow: 0 0 10px #22c55e;
}

.scan-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 10px;
}

.grid-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.grid-dot:nth-child(1) { animation-delay: 0.1s; }
.grid-dot:nth-child(2) { animation-delay: 0.2s; }
.grid-dot:nth-child(3) { animation-delay: 0.3s; }
.grid-dot:nth-child(4) { animation-delay: 0.4s; }
.grid-dot:nth-child(5) { animation-delay: 0.5s; }
.grid-dot:nth-child(6) { animation-delay: 0.6s; }
.grid-dot:nth-child(7) { animation-delay: 0.7s; }
.grid-dot:nth-child(8) { animation-delay: 0.8s; }
.grid-dot:nth-child(9) { animation-delay: 0.9s; }

.scan-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(45deg, #22c55e, #16a34a, #22c55e) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes scanSweep {
    0% {
        left: -100%;
        top: 10%;
    }
    25% {
        left: 100%;
        top: 10%;
    }
    26% {
        left: -100%;
        top: 30%;
    }
    50% {
        left: 100%;
        top: 30%;
    }
    51% {
        left: -100%;
        top: 50%;
    }
    75% {
        left: 100%;
        top: 50%;
    }
    76% {
        left: -100%;
        top: 70%;
    }
    100% {
        left: 100%;
        top: 70%;
    }
}

@keyframes dotPulse {
    0%, 100% {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        background: rgba(34, 197, 94, 0.8);
        transform: scale(1.3);
        box-shadow: 0 0 8px #22c55e;
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px #22c55e);
    }
}

/* Animation 3 : Hologramme rotatif */
.hologram-animation {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-ring {
    position: absolute;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50%;
    animation: hologramRotate 4s linear infinite;
}

.ring-1 {
    width: 30px;
    height: 30px;
    animation-delay: 0s;
    border-style: dashed;
}

.ring-2 {
    width: 50px;
    height: 50px;
    animation-delay: -1.3s;
    border-style: dotted;
}

.ring-3 {
    width: 70px;
    height: 70px;
    animation-delay: -2.6s;
    border-style: solid;
}

.hologram-center {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 197, 94, 0.8);
    font-size: 1.2rem;
    animation: hologramPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes hologramRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        opacity: 0.7;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        opacity: 0.4;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        opacity: 0.8;
        transform: rotate(270deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes hologramPulse {
    0%, 100% {
        color: rgba(34, 197, 94, 0.6);
        text-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
        transform: scale(1);
    }
    50% {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
        transform: scale(1.2);
    }
}


.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-top: 0;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    animation: titleGlow 6s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.1);
    }
    50% { 
        text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(34, 197, 94, 0.4), 0 0 40px rgba(255,255,255,0.2);
    }
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.header-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: badgeFloat 8s ease-in-out infinite;
}

.header-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.header-feature:hover::before {
    left: 100%;
}

.header-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.header-feature:nth-child(1) {
    animation-delay: 0s;
}

.header-feature:nth-child(2) {
    animation-delay: 2s;
}

.header-feature:nth-child(3) {
    animation-delay: 4s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Effet de vague animée */
.header-bar .wave-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') repeat-x;
    animation: waveAnimation 15s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes waveAnimation {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-50px); }
}

/* Étoiles scintillantes */
.header-bar .star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 15%;
    width: 2px;
    height: 2px;
    animation-delay: 0s;
}

.star-2 {
    top: 25%;
    right: 20%;
    width: 3px;
    height: 3px;
    animation-delay: 1s;
}

.star-3 {
    bottom: 30%;
    left: 25%;
    width: 1px;
    height: 1px;
    animation-delay: 2s;
}

.star-4 {
    top: 40%;
    right: 40%;
    width: 2px;
    height: 2px;
    animation-delay: 0.5s;
}

.star-5 {
    bottom: 20%;
    right: 30%;
    width: 1px;
    height: 1px;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Effet de pulsation sur le sous-titre */
.header-subtitle {
    animation: subtitlePulse 8s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.header-feature i {
    font-size: 1rem;
}

/* Éléments décoratifs */
.header-decoration {
    position: absolute;
    opacity: 0.1;
    color: #ffffff;
    font-size: 8rem;
    z-index: 1;
}

.decoration-1 {
    top: 20%;
    left: 10%;
    animation: rotate 20s linear infinite;
}

.decoration-2 {
    bottom: 20%;
    right: 10%;
    animation: rotate 15s linear infinite reverse;
}

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

/* Effet de particules */
.header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particle-float 8s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    width: 4px;
    height: 4px;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    width: 6px;
    height: 6px;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 50%;
    width: 3px;
    height: 3px;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 70%;
    width: 5px;
    height: 5px;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 90%;
    width: 4px;
    height: 4px;
    animation-delay: 1s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    background: transparent !important;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
    max-width: 1200px;
}

.navbar .nav-link {
    color: #1a1a1a !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: #166534;
    color: #ffffff !important;
}

/* ===== MAIN CONTAINER ===== */
.main-content {
    background: transparent;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* ===== CARDS ===== */
.metric-card, .analysis-section, .verdict-box, .feature-card, .info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-card:hover, .analysis-section:hover, .verdict-box:hover, .feature-card:hover, .info-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    text-align: center;
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    color: #166534;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.feature-card p {
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ===== VERDICTS ===== */
.verdict-box {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid;
    border-radius: 12px;
    padding: 1.5rem;
}

/* VRAI - Vert */
.verdict-vrai, .verdict-authentique, .verdict-fiable, .verdict-plutôt-vrai {
    background: #f0fdf4;
    color: #166534;
    border-color: #166534;
}

/* FAUX - Rouge */
.verdict-faux, .verdict-manipulée, .verdict-frauduleux, .verdict-plutôt-faux {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}

/* INCERTAIN/DOUTEUX - Jaune */
.verdict-douteux, .verdict-suspect, .verdict-suspecte, .verdict-incertain, .verdict-probablement-authentique, .verdict-plutôt-fiable {
    background: #fffbeb;
    color: #d97706;
    border-color: #d97706;
}

.verdict-box h2, .verdict-box p {
    color: inherit !important;
    margin: 0.2rem 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #166534;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #14532d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline-secondary {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    color: #1a1a1a;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #166534;
}

/* ===== LINKS ===== */
.source-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #166534;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.source-link:hover {
    background: #166534;
    color: #ffffff;
    text-decoration: none;
}

/* ===== FORMS ===== */
.form-control {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: #166534;
    box-shadow: 0 0 0 0.2rem rgba(22, 101, 52, 0.25);
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-label {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-text {
    color: #666666;
    font-size: 0.875rem;
}

/* ===== BARRE DE PROGRESSION ===== */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.progress-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.progress-icon {
    font-size: 4rem;
    color: #166534;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.progress-subtitle {
    color: #666666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #166534, #22c55e);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

.progress-steps {
    margin-top: 1.5rem;
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.progress-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.progress-step.completed .progress-step-icon {
    background: #166534;
    color: #ffffff;
}

.progress-step.active .progress-step-icon {
    background: #22c55e;
    color: #ffffff;
    animation: pulse 1s infinite;
}

.progress-step.pending .progress-step-icon {
    background: #e5e5e5;
    color: #666666;
}

/* ===== SPINNER SIMPLE ===== */
.spinner-border {
    color: #ffffff !important;
}

.btn-primary .spinner-border {
    border-color: #ffffff;
    border-right-color: transparent;
}

/* ===== NOTIFICATIONS TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.toast-notification {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.toast-notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-success {
    border-left-color: #166534;
}

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

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

.toast-info {
    border-left-color: #2563eb;
}

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

.toast-success .toast-icon {
    color: #166534;
}

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

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

.toast-info .toast-icon {
    color: #2563eb;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.toast-message {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999999;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

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

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #166534, #22c55e);
    border-radius: 0 0 12px 12px;
    transition: width 0.1s linear;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-stats {
    margin-top: 2rem;
}

.hero-stat {
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-stat:hover {
    border-color: #166534;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-text {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===== STEPS ===== */
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #166534;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1rem auto;
}

/* ===== STATS ===== */
.stat-card, .info-stat {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover, .info-stat:hover {
    border-color: #166534;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number, .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #166534;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666666;
    font-size: 0.875rem;
    font-weight: 400;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #166534;
}

.metric-label {
    color: #666666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}


/* ===== ANALYSIS SECTIONS ===== */
.analysis-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.analysis-header h2 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #f8fafc !important;
    border-top: 1px solid #e5e5e5;
    margin-top: 3rem;
}

.footer p {
    color: #666666;
}

.footer .text-muted {
    color: #9ca3af !important;
}

/* ===== ALERTS ===== */
.alert-success {
    background: #f0fdf4 !important;
    border: 1px solid #166534 !important;
    color: #166534 !important;
}

.alert-danger {
    background: #fef2f2 !important;
    border: 1px solid #dc2626 !important;
    color: #dc2626 !important;
}

.alert-warning {
    background: #fffbeb !important;
    border: 1px solid #d97706 !important;
    color: #d97706 !important;
}

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

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-success {
    color: #166534 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-warning {
    color: #d97706 !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.border-success {
    border-color: #166534 !important;
}

.border-danger {
    border-color: #dc2626 !important;
}

.border-warning {
    border-color: #d97706 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-bar {
        padding: 3rem 1rem;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .header-logo {
        font-size: 3rem;
    }
    
    .header-features {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .header-feature {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .header-decoration {
        font-size: 4rem;
    }
    
    .decoration-1 {
        top: 10%;
        left: 5%;
    }
    
    .decoration-2 {
        bottom: 10%;
        right: 5%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .loading-overlay .loading-text {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .animations-container {
        gap: 2rem;
        flex-direction: column;
    }
    
    .animations-container > div {
        transform: scale(0.8);
    }
}

.stats-overview {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
}

/* ===== CHAR COUNT ===== */
.char-count {
    text-align: right;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-bar, .main-content {
        max-width: 98vw;
        padding: 1.2rem;
        border-radius: 18px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .metric-card, .analysis-section, .verdict-box, .feature-card, .info-card {
        padding: 1.2rem 1rem;
        border-radius: 16px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .header-bar, .main-content {
        padding: 0.7rem;
        border-radius: 10px;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .verdict-box {
        font-size: 0.95rem;
        padding: 0.7rem 0.5rem;
        border-radius: 10px;
    }
    
    .metric-card, .analysis-section, .feature-card, .info-card {
        padding: 0.7rem 0.3rem;
        border-radius: 10px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.8rem 0.2rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}
