/* Ranking module styles */
.ranking-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 25px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ranking-container h1 {
    color: #2e2e2e;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
/* Dodaj te style do istniejącego CSS */
.ranking-container h1 small.ranking-period {
    font-size: 60%;
    color: #6c757d;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

@media (min-width: 576px) {
    .ranking-container h1 small.ranking-period {
        display: inline;
        margin-top: 0;
        margin-left: 10px;
    }
}

.user-position {
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 4px solid #25b9d7;
    font-size: 16px;
}

.user-position strong {
    color: #2e2e2e;
    font-weight: 600;
}

.ranking-table {
    margin: 30px 0;
    overflow-x: auto;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ranking-table th {
    background-color: #f8f9fa;
    color: #363a41;
    font-weight: 600;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 2px solid #eee;
}

.ranking-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.ranking-table tr:nth-child(20) td {
    border-bottom: 0;
}

.ranking-entry {
    transition: all 0.3s ease;
}

.ranking-entry:hover {
    background-color: #f9f9f9 !important;
}

.ranking-entry.current-user {
    background-color: rgba(37, 185, 215, 0.25) !important;;
    position: relative;
}

.ranking-table tr.current-user td {
    border-bottom: 1px solid #25b9d7;
}

.ranking-entry.current-user:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #25b9d7;
}

.ranking-entry.gold {
    background-color: rgba(255, 215, 0, 0.15);
}

.ranking-entry.silver {
    background-color: rgba(192, 192, 192, 0.35);
}

.ranking-entry.bronze {
    background-color: rgba(205, 127, 50, 0.20);
}

.ranking-entry.top20 {
    background-color: rgba(66, 139, 202, 0.05);
}

.ranking-entry.top30 {
    background-color: rgba(255, 200, 208, 0.15);
}

.ranking-table tr.top30 td.points {
    color: #7a7a7a;
}

.position {
    font-weight: 600;
    color: #363a41;
    width: 80px;
}

.medal {
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.gold .medal {
    color: #ffd700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
}

.silver .medal {
    color: #c0c0c0;
    text-shadow: 0 0 3px rgba(192, 192, 192, 0.3);
}

.bronze .medal {
    color: #cd7f32;
    text-shadow: 0 0 3px rgba(205, 127, 50, 0.3);
}

.name {
    font-weight: 500;
}

.current-user .name {
    font-weight: 600;
}

.points {
    font-weight: 600;
    color: #25b9d7;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 85px;
}

.badge {
    margin-left: 10px;
    font-size: 12px;
    padding: 3px 8px;
    background-color: #25b9d7;
}
/* Separator - pewne stylowanie */
.ranking-separator {
    height: 20px;
    position: relative;
    background: rgba(66, 139, 202, 0.05);
    background: linear-gradient(180deg, rgba(66, 139, 202, 0.05) 0%, rgba(255, 200, 208, 0.15) 100%);
}

.separator-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #25b9d7;
    z-index: 1;
}

.separator-text {
    position: relative;
    background: #f8f9fa;
    padding: 0 15px;
    color: #25b9d7;
    font-size: 13px;
    font-weight: bold;
    font-style: italic;
    margin-left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
    width: fit-content;
}

/* Reset domyślnych stylów dla wiersza separatora */
.ranking-separator td {
    padding: 0 !important;
    border: none !important;
}

.ranking-footer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ranking-container {
        padding: 15px 10px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .medal {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .ranking-container h1 {
        font-size: 22px;
    }
    
    .user-position {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .position {
        width: 60px;
    }
    
    .badge {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        width: fit-content;
    }
}