body {
    background: #f8f9fa;
}

.container {
    max-width: 1600px;
    width: 95%;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.vps-table th,
.vps-table td {
    vertical-align: middle;
}

.action-btns button {
    margin-right: 4px;
}

.vps-terminated {
    opacity: 0.1;
    background-color: #f8f9fa;
    /* Màu nền hơi khác để phân biệt */
}

.vps-terminated td {
    text-decoration: line-through;
    text-decoration-color: #a0a0a0;
}

.balance-box {
    font-size: 1.5rem;
    font-weight: bold;
    color: #198754;
}

body.dark-mode {
    background: #181a1b !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card {
    background: #23272b;
    color: #e0e0e0;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table-bordered th,
body.dark-mode .table-bordered td {
    border-color: #444;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #23272b;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .modal-content {
    background: #23272b;
    color: #e0e0e0;
}

body.dark-mode .btn-outline-dark {
    color: #fff;
    border-color: #fff;
}

body.dark-mode .btn-outline-dark:hover {
    background: #fff;
    color: #23272b;
}

body.dark-mode .toast {
    background: #23272b;
    color: #e0e0e0;
}

.reseller-info-card {
    border-radius: 2rem !important;
    box-shadow: 0 4px 32px #0001 !important;
    background: #fff;
}

.reseller-logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 2px 12px #eee;
    object-fit: cover;
    border: 3px solid #fff;
}

.reseller-title {
    font-size: 1.1rem;
    color: #888;
    font-weight: 500;
}

.reseller-name {
    font-size: 2rem;
    font-weight: 900;
    color: #222;
}

.reseller-balance {
    background: #e9f7ef;
    color: #198754;
    border-radius: 1.5rem;
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .reseller-info-card .card-body {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.5rem !important;
    }
    .reseller-logo {
        margin-bottom: 1rem !important;
    }
}


/* Header Bar Styles */

.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px #eee;
    object-fit: cover;
    border: 2px solid #fff;
}

.header-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.header-balance {
    background: #e9f7ef;
    color: #198754;
    border-radius: 1.2rem;
    padding: 0.4rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Adjust main content for fixed header */

.container {
    margin-top: 20px !important;
}


/* Dark mode support */

body.dark-mode .header-bar {
    background: #23272b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .header-name {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .header-user-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
}