/* Base */
body { font-family: Arial, sans-serif; background: #f0f2f5; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box; }
.card { background: white; width: 100%; max-width: 400px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 15px; }
.header { background: #314DB4; color: white; text-align: center; padding: 18px; font-size: 28px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }

/* Leaderboard */
.list { padding: 20px; }
.row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 22px; }
.team-info { display: flex; align-items: center; gap: 15px; }
.rank { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
.rank-1 { background: #FFC800; color: black; }
.rank-2 { background: #C8BFB9; color: black; }
.rank-3 { background: #FF7A28; color: white; }
.rank-other { width: 36px; text-align: center; color: #333; }
.score { font-weight: 500; font-size: 24px; }

/* Admin & Login */
select { background: transparent; color: white; border: none; font-size: 24px; font-weight: bold; cursor: pointer; outline: none; width: 100%; }
select option { color: rgb(255, 255, 255); }
.score-display { text-align: center; font-size: 80px; font-weight: bold; margin: 30px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 20px 25px 20px; }
.btn { background: #314DB4; color: white; border: none; padding: 18px; font-size: 26px; font-weight: bold; border-radius: 4px; cursor: pointer; width: 100%; }
.btn:hover { background: #253b93; }
.btn-danger { background: #d9534f; font-size: 16px; padding: 10px; margin-top: 10px; }
.btn-danger:hover { background: #c9302c; }
.login-content { padding: 30px; text-align: center; }
.login-content h2 { margin-top: 0; color: #314DB4; }
input { width: 100%; padding: 10px; margin: 10px 0; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.error { color: red; margin-bottom: 10px; font-size: 14px; }
.nav-link { margin-top: 5px; color: #888; text-decoration: none; font-size: 14px; }
.nav-link:hover { color: #333; }
.manage-section { padding: 20px; border-top: 1px solid #eee; background: #fafafa; }
.manage-section h3 { margin: 0 0 10px 0; font-size: 16px; color: #333; }