:root {
    --bg: #0a0f1d;
    --cyan: #00d1ff;
    --glass: rgba(20, 28, 48, 0.7);
    --border: rgba(0, 209, 255, 0.2);
    --text: #e2e8f0;
}

html, body {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

body {
    color: var(--text);
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 209, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 209, 255, 0.05) 0%, transparent 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3 {
    color: var(--cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-shadow: 0 0 10px var(--cyan);
}

input, button, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    margin: 0 0 1rem 0;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    outline: none;
    transition: 0.3s;
}

select {
    min-width: min(100%, 360px);
    background-color: #101827;
    color: var(--text);
}

select option {
    background: #101827;
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

input[type="range"] {
    display: block;
    width: min(100%, 360px);
    margin: 0.75rem auto 0.35rem;
    padding: 0;
}

.range-row {
    text-align: center;
}

.range-value {
    display: inline-flex;
    min-width: 56px;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 209, 255, 0.08);
    color: var(--cyan);
    font-weight: 600;
    padding: 0.25rem 0.6rem;
}

.starwars-results {
    max-height: 460px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    border: 1px solid;
    border-radius: 10px;
}

.starwars-results::-webkit-scrollbar {
    width: 10px;
}

.starwars-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.starwars-results::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 999px;
}

button {
    background: rgba(0, 209, 255, 0.1);
    color: var(--cyan);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover:not(:disabled) {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4);
    transform: translateY(-2px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Clases útiles para componentes Svelte */
.card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.task {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--cyan) !important;
    border-radius: 10px;
}