/* ==========================================================================
   STATUS.PHP STYLES
   ========================================================================== */

@import url('/styles/shared.css');

/* Statistics */
.stats-container {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2em;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Server cards */
.servers-list-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #e5e7eb;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.server-card.server-online {
    border-left-color: #10b981;
}

.server-card.server-offline {
    border-left-color: #ef4444;
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
}

.server-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-status-indicator-large {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.server-status-indicator-large.status-online {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.server-status-indicator-large.status-offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.server-name-section h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3em;
}

.server-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.server-location,
.server-provider {
    font-size: 0.85em;
    color: #6b7280;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 12px;
}

.server-type-count {
    font-size: 0.9em;
    color: #6b7280;
    margin-left: 10px;
    font-weight: normal;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.online {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.offline {
    background-color: #fee2e2;
    color: #991b1b;
}

.server-card-body {
    padding: 20px;
}

.server-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.server-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    color: #6b7280;
}

.detail-value.value-good {
    color: #10b981;
    font-weight: 600;
}

.detail-value.value-bad {
    color: #ef4444;
    font-weight: 600;
}

.server-error {
    margin-top: 15px;
    padding: 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.9em;
}

/* Info section */
.info-container {
    padding: 20px;
}

.info-content {
    color: #6b7280;
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 10px;
}

.info-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.info-content li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .server-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .server-meta {
        flex-direction: column;
        gap: 5px;
    }

    .server-details-grid {
        grid-template-columns: 1fr;
    }

    .server-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .ip-header-modern {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5em;
    }
}
