:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-bg: #121212;
    --darker-bg: #0f0f0f;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --error-color: #ff4757;
    --success-color: #2ed573;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.photo-booth-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--darker-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.step {
    padding: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.step.active {
    display: flex;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-height: 100px;
    max-width: 300px;
}

h1, h2 {
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    margin-bottom: 20px;
    text-align: center;
    color: var(--gray-text);
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gray-text);
    border: 1px solid var(--gray-text);
}

.btn-secondary:hover {
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

.controls {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#camera-stream {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 70%, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.countdown {
    font-size: 120px;
    font-weight: bold;
    color: var(--light-text);
    text-shadow: 0 0 20px rgba(106, 17, 203, 0.8);
}

.photo-preview {
    width: 100%;
    max-width: 640px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#captured-photo {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.success-message {
    text-align: center;
    max-width: 600px;
}

.photo-view-container {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    background-color: var(--darker-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.photo-display {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.photo-display img {
    width: 100%;
    display: block;
}

.download-container {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .step {
        padding: 20px;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}