:root {
    --bg-main: #121212;
    --text-color: #EEE;
    --accent: #ff4757;
    --panel-bg: #1e272e;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel {
    background: var(--panel-bg);
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none !important;
}

input, button {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background-color: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.controls-grid {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
}

.controls-grid button {
    flex: 1;
}

#slide-preview {
    background-color: #333;
    padding: 10px;
    border-radius: 8px;
    min-height: 200px;
}

#slide-preview img {
    max-width: 100%;
    border-radius: 5px;
}

.grid-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.slide-thumb {
    background: #2f3640;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.slide-thumb:hover {
    transform: scale(1.05);
}

.slide-thumb img {
    width: 100%;
    border-radius: 3px;
}

.slide-thumb p {
    font-size: 11px;
    margin: 5px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
