/* Online Players Page Styles */
body.online_players {
    background: url('/img/backgrounds/bg-test.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Arial', sans-serif;
}

.online-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.realm-title {
    color: #ffd700;
    font-family: 'UnifrakturCook', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.online-count {
    font-size: 1.8rem;
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.stat-title {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.stat-item span:first-child {
    color: #aee023ff;
    font-weight: 500;
}

.stat-item span.text-warning {
    color: #ffd700 !important;
    font-weight: bold;
}

.stat-item:last-child {
    border-bottom: none;
}

.players-table {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.table-header {
    background: linear-gradient(135deg, #ffd700 0%, #d4ac0d 100%);
    color: #1a1a1a;
    font-weight: bold;
}

.table th {
    border: none;
    padding: 1rem;
    text-align: center;
}

.table td {
    border: none;
    padding: 0.8rem;
    text-align: center;
    vertical-align: middle;
    color: #eee;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
    cursor: pointer;
}

.player-name {
    color: #ffd700;
    font-weight: 600;
}

.player-name-link {
    text-decoration: none;
    color: inherit;
}

.player-name-link:hover .player-name {
    color: #ffed4a;
    text-decoration: underline;
}

.class-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.level-badge {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.online-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.refresh-btn {
    background: linear-gradient(135deg, #ffd700 0%, #f1c40f 100%);
    color: #1a1a1a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #e6c200 0%, #d4ac0d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.5);
}

.no-players {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .online-container {
        padding: 0 0.5rem;
    }
    
    .realm-title {
        font-size: 2rem;
    }
    
    .online-count {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.6rem;
    }
    
    .class-icon {
        width: 24px;
        height: 24px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}