/* style.css */

/* ======================== */
/* GLOBAL STYLES        */
/* ======================== */
/* Reset và Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    --primary-color: #ffffff;
    --secondary-color: #5a6268; /* Đã điều chỉnh để có độ tương phản tốt hơn */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #e9eee0; /* Đã điều chỉnh để có độ tương phản tốt hơn */
    --dark-color: #212529; /* Đã điều chỉnh */
    --border-color: #dee2e6;
    --bg-color: #f8f9fa; /* Đã điều chỉnh */
    --btn-action-color: green;
    --header-background-color: #007000;
    --main-color: #f0f1f2;
    --footer-background-color: #007689;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sidebar-width-desktop: 25%;
    --sidebar-width-mobile: 50%;
    --header-height: 60px;
    --footer-height: 50px;    
}

/* --- General and Reusable Classes --- */
body {    
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden; /* Ngăn chặn cuộn ngang */
   
}

.app-container {    
    padding: auto;
    padding-bottom: var(--footer-height);
}

.text-right {
    text-align: right;
}

/* ======================================= */
/* ---          HEADER STYLES        --- */
/* ======================================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--header-background-color);
    color: var(--light-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1;
}

/* --- BRANDING --- */
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-duration) ease-in-out;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--hover-color);
    letter-spacing: 2px;
}

/* --- MOBILE TOGGLE BUTTON --- */
.menu-toggle {
    display: none; /* Ẩn mặc định trên màn hình lớn */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-duration);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* --- NAVIGATION AND DROPDOWNS (Mobile first) --- */
.header-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.25rem 0.2rem;
    position: relative;
    transition: color var(--transition-duration);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-duration) ease-in-out;
}

.nav-link:hover {
    color: var(--hover-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Container cho dropdown menu */
.nav-dropdown-container {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    padding: 0.5rem 0;
}

.nav-dropdown-container:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: var(--light-text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color var(--transition-duration), color var(--transition-duration);
}

.dropdown-item:hover {
    background-color: var(--background-color);
    color: var(--hover-color);
}

/* Giỏ hàng */
.nav-cart-btn {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-duration);
}

.nav-cart-btn:hover {
    color: var(--primary-color);
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    border: 1px solid var(--background-color);
}

/* Bộ chọn ngôn ngữ */
.lang-selector-container {
    display: flex;
    align-items: center;
}

.lang-selector {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-duration);
}

.lang-selector:focus {
    border-color: var(--primary-color);
}

.header-container #navProfile {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.header-container #navLogout {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* ======================================= */
/* Thiết kế đáp ứng (Responsive Design) */
/* ======================================= */
@media (max-width: 768px) {
    .app-header {
        padding: 0.5rem;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    /* Hiển thị nút menu toggle */
    .menu-toggle {
        display: block;
    }

    /* Thêm class này vào body khi menu mở */
    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    .header-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 5px 10px;
        align-items: flex-start;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
      
        /* Các thuộc tính xử lý cuộn chung cho cả hai trạng thái */
        overflow-y: auto;
        max-height: calc(100vh - var(--footer-height));
    }

    /* Chỉ định các thuộc tính thay đổi khi menu active */
    .header-container.active {
        display: flex;
        transform: translateY(0);
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.4rem 0;
    }
    
    .nav-link::after {
        display: none;
    }

     /* Trạng thái mặc định: menu ẩn */
    .nav-dropdown-container .nav-dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Trạng thái active: menu hiện */
    .nav-dropdown-container.active .nav-dropdown-menu {
        display: block; /* Hoặc flex/grid */
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown-container, .lang-selector-container {
        width: 100%;
    }   

    /* Hiển thị dropdown menu trên di động */
    .nav-dropdown-container:hover .dropdown-menu {
        display: block;
        position: static;
        background-color: rgba(44, 62, 80, 0.7);
    }
    
    .dropdown-menu {
        min-width: unset;
        width: 100%;
        padding: 0;
        box-shadow: none;
    }

    .dropdown-item {
        padding-left: 3rem;
    }

    /* Đổi màu icon giỏ hàng khi ở chế độ di động */
    .nav-cart-btn {
        color: var(--primary-color);
    }
}

/* --- TEXT STYLES --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

/* --- LINK STYLES (for <a> tags) --- */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* --- BUTTON STYLES --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--btn-text-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--btn-text-color);
}

