body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: "Times New Roman";
    background-color: #f8f9fa;
}

.sidebar {
    width: 250px;
    background: #343a40;
    color: white;
    position: fixed;
    height: 100%;
    padding-top: 20px;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    padding-left: 15px;
    justify-content: left;
}

.sidebar .brand img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.sidebar .brand span {
    font-size: 18px;
    font-weight: bold;
}

.sidebar hr {
    width: 80%;
    border: 0;
    height: 1px;
    background: aliceblue;
    margin-left: 10%;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
    border-radius: 5px;
}

.sidebar a i {
    margin-right: 10px;
}

.sidebar a:hover, .sidebar a.active {
    background: #495057;
    color: gold;
}

/* Dropdown Menu Fix */
.dropdown-menu {
    background: #343a40;
    border: none;
    width: 100%;
    display: none;
    position: relative;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    color: goldenrod !important;
    padding-left: 30px;
}

.dropdown-menu a:hover {
    background: #495057;
}

.content {
    margin-left: 260px;
    padding: 20px;
    flex-grow: 1;
}

.navbar {
    padding-right: 2px;
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
}

.user-menu {
    position: relative;
}

.user-menu .dropdown-menu {
    right: 0;
    left: auto;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 7px;
    background: #212529;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.card {
    border-radius: 12px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.card-header {
    background: linear-gradient(135deg, #3e444a, #5a6268);
    color: white;
    text-align: center;
    border-radius: 12px 12px 0 0;
    /*padding: 15px;*/
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container {
    width: 100%;
    max-width: 400px;
    min-height: 300px;
    margin: 10px auto;
}

.search-box {
    max-width: 300px;
    margin-bottom: 15px;
}

.report-card {
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-align: center;
    padding: 20px;
    height: 150px;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
}

.report-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.report-dropdown-menu {
    min-width: 250px; /* Đặt kích thước tối thiểu */
    max-width: 300px; /* Đặt giới hạn chiều rộng */
    word-wrap: break-word; /* Ngăn nội dung bị tràn */
}

.report-dropdown-menu .dropdown-item {
    white-space: normal; /* Cho phép xuống dòng nếu quá dài */
    padding: 8px 12px; /* Điều chỉnh khoảng cách cho dễ nhìn */
}

.title {
    display: inline-block;
    max-width: 100px; /* Giới hạn chiều rộng */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#gridView .card {
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#gridView .card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#gridView .card-img-top {
    height: 180px; /* Giới hạn chiều cao ảnh */
    object-fit: cover;
}

#gridView .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}