/* --- BỘ BIẾN MÀU GIAO DIỆN SÁNG (MẶC ĐỊNH) --- */
:root {
    --bg-body: #f4f7fa;
    --bg-card: #ffffff;
    --bg-input: #f9fafb;     
    --bg-hover: #f3f4f6;     
    --bg-modal: rgba(255, 255, 255, 0.95);
    
    --text-main: #111827;    
    --text-muted: #6b7280;   
    
    --border-color: #e5e7eb; 
    --shadow-main: rgba(0, 0, 0, 0.08); 
}

/* --- BỘ BIẾN MÀU GIAO DIỆN TỐI (DARK MODE) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0a0c10;
        --bg-card: #1a1e29;
        --bg-input: #0f121a;
        --bg-hover: #161b26;
        --bg-modal: rgba(10, 12, 18, 0.85);
        
        --text-main: #f3f4f6;
        --text-muted: #9ca3af;
        
        --border-color: #374151;
        --shadow-main: rgba(0, 0, 0, 0.6);
    }
    /* 1. Làm sáng chữ trong bảng để dễ đọc hơn */
    .ise-table th {
        color: #9ca3af !important; /* Xám sáng cho tiêu đề cột */
    }
    .ise-table td {
        color: #f3f4f6 !important; /* Trắng xám rõ nét cho nội dung */
    }
    
    /* 2. Đổi màu nút Select (Sét quyền) cho tiệp với nền tối */
    .ise-table select, 
    .ise-select {
        background-color: #374151 !important; /* Nền xám tối */
        color: #f3f4f6 !important; /* Chữ trắng */
        border: 1px solid #4b5563 !important; /* Viền xám mờ */
    }
    
    /* 3. Đổi màu danh sách tùy chọn đổ xuống của nút Select */
    .ise-table select option, 
    .ise-select option {
        background-color: #1f2937 !important; /* Nền tùy chọn đen hơn một chút */
        color: #f3f4f6 !important;
    }

    /* 4. Hiệu ứng viền xanh mượt mà khi click vào nút Select */
    .ise-table select:focus, 
    .ise-select:focus {
        border-color: #38bdf8 !important;
        outline: none;
        box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
    }
}

/* Tùy chọn: Class kích hoạt Dark mode thủ công */
.dark {
    --bg-body: #0a0c10;
    --bg-card: #1a1e29;
    --bg-input: #0f121a;
    --bg-hover: #161b26;
    --bg-modal: rgba(10, 12, 18, 0.85);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --shadow-main: rgba(0, 0, 0, 0.6);
}

