header {
    padding: 10px 0;
}
header nav ul {
    list-style: none;
}
header nav ul li {
    display: inline;
    margin-right: 20px;
}
header nav ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar {
    background-color: #E27F2E;
    transition: background-color 0.3s ease;
    overflow: visible;
}
.navbar-nav .nav-link {
    text-align: center;
}
.navbar-nav .nav-link:hover {
    transform: scale(1.2);
    color: white !important;
}
.navbar-nav-right{
    text-align: center !important;
    flex-direction: row !important;
}
.nav-link-right {
    padding: 5px 5px !important;
}
.navbar.scrolled {
    background-color: #E27F2E; /* Change to desired color */
}
.nav-item img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
.navbar-nav .dropdown-menu {
    right: 0;  /* Aligns dropdown to the right edge of the navbar */
    left: auto;  /* Resets any left alignment to prevent off-screen appearance */
}
.dropdown-menu {
    z-index: 1050;  /* Higher than most other elements */
}
.dropdown-item img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}
.dropdown-item i {
    padding-right: 10px;
}


.badge {
    position: relative;
    top: -10px;
    right: 5px;
    background-color: red;
    color: white;
}
#notificationsIcon::after {
    display: none;
}
#userDropdown::after {
    display: none;
}
  

.logo {
    max-width: 50px; /* Define the maximum width of the logo */
    height: auto; /* Auto height to maintain aspect ratio */
}
.logo:hover {
    transform: scale(1.2);
}

.content {
  margin-top: 40px;
  margin-right: 10px;
  margin-left: 10px;
  text-align: justify;
  margin-bottom: 60px;
}

.footer {
    background-color: #E27F2E;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}


.group-section {
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}
.group-header {
    padding: 12px 10px;
    background: linear-gradient(145deg, #f28e2b, #E27F2E);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.group-header:hover {
    background: linear-gradient(145deg, #E27F2E, #f28e2b);
}
.group-content {
    display: none;
    padding: 10px;
    overflow-x: auto; /* Allow horizontal scrolling */
    white-space: nowrap; /* Prevent line breaks for wide content */
}

.subject-header {
    padding: 12px 10px;
    background: linear-gradient(145deg, #f28e2b, #E27F2E);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 99%;
    border-radius: 12px;
    margin-top: 5px;
}
.subject-header:hover {
    background: linear-gradient(145deg, #E27F2E, #f28e2b);
}
.subject-content {
    display: none;
    padding: 10px;
    overflow-x: auto; /* Allow horizontal scrolling */
    white-space: nowrap; /* Prevent line breaks for wide content */
}

.chart-row {
    /* display: flex; */
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

canvas {
    max-width: 300px;
    max-height: 300px;
    min-width: 150px;
    min-height: 150px;
    /* object-fit: contain; */
    border: 2px solid #f5f5f5;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px;
}
th {
    background-color: darkcyan;
    color: white;
}
tbody tr:hover {
    background-color: #f0f0f0;
}

#spinner {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner-icon {
    /* border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db; */
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .navbar {
        overflow: visible !important;  /* Allows dropdown content to overflow the navbar */
    }

    .navbar-nav .dropdown-menu {
        position: absolute !important;  /* Ensures dropdown is positioned relative to its parent */
        background-color: #fff !important; /* Ensures dropdown background is consistent */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important; /* Adds shadow for better visibility */
        width: 100% !important;  /* Makes dropdown take full width to utilize limited space */
        left: auto !important;  /* Align dropdown to the left edge of the navbar */
        right: 0 !important;  /* Ensures dropdown stretches to the right edge of the navbar */
    }

    .navbar-nav .nav-item {
        text-align: center !important;  /* Centers the nav items text */
        width: 100% !important; /* Each nav item takes full width */
    }

    .dropdown-menu {
        max-height: 340px !important; /* Limit height to improve UX on small screens */
        overflow-y: auto !important; /* Adds scroll to dropdown if it exceeds max height */
    }
}

/* Ensure dropdowns don't interfere with other interactive elements */
.navbar-nav .dropdown-menu a {
    padding: 10px 15px !important;  /* Increase padding for easier interaction */
    white-space: normal !important; /* Ensures text does not overflow its container */
    font-size: 16px !important; /* Increases font size for better readability */
}