/* ======================================= */
/* ---       MAIN CONTENT CLASSES      --- */
/* ======================================= */
.main-content {
    padding: 1rem 0;    
}

/* Ẩn/hiện các section một cách mượt mà */
.main-section {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}
.main-section.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ======================================= */
/* --- CSS cho Tab Buttons và Tab Panes --- */
/* ======================================= */
.tab-buttons {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem; /* Tăng khoảng cách dưới */
    padding: 0 10px;
    background-color: #fff; /* Nền trắng cho thanh tab */
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Thêm đổ bóng nhẹ */
}

.tab-buttons::-webkit-scrollbar {
    display: none; /* Dành cho Chrome, Safari và Opera */
}

.tab-buttons:has(button:nth-child(2)) {
    display: flex; /* Hiển thị khi có 2 nút trở lên */
}

.tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    background-color: transparent;    
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.tab-button.active {
    color: var(--accent-color);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.tab-content {
    overflow: hidden;
}

.tab-pane {
    display: none; /* Mặc định ẩn tất cả các tab content */
    animation: fadeIn 0.5s ease-in-out;
    min-height: 600px;
}

.tab-pane.active {
    display: block; /* Chỉ hiển thị tab đang hoạt động */
}

/* Styling for the card container and individual cards */
.card-content {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */    
    gap: 2rem; /* Spacing between cards */
    /* Thuộc tính đã được thêm để căn chỉnh */
    justify-content: center; /* Căn giữa các khối theo chiều ngang */
    align-items: flex-start; /* Căn các khối lên phía trên cùng của container */
}

/* ======================================= */
/* ----     TOKENOMICS SECTION   ------- */
/* ======================================= */

/* Container chính cho toàn bộ trang Tokenomics */
.tokenomics-container {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- GRID INFOMATION --- */
/* Bố cục lưới cho các thẻ thông tin chính */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Tối ưu kích thước cột */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Thẻ thông tin riêng lẻ */
.info-card {
    background-color: #f9fafb; /* Thay đổi nền để tạo sự khác biệt */
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem; /* Góc bo tròn hơn */
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 3rem; /* Tăng kích thước icon */
    color: #1a73e8; /* Màu xanh đậm hơn, nổi bật */
    margin-bottom: 1.25rem;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.5rem; /* Tăng kích thước giá trị */
    font-weight: 800;
    color: #000000;
}

/* --- DISTRIBUTION CHART & LIST --- */
/* Container chứa biểu đồ và danh sách phân phối */
.distribution-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* Kiểu cho vùng chứa biểu đồ */
.chart-container {
    width: 100%;
    max-width: 500px; /* Tăng kích thước tối đa của biểu đồ */
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

/* Kiểu cho danh sách phân phối */
.distribution-list {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.list-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e5e7eb; /* Đường gạch ngang mờ */
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .category {
    font-weight: 600;
    color: #1f2937;
}

.list-item .percentage {
    font-weight: 700;
    color: #1a73e8; /* Màu xanh nổi bật cho % */
}

/* Sắp xếp bố cục theo chiều ngang trên màn hình lớn */
@media (min-width: 992px) {
    .distribution-info {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 4rem; /* Tăng khoảng cách trên desktop */
    }
}

/* --- UTILITY LIST --- */
/* Danh sách tiện ích/ứng dụng của token */
.utility-list {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.utility-list li {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    font-size: 1rem;
    color: #374151;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding-left: 3rem;
}

.utility-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.utility-list li:before {
    content: "\f058"; 
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #10b981;
    font-size: 1.5rem;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* --- 1. Phân vùng cho Hợp đồng Thông minh (Contract Info) --- */
/* Đảm bảo info-grid chính xác cho 3 cột trong mục hợp đồng */
.info-grid {
    /* Đã có trong CSS cũ: grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 25px;
    margin-bottom: 40px;
}

.contract-info-grid {
    /* Điều chỉnh lại bố cục cho các thẻ thông tin hợp đồng */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    align-items: stretch;
}

.contract-info-grid .small-card {
    /* Đảm bảo thẻ nhỏ có cùng chiều cao và padding tối ưu */
    min-height: 140px; 
    padding: 20px;
    /* Có thể thêm border hoặc shadow để nổi bật */
}

.full-width-card {
    /* Thẻ địa chỉ hợp đồng chiếm toàn bộ chiều rộng (3 cột) */
    grid-column: 1 / -1; 
    text-align: left;
    background-color: #eaf5ff; /* Nền khác để nổi bật */
    border: 1px solid #cce5ff;
}

.contract-address-value {
    font-size: 1.2em;
    font-family: 'Courier New', Courier, monospace; /* Font monospace cho địa chỉ */
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #0056b3;
    padding-top: 5px;
}

.verify-link {
    color: #007bff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9em;
    font-weight: 600;
    flex-shrink: 0; /* Ngăn link bị co lại */
}

/* --- 2. Cấu trúc Đa Mạng lưới (Multi-Chain Details) --- */
.multi-chain-details {
    display: flex;
    flex-direction: column; /* Xếp chồng theo chiều dọc */
    gap: 30px; /* Khoảng cách giữa các chi tiết mạng */
}

.contract-details {
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.network-header {
    font-size: 1.3em;
    color: #007bff; /* Màu chủ đạo cho tiêu đề mạng */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e9ecef;
    font-weight: 600;
}

.network-header .fab, .network-header .fas {
    margin-right: 10px;
}


/* --- Media Queries (Tối ưu hóa cho thiết bị di động) --- */
@media (max-width: 768px) {
    .contract-info-grid {
        /* Chuyển sang bố cục một cột trên di động */
        grid-template-columns: 1fr;
    }
    
    .full-width-card {
        /* Đảm bảo thẻ địa chỉ vẫn hiển thị đúng */
        grid-column: 1 / 1; 
    }

    .contract-address-value {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .verify-link {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ======================================= */
/* ---         CSS WCT SECTION         --- */
/* ======================================= */
/* Kiểu cho vùng chứa kết nối ví */
.wct-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

/* Kiểu cho biểu tượng, tiêu đề và văn bản */
.wct-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.wct-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.wct-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Kiểu cho nút kết nối ví */
.btn-connect-wallet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6; /* Nền xanh */
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-connect-wallet i {
    margin-right: 0.5rem;
}

.btn-connect-wallet:hover {
    background-color: #2563eb; /* Màu xanh đậm hơn khi di chuột */
    transform: translateY(-2px); /* Hiệu ứng nâng nhẹ */
}

/* ======================================= */
/* ----     PRIVACY POLICY SECTION   ------- */
/* ======================================= */

.privacy-policy-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.privacy-policy-header .main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.privacy-policy-header .section-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.policy-content {
    padding: 0 1rem;
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.policy-content h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: #3b82f6; /* Màu xanh nổi bật */
    border-radius: 3px;
}

.policy-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* responsive design for smaller screens */
@media (max-width: 768px) {    

    .privacy-policy-header .main-title {
        font-size: 2rem;
    }

    .policy-content h2 {
        font-size: 1.3rem;
    }
}

/* ======================================= */
/* ----     TERMS OF SERVICE SECTION   ------- */
/* ======================================= */

.terms-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.terms-header .main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.terms-header .section-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.terms-content {
    padding: 0 1rem;
}

.terms-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.terms-content h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: #3b82f6; /* Màu xanh nổi bật */
    border-radius: 3px;
}

.terms-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* responsive design for smaller screens */
@media (max-width: 768px) {    

    .terms-header .main-title {
        font-size: 2rem;
    }

    .terms-content h2 {
        font-size: 1.3rem;
    }
}

/* ======================================= */
/* ----     CONTACT PAGE   ------- */
/* ======================================= */

/* Phần chính của trang Liên hệ */
.contact-page {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.contact-page .main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.contact-page .section-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Biểu mẫu liên hệ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.form-textarea {
    resize: vertical;
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center; /* Căn giữa nút */
}

.btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* ======================================= */
/* ----     LOCATIONS SECTION   ------- */
/* ======================================= */

.location-page {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.location-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.location-icon {
    font-size: 3rem;
    color: #ef4444; /* Màu đỏ nổi bật */
}

.location-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.location-address,
.location-phone,
.location-email {
    font-size: 1rem;
    color: #4b5563;
    margin: 0.25rem 0;
}

/* ======================================= */
/* ----     SOCIAL MEDIA SECTION   ------- */
/* ======================================= */

.social-page {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    background-color: var(--footer-background-color);
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--light-color);
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Tùy chỉnh màu sắc cho từng link */
.social-link.fa-facebook-f { color: #3b5998; }
.social-link.fa-twitter {  color: #1da1f2; }
.social-link.fa-linkedin-in {  color: #0077b5; }
.social-link.fa-telegram-plane {  color: #0088cc; }

.social-link:hover {
    transform: translateY(0px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
   
}

.social-link i {
    font-size: 1.2rem;
}

/* ======================================= */
/*             ABOUT SECTION              */
/* ======================================= */
.about-text, .section-description, .story-paragraph {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    text-align: center;
}
/* 2. Our Story       */
.story-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .story-container {
        flex-direction: row;
        text-align: left;
    }
}

.story-image-wrapper {
    flex: 1;
}

.story-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.story-text-wrapper {
    flex: 1;
}

.story-paragraph {
    text-align: left;
    margin: 0 0 1rem 0;
}

/* Sachtony Intro   */
.sachtony-intro-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .sachtony-intro-container {
        flex-direction: row;
        text-align: left;
    }
}

.sachtony-intro-image {
    flex: 1;
}

.sachtony-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sachtony-intro-text {
    flex: 1;
}

.sachtony-paragraph {
    text-align: left;
    margin: 0 0 1rem 0;
}

.sachtony-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

/* Brand Assets     */
.brand-assets-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .brand-assets-container {
        flex-direction: row;
        justify-content: center;
    }
}

.brand-asset-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    max-width: 350px;
}

.brand-asset-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.brand-asset-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* 5. Video             */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mission & Vision    */
.mission-vision-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mission-vision-container {
        flex-direction: row;
        justify-content: center;
    }
}

.mission-vision-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 500px;
}

.mission-vision-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.mission-vision-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.mission-vision-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Our Team       */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-member-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    flex: 1 1 300px;
    max-width: 350px;
}

.team-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #3b82f6;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.team-member-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1rem;
}

.team-member-title-blue { color: #2563eb; background-color: #dbeafe; }
.team-member-title-green { color: #15803d; background-color: #dcfce7; }
.team-member-title-amber { color: #b45309; background-color: #fef3c7; }

.team-member-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

.team-social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social-link {
    color: #6b7280;
    transition: color 0.3s ease;
}

.team-social-link:hover {
    color: #3b82f6;
}

/* Join Community */
.join-community-text {
    text-align: center;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-contact {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #059669;
}

/* ======================================= */
/* -------- Service Grid & Cards ------     */
/* ======================================= */
.service-grid {
    display: grid;
    /* Tạo bố cục lưới responsive với các cột có chiều rộng tối thiểu 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center; /* Căn giữa các thẻ dịch vụ trong lưới */
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Đảm bảo các thẻ có chiều cao bằng nhau */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 3rem;
    color: #3b82f6; /* Màu xanh nổi bật cho biểu tượng */
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    flex-grow: 1; /* Cho phép mô tả chiếm hết không gian còn lại */
}

/* List Styles    */
.consulting-list,
.development-list {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.consulting-list li,
.development-list li {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(12, 7, 7, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.consulting-list li:hover,
.development-list li:hover {
    transform: translateX(10px);
}

/* ======================================= */
/*  ------- Product Grid & Cards ------    */
/* ======================================= */
.product-grid {
    display: grid;
    /* Tạo bố cục lưới responsive với các cột có chiều rộng tối thiểu 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center; /* Căn giữa các thẻ sản phẩm trong lưới */
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Đảm bảo các thẻ có chiều cao bằng nhau */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-icon {
    font-size: 3rem;
    color: #3b82f6; /* Màu xanh nổi bật cho biểu tượng */
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    flex-grow: 1; /* Cho phép mô tả chiếm hết không gian còn lại */
    margin-bottom: 1.5rem;
}

.btn-product {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-product:hover {
    background-color: #059669;
}

/* ======================================= */
/*  ----------  SHOP SECTION -------       */
/* ======================================= */
.product-listing-grid {
    display: grid;
    /* Tạo bố cục lưới responsive */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.listing-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.listing-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.listing-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.listing-description {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.listing-price {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6; /* Màu xanh nổi bật cho giá */
    margin-bottom: 1.5rem;
}

.btn-add-to-cart {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981; /* Màu xanh lá cho nút */
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #059669; /* Màu xanh đậm hơn khi di chuột */
}

/* ======================================= */
/* ---------   Pay Intro Section  ---      */
/* ======================================= */
.pay-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.pay-icon {
    font-size: 3rem;
    color: #3b82f6; /* Màu xanh nổi bật cho biểu tượng */
    margin-bottom: 1rem;
}

.pay-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: center;
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-pay:hover {
    background-color: #2563eb;
}

/* Features Section         */
.feature-list {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Bố cục lưới responsive */
    gap: 1.5rem;
}

.feature-list li {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-size: 1rem;
    color: #374151;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-list li strong {
    color: #1f2937;
    display: block; /* Đảm bảo tiêu đề in đậm nằm trên một dòng riêng */
    margin-bottom: 0.5rem;
}

.payment-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}
.btn-pay {
    background-color: #28a745;
}
.btn-pay:hover {
    background-color: #218838;
}

/* ======================================= */
/* --- FOOOTER AND MAIN FOOTER CLASSES --- */
/* ======================================= */
footer {
    background-color: #1f2937;    
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    justify-content: space-between;
    height: var(--footer-height);
}
.app-footer .copyright-text {    
    text-align: center;
    color: white;
    padding: 10px 20px;
}

.main-footer {
    background-color: var(--footer-background-color);
    color: var(--main-color);
    padding: 2rem 1rem;
    font-size: 0.875rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    z-index: 0;
}
@media (min-width: 640px) {
    .main-footer {
        padding: 2rem 1.5rem;
    }
}
@media (min-width: 768px) {
    .main-footer {
        padding: 2rem 2rem;
    }
}

.footer-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    /* No specific styles needed here, just a container */
    font-size: 1.125rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-text {
    color: #ffffff;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.1rem;
    font-size: 0.4rem;
    margin: auto;
}

.social-link {
    color: #ffffff;
    transition: color 0.2s;
}
.social-link:hover {    
    color: #60a5fa;
}

.main-footer .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    
}

.footer-link {
    color: #eceef1;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.footer-contact {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-icon-contact {
    margin-right: 0.5rem;
}

/* ======================================= */
/* ---------  BLOGS SECTION ------------*/
/* ======================================= */

/* Ẩn các bài viết mặc định, sẽ được hiển thị bằng JavaScript */
.blog-card {
    display: none;
}

/* Vùng chứa chung cho trang blog */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Các nút danh mục */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-button {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-button:hover,
.category-button.active {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Container cho các bài viết */
.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Thẻ bài viết (blog-card) */
.blog-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-title {
    color: var(--heading-color);
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-summary {
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Metadata và Actions */
.post-meta,
.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.post-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.post-views {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-button,
.read-more-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.share-button:hover,
.read-more-link:hover {
    color: #0056b3;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Nút tương tác (Like, Love, Haha, Comment) */
.interaction-buttons {
    display: flex;
    gap: 15px;
}

.interaction-button {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.interaction-button:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.interaction-button i {
    font-size: 1.1rem;
}

/* Các trạng thái ACTIVE */
/* Nút Like khi được click */
.like-button.active {
    color: #007bff; /* Màu xanh dương */
}

/* Nút Love khi được click */
.love-button.active {
    color: #e83e8c; /* Màu hồng */
}

/* Nút Haha khi được click */
.haha-button.active {
    color: #ffc107; /* Màu vàng */
}

/* Nút Comment khi được click */
.comment-button.active {
    color: #28a745; /* Màu xanh lá */
}

/* ======================================= */
/* ---------  PAGINATION   ------------*/
/* ======================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pagination-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.pagination-button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    color: var(--secondary-color);
    transform: none;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-numbers button.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ======================================= */
/* ---       NEWS SECTION             --- */
/* ======================================= */
.main-title {
    color: var(--heading-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Thẻ tin tức */
.news-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Lớp CSS để ẩn thẻ, sẽ được thêm/xóa bằng JavaScript */
.news-item.hidden {
    display: none;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-title {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.news-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
}

.news-summary {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.news-link:hover {
    text-decoration: underline;
    color: #0056b3;
    transform: translateX(3px);
}

/* ======================================= */
/* --- Phần Thông cáo báo chí --- */
/* ======================================= */
.press-release-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
    max-width: 900px;
    margin: 0 auto;
}

.press-release-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.press-release-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.press-release-title {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin: 0 0 8px 0;
}

.press-release-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.press-release-summary {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* ======================================= */
/* --- Phần Truyền thông --- */
/* ======================================= */
.media-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.media-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--dark-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.media-link i {
    font-size: 1.2rem;
}

.media-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ======================================= */
/* ---       RESPONSIVE             --- */
/* ======================================= */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .news-list-container {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .category-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
}

/* ======================================= */
/* --- AUTH FORM & INPUTS (CONTACT SECTION) --- */
/* ======================================= */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.btn-auth {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--btn-text-color);
    background-color: var(--accent-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-auth:hover {
    background-color: var(--accent-hover-color);
}

.auth-link-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.auth-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ======================================= */
/* ----     CART SECTION   ------- */
/* ======================================= */

.cart-container {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-container .main-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100px; /* Đảm bảo có chiều cao tối thiểu */
    position: relative;
}

.cart-empty-message {
    text-align: center;
    font-style: italic;
    color: #9ca3af;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    color: #4b5563;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #d1d5db;
}

.item-quantity {
    font-weight: 600;
    color: #1f2937;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-size: 1rem;
    font-weight: 700;
    color: #1a73e8; /* Màu xanh nổi bật cho tổng tiền từng sản phẩm */
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #dc2626;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.cart-total-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.cart-total-amount {
    color: #1a73e8;
    font-weight: 700;
}

.btn-checkout {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a73e8;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: #155bb5;
}

.btn-checkout:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* ======================================= */
/*           Home section Style          */
/* ======================================= */

/* --- Container chứa các Home Boxes  --- */
.card-content {
    display: flex; /* Dùng Flexbox để sắp xếp các home-box */
    flex-wrap: wrap;
    gap: 20px; /* Khoảng cách giữa các box */
    justify-content: space-around; /* Căn giữa các box khi không đủ 3 cột */
    margin-top: 30px;
}

.home-box {
    background-color: var(--card-background); /* Sử dụng biến */
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Điều chỉnh flex-basis để kiểm soát 3 cột trên desktop */
    flex: 1 1 280px; 
    max-width: 320px; 
    border: 1px solid #e5e7eb;
    text-align: center; /* Căn giữa nội dung home-box */
}

.home-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.home-icon {
    font-size: 2.5rem;
    color: var(--primary-color); /* Sử dụng biến */
    margin-bottom: 1rem;
}

.home-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.home-text {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* --- Quick Stats Container (Tối ưu nhẹ) --- */
.quick-stats-container {
    margin-bottom: 30px;
}

.stats-title {
    font-size: 1.2em;
    color: var(--heading-color);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    font-weight: 600;
}

.stats-cards {
    display: flex;
    justify-content: space-between; /* Đảm bảo phân bổ đều */
    gap: 15px;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    flex-grow: 1;
    border-right: 1px solid #e0e6ed;
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.85em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.4em;
    font-weight: bold;
}
.stat-value i {
    margin-left: 5px;
    font-size: 0.9em;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* --- Call to Action (CTA) Box --- */
.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-color), #00ffcc); 
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 15px var(--shadow-color);
}

.cta-box h3 {
    color: rgb(0, 0, 0);
    font-size: 1.4em; /* Tăng kích thước tiêu đề CTA */
    margin-top: 0;
    padding-bottom: 0;
    font-weight: 700;
}

.cta-box p {
    margin: 0;
    font-size: 0.9em;
    color: rgb(0, 0, 0);
}

.btn-cta {
    background: rgb(0, 0, 0);
    color: var(--primary-color);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-cta:hover {
    background-color: #e0e0e0;
}


/* ======================================= */
/* ---     NOTIFICATIONS PAGE       --- */
/* ======================================= */
.notification-list {
    list-style-type: none;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.notification-item {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Giảm độ mờ shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notification-icon {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--primary-color);
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 5px 0;
}

.notification-text {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.notification-date {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 10px;
}

.notification-item.unread {
    border-left: 5px solid var(--primary-color);
    background-color: #f7faff; /* Nền nhẹ hơn cho thông báo chưa đọc */
}

.notification-item.unread .notification-title {
    font-weight: 700;
    color: var(--primary-color);
}

.notification-item.read {
    opacity: 0.8;
}

.notification-item.read:hover {
    opacity: 1;
}

/* ======================================= */
/* ---       RESPONSIVE DESIGN       --- */
/* ======================================= */

@media (max-width: 768px) {
    /* Tablet/Landscape Mobile */
    
    /* Home Boxes: Chuyển sang 2 cột */
    .home-box {
        flex: 1 1 calc(50% - 10px); /* 2 cột với khoảng cách 20px/2 = 10px */
        max-width: unset;
        padding: 2rem 1rem;
    }
    
    /* Stats Cards: Giữ 3 cột nhưng giảm khoảng cách */
    .stats-cards {
        gap: 10px;
    }
}


@media (max-width: 600px) {
    /* Mobile Portrait */
    
    /* Home Boxes: Chuyển sang 1 cột */
    .home-box {
        flex: 1 1 100%; 
        max-width: 100%;
    }
    
    /* Stats Cards: Chuyển thành 1 cột */
    .stats-cards {
        flex-direction: column;
        gap: 0;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e0e6ed; /* Phân tách bằng border dưới */
        padding: 15px 10px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    /* CTA Box: Chuyển thành 1 cột */
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
    
    /* Notifications: Cập nhật lại responsive */
    .notification-item {
        flex-direction: row; /* Giữ icon và content cùng hàng (nếu đủ chỗ) */
        align-items: center;
        padding: 15px;
    }
    .notification-icon {
        margin-right: 15px;
        margin-bottom: 0;
    }
    .notification-title {
        font-size: 1rem;
    }
}

/* Bổ sung quy tắc cho Mobile dưới 576px để tránh xung đột */
@media (max-width: 576px) {
    .notification-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .notification-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ======================================= */
/* --------  MARTKET SECTION    ------   */
/* ======================================= */
.main-title {
    font-size: 2.5rem; /* Cập nhật kích thước để thống nhất với các phần khác */
    font-weight: 700;
    color: #1f2937; /* Cập nhật màu sắc để thống nhất */
    text-align: center;
    margin-bottom: 1.5rem;
}

.data-source-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
}

.hidden {
    display: none !important;
    
}

/* Search & Filter Section */
.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .filter-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem; /* Giảm khoảng cách để gọn hơn */
    }
}

.search-input {
    flex-grow: 1;
    width: 100%; /* Đảm bảo input chiếm đủ không gian trên di động */
    padding: 0.75rem 1rem; /* Bổ sung padding ngang */
    border: 1px solid #e2e8f0; /* Thống nhất màu viền */
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Thêm box-shadow nhẹ */
}

.search-input:focus {
    border-color: #3b82f6; /* Thống nhất màu focus */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25); /* Thống nhất màu box-shadow focus */
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    font-weight: 600; /* Thay đổi trọng lượng font */
    border-radius: 0.5rem; /* Thay đổi thành 0.5rem để thống nhất */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background-color: #1d4ed8;
}

.icon-filter {
    font-size: 1rem;
}

/*  Data Table Section */
.data-table-container {
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Giữ lại một giá trị box-shadow */
    padding: 0; /* Loại bỏ padding để không bị khoảng trống bên trong */
}
/* Ẩn thanh cuộn cho Webkit (Chrome, Safari) */
.data-table-container::-webkit-scrollbar {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background-color: #eff6ff; /* Màu nền cho tiêu đề */
    border-bottom: 1px solid #e5e7eb;
}

.table-head {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table-head.text-right {
    text-align: right;
}

.table-body tr {
    border-bottom: 1px solid #edf2f7;
}

.table-body tr:hover {
    background-color: #f7fafc;
}

.table-body td {
    padding: 1rem;
    vertical-align: middle;
    font-size: medium;
    color: #4b5563; /* Thêm màu cho văn bản trong cell */
}

/* Loading & Error States */
.loading-state,
.error-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #4b5563;
}

.error-display {
    color: #dc2626;
}

.loading-icon {
    font-size: 3rem;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1.125rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}


/* Exchanges Carousel */
.exchanges-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    justify-content: center;
    align-items: flex-start;
}
/* Ẩn thanh cuộn cho Webkit (Chrome, Safari) */
.exchanges-carousel::-webkit-scrollbar {
    display: none;
}


.exchange-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    width: 9rem;
    height: 9rem;
    flex-shrink: 0;
}

.exchange-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.exchange-logo {
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.5rem;
    border-radius: 9999px;
}

.exchange-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
}

/* ======================================= */
/* --------  EMPLOYEES SECTION    ------   */
/* ======================================= */

.employees-container {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0;
}

/* Search and Filter */
.search-filter-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.search-bar {
    position: relative;
}

#searchInput {
    width: 300px;
    padding: 10px 15px;
    padding-right: 40px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.search-bar .fas {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-dropdown select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background-color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown select:focus {
    border-color: #3498db;
    outline: none;
}

/* Employee Grid & Cards */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-items: center;
}

.employee-card {
    background-color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.employee-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.employee-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.employee-role {
    font-size: 1em;
    color: #3498db;
    margin: 5px 0 0;
}

.employee-department {
    font-size: 0.9em;
    color: #7f8c8d;
    margin: 5px 0 0;
}

/* ======================================= */
/* --------  MODAL    ------   */
/* ======================================= */
/* Container chứa các modal */
#modalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Thêm thuộc tính này để mặc định không chặn tương tác */
    pointer-events: none;
}
.modal {
    display: none;
    position: fixed;
    z-index: 100; /* Đặt z-index cao hơn để modal hiển thị trên lớp phủ */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 50px;
    pointer-events: auto; /* Bật lại tương tác cho modal */
}

/* Hộp thoại modal */
.modal-dialog {
    position: relative;
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s
}

/* Nội dung bên trong hộp thoại */
.modal-content {
    background-color: #fefefe;
    border-radius: 8px;
    border: 1px solid #888;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s
}

/* Phần tiêu đề modal */
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a2b2c;
}

/* Nút đóng modal */
.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

/* Phần nội dung chính của modal */
.modal-body {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* Phần chân modal */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* Kiểu dáng cho nút "Ok" */
.btn-primary {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Hiệu ứng chuyển động */
/* Add Animation */
@-webkit-keyframes slideIn {
  from {bottom: -300px; opacity: 0} 
  to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

.brand-logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.modal-brand-logo {
    height: 36px;
    width: auto;
    margin-right: 12px;
}

/* Media query cho màn hình có chiều rộng tối đa 500px */
@media screen and (max-width: 500px) {
    /* Các quy tắc CSS sẽ được áp dụng cho màn hình nhỏ */
    .modal-dialog {
        /*
          * Bỏ thuộc tính margin trên màn hình nhỏ để modal chiếm toàn bộ chiều cao màn hình.
          * Hoặc có thể giảm margin để nó không bị ép sát vào các cạnh.
          */
        margin: 0;
        
        /* Đảm bảo modal chiếm toàn bộ chiều rộng có thể */
        width: 100%;
        max-width: 100%;
        
        /* Tùy chỉnh padding và font-size để phù hợp với màn hình nhỏ */
        padding: 10px;
    }
    
    .modal-body {
        font-size: 0.9rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    /* Có thể ẩn logo nếu nó chiếm quá nhiều diện tích */
    .modal-brand-logo {
        height: 30px;
        margin-right: 8px;
    }
    
    /* Điều chỉnh animation */
    @keyframes animatetop {
        from { top: -200px; opacity: 0; } 
        to { top: 0; opacity: 1; }
    }
}