:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --primary-color: #6366f1;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

/* Background Effects */
.background-globes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
    animation: float 10s infinite ease-in-out;
}

.globe-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

/* App Container */
.app-container {
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

header h1 {
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.accent {
    font-weight: 700;
    color: var(--accent-color);
}

.header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.icon-btn:hover {
    opacity: 1;
}

/* Main Stage */
.stage {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.department-display {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.name-display {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.1s;
}

.prize-selector {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

select {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.prize-stats {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: #334155;
    color: white;
}

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e293b;
    width: 600px;
    max-width: 95%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

section:last-child {
    border-bottom: none;
}

h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

textarea {
    width: 100%;
    height: 100px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.prize-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.prize-row input {
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.prize-name {
    flex: 2;
}

.prize-count {
    flex: 1;
}

/* Participants List */
.list-section {
    margin-top: 2rem;
}

.participants-list {
    margin-top: 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

.participants-list table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
}

.participants-list th,
.participants-list td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.participants-list th {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.participants-list tr:last-child td {
    border-bottom: none;
}

.status-pending {
    color: #94a3b8;
}

.status-won {
    color: var(--success-color);
    font-weight: 600;
}

.prize-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;
}