/* Đặt lại margin và padding mặc định cho tất cả phần tử */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cấu trúc chính của trang */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Phần toolbar */
.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
}

/* Logo */
.toolbar .logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Menu chính - Top menu */
.top-menu {
    display: flex;
    justify-content: center;
    background-color: #222;
    width: 100%;
    padding: 10px 0;
}

.top-menu ul {
    display: flex;
    list-style: none;
}

.top-menu li {
    margin: 0 15px;
}

.top-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
font-size: 10px;
}

.top-menu a:hover {
    background-color: #444;
}

/* Menu con - Sub menu */
.sub-menu {
    display: flex;
    justify-content: center;
    background-color: #444;
    width: 100%;
    padding: 10px 0;
l
}

.sub-menu ul {
    display: flex;
    list-style: none;
}

.sub-menu li {
    margin: 0 15px;
}

.sub-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
font-size: 10px;
    white-space: nowrap;  /* Ngăn không cho chữ xuống dòng */
}


.sub-menu a:hover {
    background-color: #555;
}

/* Cấu trúc cho phần thông tin người dùng */
.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
    color: white;
    margin-top: 10px;
}

.username {
    cursor: pointer;
}

.username:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Button */
button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

/* Form Input */
input[type="text"], input[type="password"], input[type="email"], textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

input[type="submit"], button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background-color: #45a049;
}
