/* =========================================================
   HỆ THỐNG BIẾN MÀU SẮC (Dễ dàng thay đổi toàn bộ theme ở đây)
   ========================================================= */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-dark: #09090b;
    --bg-light: #f4f7f6;
    --card-bg-dark: #1e1e1e;
    --card-bg-light: #ffffff;
    --text-dark: #ededed;
    --text-light: #212529;
    --border-dark: #333333;
    --border-light: #e9ecef;
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================================================
   CÀI ĐẶT CHUNG (GLOBAL)
   ========================================================= */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   1. GIAO DIỆN AUTH (Đăng nhập / Đăng ký) - DARK MODE
   ========================================================= */
.auth-body {
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-dark);
    margin: 0;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    padding: 35px 30px;
    background: var(--card-bg-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-dark);
}

.auth-box .form-control {
    background-color: #2a2a2a;
    border-color: #444;
    color: white;
    padding: 10px 15px;
}

.auth-box .form-control:focus {
    background-color: #333;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: white;
}

.auth-box .form-label {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* =========================================================
   2. GIAO DIỆN DASHBOARD (Admin / Users) - LIGHT MODE
   ========================================================= */
.dashboard-body {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.dashboard-container {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

/* Thiết kế lại Card (Khung chứa dữ liệu) */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    background-color: var(--card-bg-light);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Thiết kế lại Table */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--border-light);
    padding: 12px;
}

.table td {
    vertical-align: middle;
    padding: 12px;
}

/* Icon trong Table */
.icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 2px;
    border: 1px solid var(--border-light);
}

.url-text {
    word-break: break-all;
    display: inline-block;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nút bấm (Buttons) */
.action-btns .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 6px;
}
/* =========================================================
   3. GIAO DIỆN AUTH NÂNG CẤP (Tích hợp Đăng nhập & Đăng ký)
   ========================================================= */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg-dark);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    position: relative;
}

/* Header chuyển Tab */
.auth-header {
    display: flex;
    border-bottom: 1px solid var(--border-dark);
    background: rgba(0,0,0,0.2);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    user-select: none;
}

.auth-tab.active {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
    border-bottom: 2px solid var(--primary-color);
}

.auth-tab:hover:not(.active) {
    color: #a1a1aa;
}

/* Nội dung Form */
.auth-body-content {
    padding: 35px 30px;
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.auth-form.active {
    display: block;
}

/* Hiệu ứng mượt mà */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tùy chỉnh Nút bấm */
.btn-auth {
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
}