/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.dashboard-container {
    max-width: 1800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

h1 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table {
    max-width: 100%;
    overflow-x: auto;
}

table th {
    border: 1px solid #d2d1d3;
    text-align: left;
    background-color: #e5e5e5;
    font-weight: bold;
    padding: 10px;padding: 10px;
}

table td {
    padding: 10px;
    border: 1px solid #d2d1d3;
    text-align: left;
    white-space: nowrap;
}

/* Màu nền xen kẽ cho các dòng */
.data-table tbody tr:nth-child(odd) td {
    background-color: #f9f9f9; /* Màu nền cho dòng lẻ */
}

.data-table tbody tr:nth-child(even) td {
    background-color: #dfdfdf7a; /* Màu nền cho dòng chẵn */
}

.account-table, .withdraw-table, .stats-table {
    width: 100%;
}

.stats-table th, .stats-table td {
    text-align: center;
}

/* Form Styles */
form {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    table th, table td {
        padding: 8px;
        font-size: 14px;
    }
}

/* Navigation Menu Styles */
nav {
    background-color: #6B59B1; /* Màu nền tối */
    padding: 10px 20px; /* Khoảng cách trên và dưới */
    border-radius: 8px; /* Bo góc nhẹ */
    margin-bottom: 20px; /* Khoảng cách với nội dung bên dưới */
}

nav ul {
    list-style: none; /* Loại bỏ dấu chấm mặc định của danh sách */
    padding: 0;
    margin: 0;
    display: flex; /* Hiển thị theo hàng ngang */
    justify-content: flex-start; /* Căn các mục về bên trái */
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 15px; /* Khoảng cách giữa các mục */
}

nav ul li {
    display: inline-block; /* Đảm bảo các mục nằm trên cùng một hàng */
}

nav ul li a {
    text-decoration: none; /* Loại bỏ gạch chân */
    color: #fff; /* Màu chữ trắng */
    font-weight: bold; /* Chữ đậm */
    padding: 0px 0px; /* Khoảng cách nội dung và viền */
    border-radius: 4px; /* Bo góc nhẹ */
    transition: background-color 0.3s ease, color 0.3s ease; /* Hiệu ứng chuyển đổi màu sắc */
}

nav ul li a:hover {
    /*background-color: #555;  Màu nền khi hover */
    color: #fff /* Màu chữ khi hover */
}

nav ul li a.active {
    /*background-color: #ffcc00;  Màu nền cho mục đang hoạt động */
    color: #fff; /* Màu chữ cho mục đang hoạt động */
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Chuyển sang bố cục dọc trên màn hình nhỏ */
        gap: 10px; /* Khoảng cách giữa các mục */
    }

    nav ul li {
        text-align: left; /* Căn trái nội dung */
    }
}


/* login */
.login-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    margin: auto;
    margin-top: 10%;

}

input[type="text"], input[type="password"] {
    width: 93%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #6B59B1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #6B59B1;
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* Nút tròn lên đầu trang */
#backToTop {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #6B59B1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s, visibility 0.3s;
    text-align: center;
    line-height: 0px;
    font-weight: bold;
    font-size: 20px;
}

#backToTop:hover {
    background-color: #6B59B1;
}

.requested { background-color: #ffc107; color: white; padding: 8px; border-radius: 10rem; font-weight: bold; text-transform: capitalize; font-size: 12px;}
.processing { background-color: rgb(101, 106, 109); color: white; padding: 8px;border-radius: 10rem; font-weight: bold; text-transform: capitalize; font-size: 12px;}
.completed { background-color: green; color:white; padding: 8px; border-radius: 10rem; font-weight: bold; text-transform: capitalize; font-size: 12px;}


