:root {
    --primary-blue: #222e50;
    --accent-blue: #346df1;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #ffffff;
    color: var(--primary-blue);
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
}

.canvas-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}

canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#fftCanvas {
    image-rendering: pixelated;
}

.glow-accent {
    box-shadow: 0 0 20px rgba(52, 109, 241, 0.2);
    border: 1px solid rgba(52, 109, 241, 0.4);
}

.custom-range {
    accent-color: var(--accent-blue);
}

input[type="range"] {
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
}

.logo-text {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-family: 'Ubuntu', sans-serif;
}

.logo-evo {
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-academy {
    font-weight: 400;
}

.status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.status-loading { 
    background: #fef3c7; 
    color: #92400e; 
}

.status-ready { 
    background: #dcfce7; 
    color: #166534; 
}

.status-error { 
    background: #fee2e2; 
    color: #991b1b; 
}

.warning-text {
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.example-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    max-width: 80px;
}

.example-thumbnail:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 109, 241, 0.15);
}

.example-thumbnail .relative {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.example-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.example-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.example-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 7px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.example-badge-real {
    background: #10b981;
    color: white;
}

.example-badge-ai {
    background: #ef4444;
    color: white;
}

.example-label {
    margin-top: 2px;
    font-size: 7px;
    font-family: 'Ubuntu', monospace;
    color: #64748b;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
    pointer-events: none;
}

/* Reducir espacio entre thumbnails */
#examplesContainer {
    gap: 0.25rem !important; /* 4px en lugar de 8px (gap-1) */
}

/* Estilos para pantalla completa FFT */
#fullscreenFftBtn {
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
}

#fullscreenFftBtn:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Cuando está en pantalla completa */
:fullscreen #fftContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: #000;
    border-radius: 0;
    border: none;
    overflow: visible;
}

:fullscreen #fftCanvas {
    max-width: 90vw;
    max-height: 90vh;
    width: auto !important;
    height: auto !important;
}

/* Estilos para pantalla completa - Residual Espacial */
:fullscreen #residualContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: #000;
    border-radius: 0;
    border: none;
    overflow: visible;
}

:fullscreen #residualCanvas {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    image-rendering: auto;
    display: block;
}

/* Estilos para pantalla completa - Mapa de Crominancia */
:fullscreen #chromaContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: #000;
    border-radius: 0;
    border: none;
    overflow: visible;
}

:fullscreen #chromaCanvas {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    image-rendering: auto;
    display: block;
}
