/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Navbar */
.navbar {
    width: 100%;
    background-color: rgb(255, 255, 255);
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navbar Logo */
.navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-logo p {
    font-size: 20px;
    font-weight: bold;
    color: darkgreen;
    margin: 0;
    text-transform: uppercase;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: darkblue;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-menu a:hover {
    color: #f39c12;
}

/* Thanh tìm kiếm */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    border: solid 2px darkblue;

}

.search-bar input {
    border: none;
    outline: none;
    background: #fff;
    color: darkblue;
    padding: 5px 10px;
    font-size: 20px;
    width: 200px;
}

.search-bar input::placeholder {
    color: black;
}

.search-bar button {
    border: none;
    background-color: white;
    color: darkblue;
    font-size: 20px;
    cursor: pointer;
    margin-top: 5px;
}

/* User menu */
.user-menu {
    color: darkblue;
    text-decoration: none;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    margin-right: 30px;
}

.user-menu:hover {
    color: #f39c12;
}

/* Dropdown menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 5px;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.dropdown a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: #f39c12;
}

/* Hiển thị dropdown khi hover vào user menu hoặc dropdown */
.user-menu:hover + .dropdown,
.dropdown:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    font-size: 32px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

/* Thông tin bảng người dùng */

.user-info-card table {
    width: 100%;
    border-collapse: collapse;
}

.user-info-card th,
.user-info-card td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.user-info-card th {
    background-color: palevioletred;
    color: white;
    font-weight: 600;
    width: 45%;
}

.user-info-card td {
    background-color: #fafafa;
    color: #333;
}

.user-info-card tr:hover td {
    background-color: #f0f0f0;
}

/* Căn giữa nút chỉnh sửa */
.edit-profile-container {
    display: flex;
    justify-content: center;  /* Căn giữa theo chiều ngang */
    /* Khoảng cách từ bảng đến nút */
}

.edit-profile-button {
    display: inline-block;
    background-color: limegreen;
    color: white;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.edit-profile-button:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}


/* Footer */
.footer {
    background-color: cornflowerblue;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .search-bar input {
        width: 150px;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .navbar-menu a {
        text-align: center;
        width: 100%;
    }

    .main-content h1 {
        font-size: 20px;
    }

    .main-content p {
        font-size: 14px;
    }
}
