* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); min-height: 100vh; color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 20px 0; margin-bottom: 30px; }
header h1 { font-size: 2.5rem; color: #00d9ff; text-shadow: 0 0 20px rgba(0, 217, 255, 0.5); }
.card { background: rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 30px; margin-bottom: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }
.card h2 { margin-bottom: 20px; color: #00d9ff; font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #ccc; }
input[type="text"], input[type="password"], textarea, select { width: 100%; padding: 12px 16px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 1rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #00d9ff; box-shadow: 0 0 15px rgba(0, 217, 255, 0.3); }
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4); }
.btn-success { background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%); color: #000; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4); }
.btn-danger { background: linear-gradient(135deg, #ff4757 0%, #cc3847 100%); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.timer { font-size: 4rem; font-weight: bold; text-align: center; padding: 20px; color: #00d9ff; text-shadow: 0 0 30px rgba(0, 217, 255, 0.7); }
.timer.warning { color: #ffcc00; text-shadow: 0 0 30px rgba(255, 204, 0, 0.7); }
.timer.danger { color: #ff4757; text-shadow: 0 0 30px rgba(255, 71, 87, 0.7); animation: pulse 0.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.question-box { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 30px; margin-bottom: 20px; }
.question-number { color: #00d9ff; font-size: 0.9rem; margin-bottom: 10px; }
.question-text { font-size: 1.5rem; line-height: 1.4; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.option-btn { padding: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; text-align: left; }
.option-btn:hover:not(:disabled) { border-color: #00d9ff; background: rgba(0, 217, 255, 0.2); transform: translateX(5px); }
.option-btn.selected { border-color: #00d9ff; background: rgba(0, 217, 255, 0.3); }
.option-btn.correct { border-color: #00ff88; background: rgba(0, 255, 136, 0.3); }
.option-btn.incorrect { border-color: #ff4757; background: rgba(255, 71, 87, 0.3); }
.option-btn:disabled { cursor: not-allowed; opacity: 0.8; }
.option-label { display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; background: rgba(255, 255, 255, 0.2); border-radius: 50%; margin-right: 15px; font-weight: bold; }
.leaderboard { list-style: none; }
.leaderboard-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; margin-bottom: 10px; }
.leaderboard-item:nth-child(1) { background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.2) 100%); border: 1px solid rgba(255, 215, 0, 0.5); }
.leaderboard-item:nth-child(2) { background: linear-gradient(135deg, rgba(192, 192, 192, 0.3) 0%, rgba(169, 169, 169, 0.2) 100%); border: 1px solid rgba(192, 192, 192, 0.5); }
.leaderboard-item:nth-child(3) { background: linear-gradient(135deg, rgba(205, 127, 50, 0.3) 0%, rgba(184, 115, 51, 0.2) 100%); border: 1px solid rgba(205, 127, 50, 0.5); }
.leaderboard-rank { font-weight: bold; font-size: 1.2rem; margin-right: 15px; color: #00d9ff; }
.leaderboard-name { flex: 1; font-size: 1.1rem; }
.leaderboard-score { font-weight: bold; font-size: 1.2rem; color: #00ff88; }
.admin-grid { display: grid; grid-template-columns: 350px 1fr; gap: 20px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.quiz-list { list-style: none; }
.quiz-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; margin-bottom: 10px; cursor: pointer; }
.quiz-item:hover { background: rgba(255, 255, 255, 0.1); }
.quiz-item.selected { background: rgba(0, 217, 255, 0.2); border: 1px solid rgba(0, 217, 255, 0.5); }
.live-panel { background: rgba(0, 217, 255, 0.1); border: 2px solid rgba(0, 217, 255, 0.3); }
.player-count { font-size: 1.2rem; margin-bottom: 15px; }
.player-count span { color: #00d9ff; font-weight: bold; }
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.status-badge.lobby { background: rgba(255, 204, 0, 0.3); color: #ffcc00; }
.status-badge.slide { background: rgba(138, 43, 226, 0.3); color: #da70d6; }
.status-badge.question { background: rgba(0, 217, 255, 0.3); color: #00d9ff; }
.status-badge.reveal { background: rgba(0, 255, 136, 0.3); color: #00ff88; }
.status-badge.finished { background: rgba(255, 71, 87, 0.3); color: #ff4757; }
.waiting-screen { text-align: center; padding: 60px 20px; }
.waiting-screen h2 { font-size: 2rem; margin-bottom: 20px; }
.join-box { max-width: 400px; margin: 50px auto; }
.hidden { display: none !important; }
.scrollable { max-height: 400px; overflow-y: auto; }
.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; }
.alert-error { background: rgba(255, 71, 87, 0.2); border: 1px solid rgba(255, 71, 87, 0.5); color: #ff4757; }
.alert-success { background: rgba(0, 255, 136, 0.2); border: 1px solid rgba(0, 255, 136, 0.5); color: #00ff88; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #1a1a2e; border-radius: 16px; padding: 30px; max-width: 500px; width: 90%; border: 1px solid rgba(255, 255, 255, 0.2); }
.modal h3 { margin-bottom: 20px; color: #00d9ff; }
.option-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.option-input-row input[type="text"] { flex: 1; }
.option-input-row input[type="radio"], .option-input-row input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.your-score { text-align: center; padding: 20px; background: rgba(0, 217, 255, 0.1); border-radius: 12px; margin-top: 20px; }
.your-score h3 { color: #00d9ff; margin-bottom: 10px; }
.your-score .score-value { font-size: 3rem; font-weight: bold; color: #00ff88; }
.image-upload-area { border: 2px dashed rgba(255,255,255,0.3); border-radius: 8px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s; }
.image-upload-area:hover { border-color: #00d9ff; background: rgba(0,217,255,0.1); }
