body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #2c3e50;
}

.container {
    padding: 40px 20px;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

/* Section Title Styles */
.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: #007bff;
    margin: 0 auto;
}

/* Top Performers Section */
.top-performers-section {
    margin-bottom: 60px;
}

.achiever-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.achiever-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.first-place {
    border-top: 4px solid #ffd700;
}

.second-place {
    border-top: 4px solid #c0c0c0;
}

.third-place {
    border-top: 4px solid #cd7f32;
}

.rank-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.profile-image {
    margin: 20px 0;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.achiever-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.achievement-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.points {
    margin-bottom: 10px;
}

.points .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.points .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.status .badge {
    background: #e9ecef;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Leaderboard Section */
.leaderboard-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.leaderboard-table {
    margin-bottom: 0;
}

.leaderboard-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    font-size: 0.9rem;
}

.leaderboard-table tbody tr {
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: #f8f9fa;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.student-info span {
    font-weight: 500;
    color: #2c3e50;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #e9ecef;
    color: #2c3e50;
}

.status-badge.gold {
    background: #fff3cd;
    color: #856404;
}

.status-badge.silver {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.bronze {
    background: #f8d7da;
    color: #721c24;
}

/* Pagination Styles */
.pagination-section {
    margin-top: 30px;
}

.pagination .page-link {
    color: #2c3e50;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.pagination .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .title {
        font-size: 2.2rem;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 992px) {
    .section-header {
        flex-direction: column;
        gap: 20px;
    }

    .search-box {
        width: 100%;
    }

    .achiever-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .leaderboard-table thead {
        display: none;
    }

    .leaderboard-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        padding: 15px;
    }

    .leaderboard-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
    }

    .leaderboard-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c3e50;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 20px 15px;
    }

    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .profile-image img {
        width: 80px;
        height: 80px;
    }

    .achiever-info h3 {
        font-size: 1.1rem;
    }
}
