:root {
    --primary-color: #ff2a2a;
    --secondary-color: #d4af37;
    --accent-color: #ffd700;
    --bg-dark: #b31217;
    --card-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: #f5f5f5;
    --success: #ffeb3b;
    --gradient-main: linear-gradient(135deg, #ff2a2a 0%, #d4af37 100%);
    --gradient-festive: radial-gradient(circle at center, #d32f2f 0%, #7b1d1d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--gradient-festive);
    color: var(--text-main);
    overflow-x: hidden;
    background-attachment: fixed;
    min-height: 100vh;
}

.glass-morphism {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

/* Main Drawing Area */
.drawing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.current-prize-card {
    width: 90%;
    max-width: 1000px;
    padding: 4rem;
    text-align: center;
    transition: all 0.5s ease;
}

.prize-title {
    font-size: 2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.prize-image-display {
    max-width: 300px;
    max-height: 200px;
    margin: 1rem auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.slot-machine {
    font-size: 8rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 2px solid var(--accent-color);
}

.slot-reel {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.1s linear;
}

.slot-item {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
}

.slot-machine::before,
.slot-machine::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

.slot-machine::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.slot-machine::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.slot-name {
    position: absolute;
    animation: scroll-up 0.1s linear infinite;
}

/* Animations */
@keyframes scroll-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.winners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.winner-item {
    padding: 1rem;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Admin Dashboard */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
}

input,
select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    color: white;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
}

::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--glass-border);
}

.badge-success {
    background: var(--success);
    color: white;
}