﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f8fa;
    padding: 20px;
}

.ranking-container {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
}

.ranking-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1;
    min-width: 380px;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.top-header {
    /*background: linear-gradient(135deg, #FFD700, #FFA500);*/
    background: linear-gradient(135deg, #fff6cc, #ffe5b5);
    color: black;
}

.bottom-header {
    /*background: linear-gradient(135deg, #FF4D4D, #990000);*/
    background: linear-gradient(135deg, #ffd6d6, #ffb5b5);
    color: black;
}

.ranking-header svg {
    width: 24px;
    height: 24px;
    /*fill: white;*/
    fill: red;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    background: white;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}

th {
    background: #eaeaea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
}

tr:nth-child(even) td {
    background: linear-gradient(90deg, #f9f9f9, #f1f8ff);
}

tr:nth-child(odd) td {
    /*background: linear-gradient(90deg, #ffffff, #f7fcff);*/
    background: linear-gradient(90deg, #ffffff, #fff9de);
}

tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    tr:hover td {
        transform: scale(1.01);
        background: linear-gradient(90deg, #e6f2ff, #d9ecff) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}
