body {
    margin: 0;
    background: #0a0a0a;
    color: #eaeaea;
    font-family: 'Roboto', sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    text-align: center;
    padding: 10px;
}

h1 {
    color: #00ffea;
    margin: 0;
    text-shadow: 0 0 8px #00ffea;
}

.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.output {
    flex: 3;
    overflow-y: auto;
    padding: 10px;
    background: #121212;
}

.controls {
    flex: 1;
    overflow-y: auto;
    background: #1a1a1a;
    padding: 10px 20px;
    border-left: 2px solid #00ffea;
}

label {
    display: block;
    margin: 10px 0;
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

button {
    background: #00ffea;
    border: none;
    color: #0a0a0a;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #00b8a9;
}

.results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.glitch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #121212;
    padding: 10px;
    border: 1px solid #00ffea;
    border-radius: 8px;
    width: var(--thumb-size, 180px);
}

.glitch-card canvas {
    width: calc(var(--thumb-size, 180px) - 20px);
    height: auto;
    border-radius: 4px;
}

.download-btn {
    margin-top: 8px;
    background: #00ffea;
    border: none;
    color: #0a0a0a;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.download-btn:hover {
    background: #00b8a9;
}

.progress-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 234, 0.2);
    color: #00ffea;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #00ffea;
    border-radius: 8px;
    z-index: 999;
    backdrop-filter: blur(4px);
    display: none;
}
