body {
    display: flex;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1e1e2d;
    color: #fff;
}

.sidebar {
    width: 250px;
    background-color: #2e2e3e;
    padding: 20px;
    min-height: 100vh;
    position: fixed; /* Để sidebar cố định vị trí */
    top: 0;
    left: 0;
    
}

.sidebar {
    overflow-y: auto; /* K�ch ho?t cu?n d?c n?u n?i dung qu� nhi?u */
}

.sidebar .balance, .tools, .contact {
    font-size: 18px;
    color: #ccc;
    padding: 10px;
    border-radius: 5px;
    padding-top: 20px;
}

.sidebar .menu1 a {
    display: block;
    padding: 10px;
    color: #ccc;
    text-decoration: none;
    border-radius: 5px;
}

.sidebar .menu1 a.active {
    background-color: #444;
    color: #fff;
}

/* Style for sidebar menu links */
.menu1 a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    transition: background-color 0.3s, color 0.3s; /* Hiệu ứng chuyển màu */
}

.menu1 a:hover {
    background-color: #f1f1f1; /* Màu nền khi hover */
    color: #007bff; /* Màu chữ khi hover */
}


.sidebar .menu2 a {
    display: block;
    padding: 10px;
    color: #ccc;
    text-decoration: none;
    border-radius: 5px;
}

.sidebar .menu2 a.active {
    background-color: #444;
    color: #fff;
}

/* Style for sidebar menu links */
.menu2 a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    transition: background-color 0.3s, color 0.3s; /* Hiệu ứng chuyển màu */
}

.menu2 a:hover {
    background-color: #f1f1f1; /* Màu nền khi hover */
    color: #007bff; /* Màu chữ khi hover */
}

.menu2 a.active {
    color: #007bff;
}
.submenu-chromedriver {
    display: none; /* Ẩn submenu theo mặc định */
    position: fixed; /* Đặt submenu ở vị trí cố định */
    left: 250px; /* Đặt submenu bên phải sidebar */
    width: 200px;
    background-color: #3a3a4a;
    padding: 10px;
    border-radius: 5px;
}

/* Định dạng submenu items */
.submenu-chromedriver a {
    display: block;
    padding: 10px;
    color: #ccc;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 5px;
}

.submenu-chromedriver a:hover {
    background-color: #444;
}

.submenu-chromedriver.active {
    display: block; /* Hiển thị submenu khi có lớp active */
}


.sidebar .logout {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    background-color: #d9534f;
    color: white;
    border: none;
    cursor: pointer;
}


.sidebar {
    position: relative;
    padding-top: 20px;
}


.logo {
    text-align: center;
    margin-bottom: 20px; /* Khoảng cách giữa logo và các thành phần khác */
}

.logo img {
    max-width: 80%; /* Đảm bảo logo vừa với khung sidebar */
    height: auto;
    border-radius: 8px; /* Tùy chọn: làm tròn các góc logo nếu muốn */
}


.main-content {
    background-color: #282a36;
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-page-title {
    color: #f993df; /* Màu tím Dracula */
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

/* Make product cards larger and responsive */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Khoảng cách giữa các sản phẩm */
}

.product-card {
    flex: 1 1 40%; /* Điều chỉnh size khung sản phẩm */
    max-width: 350px; /* Giới hạn chiều rộng tối đa */
    box-sizing: border-box;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s; /* Hiệu ứng khi hover */
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-card:hover {
    transform: scale(2.05); /* Phóng to nhẹ khi hover */
}

.product-title {
    font-size: 20px;
    margin: 10px 0;
    color: #ff79c6; /* Màu chữ tiêu đề sản phẩm */
}

.product-prices {
    margin: 10px 0;
}

.price-option {
    color: #50fa7b; /* Màu cho giá sản phẩm */
    font-weight: bold;
}

.buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6272a4; /* Màu xanh dương */
    color: white; /* Màu chữ trắng */
    text-decoration: none; /* Bỏ gạch chân */
    border-radius: 5px; /* Bo góc */
    font-size: 16px; /* Kích thước chữ */
    flex-grow: 1;
}

.buy-button:hover {
    background-color: #50fa7b; /* Màu khi hover */
}

.detail-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #bd93f9 ; /* Màu cam */
    color: white; /* Màu chữ trắng */
    text-decoration: none; /* Bỏ gạch chân */
    border-radius: 5px; /* Bo góc */
    font-size: 16px; /* Kích thước chữ */
    margin-left: 10px; /* Khoảng cách giữa các nút */
}

