/* Main Layout */
main.status-page {
    padding-top: 120px;
    min-height: calc(100vh - 80px);
    background: var(--dark-bg);
}

/* Status Cards */
.status-card {
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-card:hover::before {
    opacity: 1;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.status-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 16px;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.status-card:hover .status-icon {
    transform: scale(1.1);
}

.status-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Status Values */
.status-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.status-label {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Player List */
.player-list {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--darker-bg);
    padding-right: 0.5rem;
}

.player-list::-webkit-scrollbar {
    width: 6px;
}

.player-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.player-list::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.player-name {
    color: var(--text-primary);
    font-weight: 500;
    flex-grow: 1;
}

.player-ping {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
}

/* Time Period Switches */
.time-period-switches {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.time-period-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-period-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.time-period-btn.active {
    background: var(--primary);
    color: white;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.status-indicator.online {
    background-color: var(--success);
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.4);
}

.status-indicator.offline {
    background-color: var(--danger);
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.4);
}

/* Animations */
@keyframes valueChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.value-changed {
    animation: valueChange 0.3s ease;
}

/* Loading State */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 4px solid var(--text-secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loading-spinner 1s linear infinite;
}

@keyframes loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsivní design */
@media (max-width: 1200px) {
    .status-value {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .status-card {
        padding: 1.5rem;
    }
    
    .status-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    main.status-page {
        padding-top: 100px;
    }
    
    .status-value {
        font-size: 1.75rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .status-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .player-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .player-ping {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .status-card {
        padding: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
}