* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ================= ANIMATIONS ================= */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes popUp {
    from { transform: translateY(30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #007bff;
    font-size: 30px;
    font-weight: 700;
}

.logo h1 {
    color: #007bff;
    font-size: 30px;
    font-weight: 700;
}
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0056b3, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-login i {
    font-size: 16px;
}

.user-menu {
  position: relative;
}

.dropdown-btn {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.dropdown-btn:hover {
  background: linear-gradient(135deg, #0056b3, #0099cc);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.dropdown-content {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: white;
  min-width: 140px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 2000;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.user-menu:hover .dropdown-content {
  display: none;
}

#dropdownContent.show {
    display: block;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-small {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-small:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #343a40;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav .active a {
    color:#007bff;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color:#007bff;
    transition: width 0.3s;
}

.main-nav a:hover:after,
.main-nav .active a:after {
    width: 100%;
}

/* ================= PAGE HEADER ================= */
.page-header {
    background: #4f46e5;
    color: #fff;
    text-align: center;
    padding: 50px 0;
    animation: fadeIn 0.8s ease;
}

/* ================= PODIUM ================= */
.podium-container {
    padding: 50px 0 30px;
}

.podium-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
}

.podium-card {
    background: #fff;
    border-radius: 10px;
    width: 180px;
    text-align: center;
    box-shadow: var(--box-shadow);
    padding: 20px 10px;
    position: relative;
    animation: popUp 0.6s ease forwards;
}

.podium-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.podium-card.first { height: 250px; border-top: 5px solid gold; animation-delay: 0.2s; }
.podium-card.second { height: 220px; border-top: 5px solid silver; animation-delay: 0.4s; }
.podium-card.third { height: 200px; border-top: 5px solid #cd7f32; animation-delay: 0.6s; }

.podium-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.rank {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    font-weight: bold;
}

/* ================= LEADERBOARD ================= */
.leaderboard-container {
    padding-bottom: 50px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: left;
}

.leaderboard-table thead {
    background-color: var(--primary-color);
    color: #fff;
}

.leaderboard-table tbody tr:nth-child(even) {
    background-color: #f1f3f5;
}

.leaderboard-table tbody tr:hover {
    background-color: #e2e6ea;
    transform: scale(1.01);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
    animation: fadeUp 0.8s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #bbb;
}
.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}