/**
 * VPS Server Manager v4 - Styles
 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 24px 0 0;
    background-color: #212529;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #adb5bd;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #0d6efd;
}

main {
    padding-top: 20px;
    padding-bottom: 40px;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.stat-card {
    text-align: center;
    padding: 0.75rem;
}

.stat-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #0d6efd;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.stat-card.danger h3 { color: #dc3545; }
.stat-card.success h3 { color: #198754; }
.stat-card.warning h3 { color: #ffc107; }
.stat-card.info h3 { color: #0dcaf0; }

.table {
    background-color: #fff;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s, color 0.15s;
}

.table thead th.sortable:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.table thead th.sortable.sort-active {
    color: #0d6efd;
}

.table thead th.sortable .sort-indicator {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    opacity: 0.5;
}

.table thead th.sortable.sort-active .sort-indicator {
    opacity: 1;
}

.copyable-ip {
    cursor: pointer;
}

.copyable-ip:hover {
    text-decoration: underline;
}

.domains-cell {
    max-width: 240px;
    font-size: 0.875rem;
    word-break: break-word;
}

.domain-item {
    line-height: 1.35;
}

/* Compact Server Modal */
.server-modal .modal-header,
.server-modal .modal-footer {
    background-color: #f8f9fa;
}

.server-modal .form-section {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.65rem 0.85rem;
}

.server-modal .form-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f1f3f5;
}

.server-modal .form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.2rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

.credential-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        padding: 0.75rem 0;
    }
    main {
        padding-top: 10px;
    }
}

