/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #3a6186, #89253e);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    background: #3a6186;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #2c4960;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px);
}

/* Glassmorphism container styles */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
}

/* Landing Page */
.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.hero-section .cta-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Login and Register Pages */
.login-body, .register-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container, .register-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
}

.login-container h2, .register-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.input-group input::placeholder {
    color: #ccc;
}

.signup-link, .login-link {
    margin-top: 10px;
    font-size: 0.9rem;
}

.signup-link a, .login-link a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.signup-link a:hover, .login-link a:hover {
    color: #ddd;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Dashboard */
.dashboard {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
}

.dashboard h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.dashboard p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #d9d9d9;
}

.dashboard .actions .btn {
    margin: 10px;
}

/* Leaderboard */
.leaderboard {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
}

.leaderboard h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.leaderboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard table th,
.leaderboard table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.leaderboard table th {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