/* --- ÁP DỤNG BIẾN VÀO GIAO DIỆN --- */
body { font-family: 'Be Vietnam Pro', sans-serif; background-color: var(--bg-body); color: var(--text-main); min-height: 100vh; margin: 0; box-sizing: border-box; transition: background-color 0.3s ease, color 0.3s ease; }
.page-wrapper { transform: scale(0.8); transform-origin: top center; display: flex; align-items: center; flex-direction: column; padding: 50px 20px; box-sizing: border-box; }
.site-header { width: 100%; max-width: 900px; margin-bottom: 20px; text-align: center; }
.main-title { font-size: 42px; font-weight: 700; margin: 0 0 15px 0; background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sub-title { font-size: 16px; font-weight: 400; color: var(--text-muted); margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.tool-container { background-color: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 8px 30px var(--shadow-main); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; width: 100%; max-width: 900px; transition: background-color 0.3s ease, border-color 0.3s ease; }
.tool-button { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; padding: 20px; border-radius: 12px; background-color: transparent; }
.tool-button:hover { transform: translateY(-5px); background-color: var(--bg-hover); }

.icon-box { width: 70px; height: 70px; border-radius: 20px; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; transition: box-shadow 0.3s ease; }
.icon-box svg { width: 36px; height: 36px; stroke: white; stroke-width: 2; fill: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }
.icon-box.rose { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); box-shadow: 0 8px 20px rgba(255, 75, 43, 0.3); }
.icon-box.amber { background: linear-gradient(135deg, #FDC830 0%, #F37335 100%); box-shadow: 0 8px 20px rgba(243, 115, 53, 0.3); }
.icon-box.emerald { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); box-shadow: 0 8px 20px rgba(56, 239, 125, 0.3); }
.icon-box.violet { background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%); box-shadow: 0 8px 20px rgba(208, 78, 214, 0.3); }
.icon-box.blue { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); box-shadow: 0 8px 20px rgba(33, 147, 176, 0.3); }
.icon-box.indigo { background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%); box-shadow: 0 8px 20px rgba(142, 84, 233, 0.3); }
.icon-box.pink { background: linear-gradient(135deg, #ec4899, #f43f5e); box-shadow: 0 8px 20px rgba(255, 75, 43, 0.3);  }
.icon-box.sunset { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); box-shadow: 0 8px 20px rgba(254, 180, 123, 0.3); }
/* Bổ sung màu nền cho Icon Box */
.icon-box.cyan {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

.icon-box.orange {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.icon-box.gray {
    background: linear-gradient(135deg, #9ca3af, #4b5563);
    box-shadow: 0 4px 10px rgba(107, 114, 128, 0.2);
}

.button-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 5px 0; }
.button-description { font-size: 13px; color: var(--text-muted); margin: 0; }

.site-footer { margin-top: 60px; padding-top: 20px; width: 100%; max-width: 900px; text-align: center; color: var(--text-muted); font-size: 14px; border-top: 1px solid var(--border-color); transition: color 0.3s ease, border-color 0.3s ease; }
.footer-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.dept-title { font-size: 1rem; font-weight: 600; color: var(--text-main); margin: 0; letter-spacing: 0.02em; }
.credit { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.team-link { color: #3b82f6; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.team-link:hover { text-decoration: underline; opacity: 0.8; }

.visitor-counter { position: fixed; bottom: 20px; right: 20px; background-color: var(--bg-card); border: 1px solid var(--border-color); padding: 12px 18px; border-radius: 10px; box-shadow: 0 4px 15px var(--shadow-main); font-size: 14px; font-weight: 500; z-index: 1000; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.visitor-icon { width: 16px; height: 16px; stroke: var(--text-muted); stroke-width: 2; fill: none; }
.visitor-count { color: #10b981; font-weight: 700; }
.online-dot { width: 8px; height: 8px; background-color: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

/* --- Nút mở popup Phản hồi --- */
.feedback-toggle-btn { 
    position: fixed; 
    bottom: 80px; 
    right: 20px; 
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); 
    color: #ffffff; 
    border: none; 
    padding: 12px 20px; 
    border-radius: 30px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: transform 0.2s, box-shadow 0.2s; 
}

.feedback-toggle-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6); 
}
.feedback-popup { position: fixed; bottom: 140px; right: 20px; width: 320px; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 10px 40px var(--shadow-main); padding: 20px; z-index: 1001; display: none; flex-direction: column; gap: 12px; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.feedback-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.feedback-header h3 { margin: 0; font-size: 16px; color: var(--text-main); }
.close-feedback { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }
.contact-info { font-size: 12px; color: #3b82f6; background-color: rgba(59, 130, 246, 0.1); padding: 8px; border-radius: 8px; margin-bottom: 5px; line-height: 1.4; }
.feedback-input { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--bg-input); color: var(--text-main); font-family: inherit; font-size: 13px; box-sizing: border-box; }
.feedback-input:focus { outline: none; border-color: #3b82f6; }
.feedback-textarea { resize: vertical; min-height: 80px; }
/* --- Nút Gửi bên trong popup --- */
.submit-feedback-btn { 
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); 
    color: #ffffff; 
    border: none; 
    padding: 10px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 14px; 
    transition: opacity 0.2s; 
}

.submit-feedback-btn:hover { 
    opacity: 0.9; 
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.submit-feedback-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}

.rating-v3-container { position: fixed; bottom: 20px; left: 20px; background-color: var(--bg-card); border: 1px solid var(--border-color); padding: 10px 16px; border-radius: 30px; box-shadow: 0 4px 15px var(--shadow-main); z-index: 1000; display: flex; align-items: center; gap: 12px; transition: all 0.3s ease; }
.rating-v3-label { font-size: 13px; font-weight: 500; color: var(--text-muted); border-right: 1px solid var(--border-color); padding-right: 10px; }
.rating-v3-group { display: flex; align-items: center; gap: 14px; }
.btn-vote-v3 { background: none !important; border: none !important; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; font-family: inherit; font-size: 13px; font-weight: 600; transition: transform 0.2s; line-height: 1; color: var(--text-muted); }
.btn-vote-v3:hover { transform: scale(1.15); }
.btn-vote-v3 svg { width: 18px; height: 18px; display: block; }
.btn-vote-v3.v3-like { color: #10b981; } .btn-vote-v3.v3-like svg { fill: #10b981; }
.btn-vote-v3.v3-dislike { color: #ef4444; } .btn-vote-v3.v3-dislike svg { fill: #ef4444; }

/* --- GIAO DIỆN TABS --- */
.tab-nav { 
    display: flex; 
    gap: 20px; 
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px; 
    width: 100%; 
    max-width: 900px; 
    
}

/* Tối ưu hóa thanh Menu Tab cho Điện thoại */
.tab-nav {
 
    flex-wrap: nowrap;           /* Bắt buộc các tab nằm trên 1 hàng ngang */
    overflow-x: auto;            /* Cho phép cuộn ngang khi màn hình nhỏ */
    -webkit-overflow-scrolling: touch; /* Giúp vuốt mượt mà trên iPhone/iPad */
    gap: 8px;                    /* Khoảng cách giữa các nút */
    padding-bottom: 5px;         /* Tránh bị lẹm viền dưới */
    
    /* Ẩn thanh cuộn để giao diện sạch sẽ */
    scrollbar-width: none;       /* Cho Firefox */
    -ms-overflow-style: none;    /* Cho IE/Edge */
}

/* Ẩn thanh cuộn cho Chrome, Safari, Cốc Cốc */
.tab-nav::-webkit-scrollbar {
    display: none; 
}
.tab-btn { 
    background: none; 
    border: none; 
    padding: 12px 20px; 
    color: var(--text-muted); 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    border-bottom: 3px solid transparent; 
    transition: all 0.2s; 
    font-family: inherit; 
    position: relative; 
    
}

.tab-btn {
    white-space: nowrap;         /* Tuyệt đối không cho rớt dòng chữ trong nút */
    flex-shrink: 0;              /* Không cho nút bị bóp méo khi màn hình hẹp */
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: #3b82f6; border-bottom-color: #3b82f6; }
.tab-content { display: none; width: 100%; max-width: 900px; animation: fadeIn 0.3s ease; }
.tab-content-full { width: 100%; max-width: 1200px !important; margin: 20px auto; padding: 0 15px; box-sizing: border-box; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.badge { background: #ef4444; color: white; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-left: 5px; position: absolute; top: 5px; right: -5px; }

/* --- GIAO DIỆN HỒ SƠ --- */
.profile-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; box-shadow: 0 8px 30px var(--shadow-main); }
.profile-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); }
.profile-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.profile-label { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.profile-value { font-size: 16px; font-weight: 600; color: var(--text-main); }
.role-badge { display: inline-block; padding: 4px 10px; background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-radius: 6px; font-size: 13px; font-weight: bold; border: 1px solid #3b82f6; }

/* Bảng dữ liệu hiện đại */
.admin-card table { border-collapse: separate; border-spacing: 0 12px; width: 100%; }
.admin-card th { padding: 10px 20px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.admin-card td { background: var(--bg-card); padding: 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); color: var(--text-main); }
.admin-card tr td:first-child { border-left: 1px solid var(--border-color); border-radius: 12px 0 0 12px; }
.admin-card tr td:last-child { border-right: 1px solid var(--border-color); border-radius: 0 12px 12px 0; }

.badge-status { padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; cursor: default; }
.bg-active { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.bg-locked { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* --- SELECT QUYỀN (ROLE-SELECT) --- */
.role-select {
    appearance: none; 
    background: var(--bg-input) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center / 12px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 30px 8px 12px; 
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.role-select:hover {
    border-color: #3b82f6;
    background-color: var(--bg-hover);
}

.role-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- NÚT BẤM CHÍNH (BTN-PRIMARY) --- */
.btn-primary {
   
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6, #6366f1); 
    color: #ffffff;
    border: none;
    border-radius: 10px; 
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-icon { padding: 8px; border-radius: 8px; border: none; cursor: pointer; color: white; transition: 0.2s; }
.bg-lock { background: #f59e0b; }
.bg-key { background: #3b82f6; }
.bg-trash { background: #ef4444; }
.btn-icon:hover { opacity: 0.8; transform: scale(1.05); }

/* =========================================================
   TỐI ƯU HÓA GIAO DIỆN TRANG CHỦ RIÊNG CHO MOBILE
========================================================= */
@media (max-width: 768px) {
    /* 1. Trả lại tỷ lệ thật 100%, bỏ thu nhỏ 80% để trang web khít viền */
    .page-wrapper {
        transform: none !important;
        width: 90%;
        padding: 10px 20px;
    }

    /* 2. Xử lý nút Đăng xuất: Không cho trôi nổi nữa, đẩy lên trên cùng */
    .site-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
        .logout-btn {
         position: relative !important; 
        top: auto !important;
        right: auto !important;
        margin: 0 auto 20px auto; 
        align-self: center;
    }

    /* 3. Thu nhỏ chữ tiêu đề để vừa màn hình */
    .main-title {
        font-size: 28px;
        margin-top: 0;
    }

    /* 4. Mở rộng khung chứa công cụ, giảm padding thừa */
    .tool-container {
        padding: 15px;
        gap: 15px;
    }

    /* 5. Quy hoạch lại 3 nút trôi nổi dưới đáy màn hình */
    
    /* Nút Đánh giá: Đẩy sang góc trái dưới cùng, ẩn bớt chữ để tiết kiệm chỗ */
    .rating-v3-container {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
    }
    .rating-v3-label { display: none; } 

    /* Nút Số người Online: Đẩy sang góc phải dưới cùng */
    .visitor-counter {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Nút Phản hồi: Nằm lùi lên trên nút Online một chút */
    .feedback-toggle-btn {
        bottom: 65px; 
        right: 15px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    /* Thu nhỏ Popup phản hồi khi mở ra trên mobile */
    .feedback-popup {
        bottom: 120px;
        right: 15px;
        left: 15px;
        width: auto; 
    }
}

/* =========================================
   1. GIAO DIỆN NÚT ĐĂNG XUẤT CHO PC (MẶC ĐỊNH)
========================================= */
.logout-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 6px 6px 16px;
    border-radius: 30px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-main);
    z-index: 1000;
    white-space: nowrap; 
}

.logout-btn .user-role {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.logout-btn .logout-icon {
    background: var(--bg-input);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hiệu ứng hover chuột */
.logout-btn:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}
.logout-btn:hover .user-role { color: #ef4444; }
.logout-btn:hover .logout-icon {
    background: #ef4444;
    color: white;
}
.ise-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 0px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 5px;
    transition: 0.3s;
}
.ise-input:focus {
    border-color: #3b82f6;
    outline: none;
}

textarea.ise-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit; /* Giữ font chữ giống các input khác */
    font-size: 14px;
    resize: vertical;     /* Cho phép người dùng kéo thả độ cao */
    box-sizing: border-box;
   
}
/* Style cho bảng */
#userTable { width: 100%; border-collapse: collapse; }
#userTable th { 
    font-weight: 700; 
    color: var(--text-muted); /* Tự động dùng xám tối ở light mode, xám sáng ở dark mode */
}
#userTable td { 
    color: var(--text-main); /* Tự động dùng đen ở light mode, trắng ở dark mode */
}

/* Role badge */
.role-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.role-badge.nv { background: #e2e8f0; color: #475569; }
.role-badge.admin { background: #fee2e2; color: #991b1b; }

/* =========================================================
   CSS ĐỘC QUYỀN CHO CỘT THAO TÁC (TÍCH HỢP MỚI)
========================================================= */
.action-buttons-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px; /* Khoảng cách đều giữa thẻ select và các nút */
    flex-wrap: nowrap; /* Tuyệt đối không cho rớt dòng */
}

.action-form {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

/* Style cho list chọn quyền */
.custom-role-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color); /* Sử dụng biến màu */
    border-radius: 6px;
    background-color: var(--bg-input); /* Sử dụng biến màu */
    color: var(--text-main); /* Sử dụng biến màu */
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px; /* Cao bằng với các nút icon */
}

/* Thêm định dạng cho các tuỳ chọn bên trong select khi Dark Mode */
.custom-role-select option {
    background-color: var(--bg-card); /* Đảm bảo màu nền chuẩn cho dropdown */
    color: var(--text-main);
}

/* Style cho các nút Icon */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}
.icon-btn svg { width: 16px; height: 16px; }

/* Màu sắc từng nút khi Hover */
.btn-blue { color: #3b82f6; }
.btn-blue:hover { background-color: #eff6ff; }

.btn-orange { color: #f97316; }
.btn-orange:hover { background-color: #fff7ed; }

.btn-green { color: #16a34a; }
.btn-green:hover { background-color: #f0fdf4; }

.btn-red { color: #ef4444; }
.btn-red:hover { background-color: #fef2f2; }