/* =========================================
   1. SETUP & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Màu chủ đạo */
    --primary-color: #3b82f6;       /* Xanh dương */
    --primary-hover: #2563eb;
    --secondary-color: #8b5cf6;     /* Tím */
    --success-color: #10b981;       /* Xanh lá */
    --warning-color: #f59e0b;       /* Vàng cam */
    --danger-color: #ef4444;        /* Đỏ */
    --info-color: #06b6d4;          /* Xanh ngọc */

    /* Màu nền & Chữ */
    --body-bg: #0f172a;             /* Nền tối chủ đạo (Slate 900) */
    --card-bg: rgba(30, 41, 59, 0.7); /* Nền kính mờ (Slate 800) */
    --input-bg: rgba(0, 0, 0, 0.3);
    
    --text-light: #f8fafc;
    --text-gray: #94a3b8;           /* Màu chữ phụ */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* =========================================
   2. GLOBAL STYLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--primary-color); }

/* Scrollbar Đẹp */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* =========================================
   3. COMPONENTS (THÀNH PHẦN CHUNG)
   ========================================= */

/* --- Glassmorphism Card (Khối Kính Mờ) --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Buttons (Nút bấm) --- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-glow {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none; color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: all 0.3s;
}
.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    color: white;
}

/* --- Form Inputs (Ô nhập liệu tối) --- */
.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* --- Table (Bảng tối) --- */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-gray);
    --bs-table-border-color: var(--border-color);
}
.table-hover tbody tr:hover {
    background-color: rgba(255,255,255,0.03);
    color: var(--text-light);
}

/* =========================================
   4. LAYOUT SECTIONS
   ========================================= */

/* --- Navbar (Menu) --- */
.navbar-glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.nav-link { color: var(--text-gray) !important; font-weight: 500; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff !important; }

/* --- Hero Section (Đầu trang) --- */
.hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(59,130,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Footer --- */
footer {
    background-color: #0b1120;
    border-top: 1px solid var(--border-color);
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-gray); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

/* Social Icons Footer */
.social-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-gray);
    transition: all 0.3s;
}
.social-btn:hover {
    background: var(--hover-color, var(--primary-color));
    border-color: var(--hover-color, var(--primary-color));
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   5. PAGE SPECIFIC (TRANG CON)
   ========================================= */

/* --- Admin Panel --- */
.admin-sidebar {
    background: rgba(30, 41, 59, 0.5);
    border-right: 1px solid var(--border-color);
}
.admin-content {
    flex-grow: 1;
    background: var(--body-bg);
}
.stat-card {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.stat-value { font-size: 2rem; font-weight: 800; color: white; }

/* --- Ticket & Chat --- */
.message-box { display: flex; margin-bottom: 15px; }
.message-box.user { justify-content: flex-end; }
.message-box .bubble {
    max-width: 80%; padding: 12px 16px; border-radius: 12px;
    font-size: 0.95rem; line-height: 1.5; position: relative;
}
.message-box.user .bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 2px;
}
.message-box.admin .bubble {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-bottom-left-radius: 2px;
}

/* --- Download Page --- */
.download-page {
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 60%);
    min-height: 100vh;
}
.server-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: 0.2s;
    display: block; text-align: center; padding: 15px;
}
.server-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
}

/* --- Features Sidebar --- */
.feature-sidebar {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.feature-link {
    display: flex; align-items: center; padding: 12px 20px;
    color: var(--text-gray); border-left: 3px solid transparent;
}
.feature-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}
/* --- Feature Card (Khối Chức Năng/Cài Đặt) --- */
.feature-card {
    /* Nền tối có độ trong suốt để lộ background phía sau */
    background: rgba(33, 37, 41, 0.75); 
    
    /* Hiệu ứng làm mờ nền phía sau (Glass effect) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Viền mỏng nhẹ tạo độ nổi */
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Bo góc mềm mại */
    border-radius: 12px;
    
    /* Đổ bóng nhẹ để tách biệt khỏi nền */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Hiệu ứng chuyển động mượt mà */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    
    /* Đảm bảo nội dung không bị tràn ra ngoài bo góc */
    overflow: hidden;
}

/* Hiệu ứng khi di chuột vào (Hover) */
.feature-card:hover {
    transform: translateY(-5px); /* Nổi lên trên 1 chút */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Bóng đổ sâu hơn */
    border-color: rgba(59, 130, 246, 0.5); /* Viền sáng màu xanh (Primary) */
}

/* Style cho tiêu đề bên trong Card (nếu có) */
.feature-card h5, 
.feature-card h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Style cho đường kẻ phân cách bên trong card */
.feature-card .border-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   6. UTILITIES (TIỆN ÍCH)
   ========================================= */
.text-gray { color: var(--text-gray) !important; }
.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }

/* Animation Fade In */
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ẩn thanh Google Translate */
.goog-te-banner-frame.skiptranslate { display: none !important; } 
iframe.skiptranslate { display: none !important; visibility: hidden !important; height: 0 !important; width: 0 !important; }
body { top: 0px !important; position: static !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }