/* css/quanly_kenh_tiktok.css */
.ql-tiktok-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding: 10px;
}

.page-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.header-title {
    font-size: 24px;
    font-weight: 600;
}
.text-danger { color: #dc3545 !important; }

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.card-header {
    padding: 12px 15px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
}
.card-body { padding: 15px; }
.no-border-top { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Buttons & Tools */
.btn-tool {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: #fff;
    margin-left: 5px;
    cursor: pointer;
}
.text-cyan { color: #00bcd4; background: #e0f7fa; border-color: #b2ebf2; }
.text-blue { color: #2196f3; background: #e3f2fd; border-color: #bbdefb; }
.text-gray { color: #607d8b; background: #eceff1; border-color: #cfd8dc; }

.add-channel-form, .filter-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.add-channel-form input { flex: 1; }

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}
.form-control:focus { border-color: #4299e1; box-shadow: 0 0 0 3px rgba(66,153,225,0.1); }

.form-group { margin-bottom: 0; min-width: 150px; }
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #718096;
    margin-bottom: 4px;
}
.search-btn-group { flex: 1; min-width: 250px; }
.input-group { display: flex; gap: 5px; }

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn i { margin-right: 5px; }
.btn-primary { background-color: #3182ce; color: white; }
.btn-primary:hover { background-color: #2b6cb0; }
.btn-cyan { background-color: #00bcd4; color: white; }
.btn-warning { background-color: #f59f00; color: white; }
.btn-danger { background-color: #e53e3e; color: white; }
.btn-outline-danger { background: #fff; color: #e53e3e; border: 1px solid #feb2b2; }
.btn-outline-gray { background: #fff; color: #718096; border: 1px solid #e2e8f0; font-size: 11px; }

/* Tabs */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}
.tab-link {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #3182ce;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
}
.tab-link.active {
    background: #fff;
    color: #2d3748;
    border-color: #3182ce;
    border-top-width: 2px;
    border-left-color: #e2e8f0;
    border-right-color: #e2e8f0;
    border-radius: 4px 4px 0 0;
}

/* Table */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.table th { background: #fff; color: #4a5568; font-weight: 700; text-align: left; white-space: nowrap; }
.table tr:hover { background-color: #ebf8ff; }

.avatar-wrapper {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    border: 1px solid #e2e8f0;
}
.avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.badge { padding: 3px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; color: white; }
.badge-dark { background-color: #4a5568; }
.badge-success { background-color: #48bb78; }
.badge-danger { background-color: #f56565; }
.badge-warning { background-color: #ecc94b; color: #333; }
.badge-cyan { background-color: #00bcd4; }

.action-buttons { display: flex; flex-direction: column; align-items: center; }
.btn-xs { padding: 2px 6px; font-size: 10px; border-radius: 2px; cursor: pointer; min-width: 70px; }
.btn-outline-primary { border: 1px solid #bee3f8; color: #3182ce; background: #ebf8ff; }
.btn-outline-primary:hover { background: #bee3f8; }
.btn-outline-success { border: 1px solid #c6f6d5; color: #2f855a; background: #f0fff4; }
.btn-outline-success:hover { background: #c6f6d5; }

/* Pagination */
.pagination-footer { padding: 10px; display: flex; justify-content: flex-end; }
.pagination a {
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    margin-left: 5px;
    text-decoration: none;
    color: #3182ce;
    border-radius: 3px;
    font-size: 12px;
}
.pagination a.active { background: #3182ce; color: white; border-color: #3182ce; }

.alert { padding: 10px; margin-bottom: 15px; border-radius: 4px; font-size: 13px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.w-40 { width: 40px; }
.ml-2 { margin-left: 8px; }
.mb-1 { margin-bottom: 4px; }
.mt-2 { margin-top: 8px; }