/* SỬA LỖI LAYOUT: Thêm CSS cho layout chính (vì style.css có thể bị thiếu) */
.main-content-wrapper {
    transition: margin-left 0.3s ease;
    margin-left: 260px; /* Mặc định cho sidebar mở rộng */
}
.main-layout.sidebar-collapsed .main-content-wrapper {
    margin-left: 80px; /* Khi sidebar thu gọn */
}
/* Kết thúc sửa lỗi layout */

.nuoi-tiktok-container h2 {
    color: #007bff;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.import-section {
    margin-bottom: 20px;
    border: 1px solid #007bff;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}
.tiktok-table-container {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}
.account-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
}
.account-table th, .account-table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
}
.account-table th {
    background-color: #343a40;
    color: #fff;
}
.account-table td[data-col="cookie"], .account-table td[data-col="video"] {
    max-width: 150px; /* Giảm chiều rộng cho cookie và video */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
}
.message.success { background-color: #28a745; }
.message.error { background-color: #dc3545; }
.message.warning { background-color: #ffc107; color: #333; }
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    margin: 0 4px;
    border-radius: 4px;
}
.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination a:hover:not(.active) {
    background-color: #e9ecef;
}
/* Style cho nút xóa */
.delete-btn {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}
.delete-btn:hover {
    text-decoration: underline;
}
.table-controls {
    margin-bottom: 15px;
    display: flex; /* Thêm display flex */
    flex-wrap: wrap; /* Cho phép rớt hàng */
    gap: 10px; /* Khoảng cách giữa các nút */
    align-items: center; /* Căn giữa các nút */
}
.delete-selected-btn {
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
/* (MỚI) Style cho div thông báo chọn tất cả */
#select-all-pages-info-ntk {
    display: none;
    margin-bottom: 10px;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: .75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
#select-all-pages-info-ntk a {
    font-weight: bold;
    color: #0c5460;
    text-decoration: underline;
    cursor: pointer;
}
.search-input-group {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
}
.search-input-group input {
    border-radius: 4px 0 0 4px;
    border-right: none;
}
.search-input-group button {
    border-radius: 0 4px 4px 0;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 10px 15px;
    cursor: pointer;
}
/* THAY ĐỔI MỚI: Ẩn các cột Profile ID và Workspace ID */
.hide-column {
    display: none;
}
/* THAY ĐỔI MỚI: Style cho cột có thể sắp xếp */
.sortable-header {
    cursor: pointer;
    position: relative;
}
.sort-icon {
    margin-left: 5px;
    font-size: 0.8em;
}
.tiktok-user-link {
    color: #007bff;
    text-decoration: none;
}
.tiktok-user-link:hover {
    text-decoration: underline;
}
/* NEW: Style cho user đã click */
.clicked-user {
    text-decoration: underline !important;
    font-weight: bold;
    color: #dc3545 !important;
}
/* (SỬA ĐỔI) Style cho ô thống kê */
.stats-box-ntk {
    display: grid; /* (SỬA) Đổi sang Grid */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* (SỬA) Tự động chia cột */
    gap: 10px; /* Thêm gap */
    background-color: #eaf6ff;
    border: 1px solid #b3d9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.stats-item-ntk {
    text-align: center;
    font-size: 1em;
    color: #007bff;
    font-weight: bold;
    padding: 10px; /* Thêm padding cho đẹp hơn */
    border-radius: 5px; /* Thêm border-radius */
    background-color: #fff; /* (MỚI) Thêm nền trắng cho từng ô */
    border: 1px solid #ddd; /* (MỚI) Thêm viền cho từng ô */
}
.stats-item-ntk strong {
    display: block;
    font-size: 1.5em;
    margin-top: 5px;
}
.stats-item-ntk.total strong { color: #343a40; }
.stats-item-ntk.chua-chay strong { color: #ffc107; }
.stats-item-ntk.da-chay strong { color: #28a745; }
.copy-user-btn {
    background-color: #20c997;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.copy-all-data-btn {
    background-color: #6f42c1;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* (MỚI) CSS CHO TABS THỐNG KÊ */
.nuoi-tiktok-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}
.nuoi-tiktok-tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1em;
    font-weight: bold;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.nuoi-tiktok-tab-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
}
.nuoi-tiktok-tab-content {
    display: none;
}
.nuoi-tiktok-tab-content.active {
    display: block;
}
/* (KẾT THÚC MỚI) */