.detail-button:hover {
    background-color: #ff79c6 ; /* Màu khi hover */
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #2e2e3e;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.popup-content input[type="number"] {
    width: 80%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
}

.popup-content button:last-child {
    background-color: #d9534f;
}

select {
    background-color: #44475a; /* Nền của combobox */
    color: #f8f8f2; /* Màu chữ trong combobox */
    border: 1px solid #6272a4; /* Viền combobox */
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    width: 100%; /* Độ rộng của combobox */
    cursor: pointer;
}

select:focus {
    outline: none; /* Bỏ viền khi focus */
    border-color: #50fa7b; /* Màu viền khi focus */
}

.product-card {
    background-color: #2e2e3e;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng nổi lên khi di chuột qua sản phẩm */
.product-card:hover {
    transform: translateY(-10px); /* Nổi lên */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Tạo bóng */
}

/* Style for user icon and menu */
.user-icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    min-width: 150px;
    border-radius: 4px;
}

.user-menu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.user-menu a:hover {
    background-color: #f1f1f1;
}

.username {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.user-info {
    margin-bottom: 15px;
        text-align: center;
}

.role {
    color: #888;
    font-size: 0.9em;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.menu-item i {
    margin-right: 8px;
    color: #888; /* Màu của icon */
}

.menu-item:hover {
    background-color: #f0f0f0; /* Màu khi hover */
    border-radius: 4px;
}

.show {
    display: block;
}



/* Toàn bộ nền bảng */
.table-container {
    background-color: #282a36;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Thiết lập bảng */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Tiêu đề bảng */
thead th {
    color: #f8f8f2;
    background-color: #44475a;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #6272a4;
    font-weight: bold;
}

/* Các dòng dữ liệu */
tbody tr {
    background-color: #3b3f5c;
    color: #f8f8f2;
}

tbody tr:nth-child(even) {
    background-color: #44475a;
}

/* Các ô trong bảng */
td {
    padding: 10px;
    border-bottom: 1px solid #6272a4;
}

/* Tin nhắn "Bạn chưa có giao dịch nào." */
.no-transaction-message {
    text-align: center;
    color: #bd93f9;
    font-style: italic;
    padding: 20px;
}

/* styles.css */
/* styles.css */
.popup-message {
    position: fixed; /* Đặt vị trí cố định */
    top: 60px; /* Khoảng cách từ trên xuống */
    right: 20px; /* Khoảng cách từ bên phải */
    background-color: #ff0000; /* Màu nền cho thông báo cảnh báo */
    color: white; /* Màu chữ */
    padding: 10px 20px; /* Đệm xung quanh nội dung */
    border-radius: 5px; /* Bo góc */
    z-index: 1000; /* Đảm bảo popup hiển thị trên các phần tử khác */
    display: block; /* Hiển thị thông báo */
    opacity: 1; /* Đảm bảo thông báo không trong suốt */
    transition: opacity 0.5s ease; /* Hiệu ứng chuyển tiếp khi ẩn */
}


@keyframes slide-down {
    from {
        transform: translateX(-50%) translateY(-20px); /* Bắt đầu từ vị trí cao hơn */
        opacity: 0; /* Bắt đầu từ trong suốt */
    }
    to {
        transform: translateX(-50%) translateY(0); /* Kết thúc ở vị trí thực */
        opacity: 1; /* Kết thúc ở trạng thái hiện rõ */
    }
}
