* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #007336, #359a28);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.sidebar-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #61bf1a;
    padding-left: 2rem;
}

.menu-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}

.menu-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.menu-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, #007336, #359a28);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: clamp(0.5rem, 2vw, 2rem);
    transition: margin-left 0.3s ease;
}

.container {
    max-width: clamp(300px, 95vw, 1600px);
    margin: 0 auto;
    background: white;
    border-radius: clamp(2px, 0.5vw, 6px);
    box-shadow: 0 clamp(4px, 1vh, 8px) clamp(24px, 4vh, 40px) rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
}

.header {
    background: linear-gradient(135deg, #007336, #359a28);
    color: white;
    text-align: center;
    padding: clamp(1rem, 4vh, 3rem);
    position: relative;
}

.separator {
    height: clamp(2px, 0.4vh, 4px);
    background: linear-gradient(90deg, #61bf1a, #359a28, #007336);
    position: relative;
    overflow: hidden;
}

.separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    50.01% {
        left: -100%;
    }

    100% {
        left: -100%;
    }
}

.title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: bold;
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: clamp(0.8rem, 2vh, 1.2rem);
}

.month-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(20px, 3vw, 30px);
    padding: clamp(0.4rem, 1vh, 0.8rem) clamp(0.8rem, 2vw, 1.5rem);
    margin-top: clamp(0.5rem, 1vh, 0.8rem);
}

.month-text {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1200px;
    white-space: nowrap;
}

.table-header {
    background: linear-gradient(135deg, #007336, #359a28);
    color: white;
}

.table-header th {
    padding: clamp(0.8rem, 2vh, 1.5rem);
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    font-weight: 600;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.table-header th:last-child {
    border-right: none;
}

.ranking-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.ranking-row:hover {
    background: #f8f9fa;
}

.top-5:hover {
    background: linear-gradient(135deg, #e8f5e8, #d4edda) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 54, 0.15);
}

.ranking-row td {
    padding: clamp(0.6rem, 1.5vh, 1rem);
    text-align: center;
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    border-right: 1px solid #e0e0e0;
}

.ranking-row td:last-child {
    border-right: none;
}

.position {
    font-weight: bold;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    width: clamp(50px, 6vw, 70px);
}

.position-1 {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.position-2 {
    color: #c0c0c0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.position-3 {
    color: #cd7f32;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.vendor-name {
    font-weight: 600;
    color: #007336;
    text-align: left !important;
    min-width: clamp(120px, 15vw, 200px);
    padding-left: clamp(0.8rem, 2vw, 1.5rem) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.points {
    font-weight: 600;
    color: #2c3e50;
    min-width: clamp(40px, 5vw, 50px);
}

.percentage {
    font-weight: 600;
    color: #007336;
    min-width: clamp(40px, 5vw, 50px);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

.total-points {
    font-weight: bold;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #007336;
    text-shadow: 1px 1px 3px rgba(0, 115, 54, 0.3);
}

.medal {
    display: inline-block;
    margin-right: clamp(0.3rem, 1vw, 0.5rem);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.top-5 {
    background: linear-gradient(135deg, #f0fff4, #e8f5e8);
}

.position-4 {
    color: #61bf1a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.position-5 {
    color: #359a28;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.prize {
    font-weight: bold;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    color: #2c3e50;
}

.footer {
    background: #f8f9fa;
    padding: clamp(1rem, 3vh, 2rem);
    text-align: center;
    color: #666;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.sidebar-open {
        margin-left: 0;
    }
}

@media (max-width: 1200px) {
    .container {
        overflow-x: auto;
    }

    .ranking-table {
        min-width: 1100px;
    }
}

@media (max-width: 768px) {

    .table-header th,
    .ranking-row td {
        padding: clamp(0.4rem, 1vh, 0.6rem);
        font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    }

    .vendor-name {
        min-width: clamp(80px, 18vw, 120px);
        font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    }

    .points,
    .percentage {
        min-width: clamp(35px, 4vw, 45px);
        font-size: clamp(0.6rem, 1.1vw, 0.75rem);
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: clamp(0.25rem, 1vw, 1rem);
    }

    .header {
        padding: clamp(0.8rem, 2vh, 1.5rem);
    }

    .ranking-table {
        min-width: 900px;
    }

    .table-header th,
    .ranking-row td {
        padding: clamp(0.3rem, 0.8vh, 0.5rem);
        font-size: clamp(0.6rem, 1vw, 0.7rem);
    }
}

@media (max-height: 720px) {
    .container {
        margin: clamp(0.5rem, 2vh, 1rem) auto;
    }

    .header {
        padding: clamp(0.8rem, 2.5vh, 1.5rem);
    }
}