/* =================================================
   CSS CHO TRANG QUẢN LÝ USER (ÉP OVERRIDE ASTRA)
================================================= */

.vip-user-manager {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 30px;
    margin-bottom: 40px;
    font-family: inherit;
}

.vip-admin-error {
    background: #fef2f2;
    color: #ef4444;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-weight: 600;
}

/* Header & Stats */
.vip-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.vip-manager-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
    font-weight: 700;
}

.vip-manager-stats {
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.vip-manager-stats strong {
    color: #3b82f6;
    font-size: 16px;
}

/* Filter Bar - ÉP HIỂN THỊ HÀNG NGANG */
.vip-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.vip-search-form, .vip-sort-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
}

.vip-filter-bar input, .vip-filter-bar select {
    width: auto !important; /* Xóa độ rộng 100% của Astra */
    min-width: 150px;
    padding: 10px 15px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #334155 !important;
    outline: none !important;
    box-sizing: border-box !important;
    height: 42px !important;
}

.vip-filter-bar button {
    height: 42px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 42px !important;
}

.btn-primary { background: #3b82f6 !important; color: #fff !important; }
.btn-primary:hover { background: #2563eb !important; }
.btn-secondary { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; }
.btn-secondary:hover { background: #e2e8f0 !important; }

/* Bảng dữ liệu */
.vip-table-responsive {
    overflow-x: auto;
}

.vip-admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
    min-width: 800px;
    border: 1px solid #e2e8f0 !important;
}

.vip-admin-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-align: left !important;
}

.vip-admin-table td {
    padding: 18px 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

.vip-admin-table tr:hover td {
    background: #f8fafc !important;
}

.row-locked td {
    background: #fef2f2 !important;
}

/* User Info Cell */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info-cell .user-avt {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border: 2px solid #e2e8f0 !important;
}

.user-name {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.user-email {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

/* Finance Cell */
.finance-cell .balance {
    display: block;
    font-weight: 700;
    color: #059669;
    font-size: 15px;
}

.finance-cell .spent {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active { background: #dcfce7; color: #166534; }
.badge-locked { background: #fee2e2; color: #991b1b; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-action {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    height: 32px !important;
    line-height: 20px !important;
}

.btn-lock { background: #fef08a !important; color: #854d0e !important; }
.btn-lock:hover { background: #fde047 !important; }

.btn-unlock { background: #e0f2fe !important; color: #075985 !important; }
.btn-unlock:hover { background: #bae6fd !important; }

.btn-delete { background: #fee2e2 !important; color: #dc2626 !important; }
.btn-delete:hover { background: #fca5a5 !important; }

/* Phân trang hiện đại */
.vip-pagination-modern {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.vip-pagination-modern a, .vip-pagination-modern span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.vip-pagination-modern a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.vip-pagination-modern a.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.vip-pagination-modern .page-dots {
    border: none;
    background: transparent;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .vip-filter-bar { flex-direction: column !important; align-items: stretch !important; }
    .vip-search-form, .vip-sort-form { flex-direction: column !important; width: 100% !important; }
    .vip-search-form input, .vip-sort-form select, .vip-filter-bar button { width: 100% !important; }
}
/* Thêm vào cuối file style.css hiện có */
.vip-tabs {
    display: flex;
    gap: 10px;
}

.vip-tab-btn {
    padding: 10px 20px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    color: #64748b !important;
    transition: 0.3s !important;
}

.vip-tab-btn.active {
    background: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

.vip-tab-content {
    display: none;
}

.vip-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.vip-unban-btn {
    background: #10b981 !important;
    color: #fff !important;
}

.vip-unban-btn:hover {
    background: #059669 !important;
}