:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #3b82f6;
    /* Blue-500 */
    --accent-hover: #2563eb;
    /* Blue-600 */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Setup Screen */
.setup-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    z-index: 10;
    transition: opacity 0.5s ease;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 400px;
    width: 90%;
}

h1 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

p {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* File Input */
input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 12px 24px;
    cursor: pointer;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    font-weight: 500;
    width: 100%;
}

.custom-file-upload:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.settings {
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    color: #ccc;
    display: flex;
    justify-content: center;
}

.settings input {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    width: 60px;
    margin-left: 8px;
    text-align: center;
}

#start-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    width: 100%;
}

#start-btn:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
}

#start-btn:not(:disabled):hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#start-btn:not(:disabled):active {
    transform: translateY(0);
}

/* Slideshow */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.slideshow-container.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* We use two layers to crossfade seamlessly */
.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide.next {
    z-index: 1;
}

/* Controls Overlay */
.controls-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.slideshow-container:hover .controls-overlay {
    opacity: 1;
}

.icon-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}