/* Display Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* FONTS */
@font-face {
    font-family: 'montserratRegular';
    src: url(Fonts/Montserrat-Regular.ttf);
}
@font-face {
    font-family: 'montserratSemiBold';
    src: url(Fonts/Montserrat-SemiBold.ttf);
}
@font-face {
    font-family: 'montserratBold';
    src: url(Fonts/Montserrat-Bold.ttf);
}
@font-face {
    font-family: 'montserratExtraBold';
    src: url(Fonts/Montserrat-ExtraBold.ttf);
}
@font-face {
    font-family: 'interRegular';
    src: url(Fonts/Inter_Regular.ttf);
}
@font-face {
    font-family: 'interSemiBold';
    src: url(Fonts/Inter_SemiBold.ttf);
}
@font-face {
    font-family: 'interBold';
    src: url(Fonts/Inter_Bold.ttf);
}

/* Default font and background color*/
body {
    font-family: 'montserratRegular', Arial, sans-serif;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    background: #eef3f2; 
}
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #eef3f2; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

/* Header Styling */
.container {
    display: flex;
    margin: 5px;
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
}

/* Banner & Logo */
.banner {
    align-items: stretch;
    margin-right: 5%;
    margin-bottom: 10px;
}
.banner img {
    max-width: 200px;
    height: auto;
    padding-right: 5%;
    margin-right: 18vw;
    justify-content: space-between;
}
.logo {
    display: none;
}
.menu {
    display: none;
    transition: transform 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}
nav a {
    font-family: 'MontserratSemiBold';
    font-size: 15px;
    margin: 10px;
    color: #073884;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
nav a:hover {
    color: #000; /* Add hover effect */
    border-bottom: 2px solid black;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}
.dropdown-content a { /* Links inside dropdown */
    color: #333;
    padding: 10px;
    display: block;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.dropdown-content a:hover {
    background-color: #073884;
    color: white;
}
.dropdown:hover .dropdown-content { /* Show dropdown on hover */
    display:grid;
}

/* Styles for the message dropdown */
.dropdown-header {
    border-radius: 8px 8px 0 0;
	display: block;
	padding: .5rem 1.5rem;
	margin-bottom: 0;
	font-size: .875rem;
	color: #858796;
	white-space: nowrap
}

.topbar .dropdown-list .dropdown-header {
	background-color: #073884;
	border: 1px solid #073884;
	padding-top: .75rem;
	padding-bottom: .75rem;
	color: #fff
}

.dropdown .dropdown-menu .dropdown-header {
	font-weight: 800;
	font-size: .65rem;
	color: #b7b9cc
}

.topbar .dropdown-list .dropdown-header {
	background-color: #073884;
	border: 1px solid #073884;
	padding-top: .75rem;
	padding-bottom: .75rem;
	color: #fff
}

.text-gray-500 {
	color: #b7b9cc !important;
    margin-left: 1vw;
}

.topbar .dropdown-list .dropdown-header {
	background-color: #073884;
	border: 1px solid #073884;
	padding-top: .75rem;
	padding-bottom: .75rem;
	color: #fff
}

.text-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    margin-left: 1vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.topbar .dropdown-list .dropdown-item .text-truncate {
	max-width: 10rem
}

.font-weight-bold {
	font-weight: 600 !important
}

.rounded-circle {
	border-radius: 50% !important;
}

.messages {
    position: relative;
    cursor: pointer;
}

.messages img{
    max-width: 40px;
    height: auto;
}

/* Dropdown for messages */
.dropdown-list {
    display: none;
    position:absolute;
    right: 0;
    top: 30px; 
    background: #fff;
    width: 320px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
/* Show dropdown */
.messages.active .dropdown-list {
    display: block;
    background-color: none;
}

/* Style the message items */
.dropdown-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #e6e6e6bb;
    border-bottom: 2px solid #e6e6e6bb;
    border-radius: 8px;
}

/* Status indicator */
.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Different status colors */
.bg-success {
    background-color: #28a745;
}

.bg-warning {
    background-color: #ffc107;
}

/* Counter badge */
.badge-counter {
    position: absolute;
    top: -9px;
    right: -2px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 50%;
}


/* Profile Icon */
.profile-icon {
    margin-left: 30%;
    margin-right: 20%;
    margin-top: 5%;
    max-width: 40px;
    height: auto;
    border-radius: 50%;
}


.line{
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 90%;
    height: 2px;
    background-color: #073884;
}

/*Loading overlay style*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

/* --------------- Responsive Design - TABLET ----------------*/
@media (max-width: 930px) {
    *{
        padding: 0px;
        margin: 0px;
    }

    .container {
        display: block;
        align-items: center;
        background-color: #073884;
        width: 100%;
        padding: 0px;
        margin: 0px;    
    }
    
    .banner {
        display: none;
    }
    .logo {
        margin: 0px;
        display: flex;
        align-items: center; /* Vertically align items */
        justify-content: space-between; /* Push logo to the left and menu to the right */
        padding: 0 0px;
    }
    .logo img {
        width: 7vw; /* Set your desired width */
        height: auto; /* Maintain the aspect ratio */
        margin: 8px;
        max-width: 100%; /* Ensure it scales responsively */
    }

    .menu{
        display: inline;
        justify-content: flex-end;
    }
    .menu img{
        width: 7vw;
    }
    
    .nav-menu {
        display: none; /* Hide navigation menu by default */
        flex-direction: column;
        width: 100%;
        background-color: none;
        margin: 0px;
        padding: 0px;
    }    
    .nav-menu.show {
        display: flex; /* Show menu when toggled */
    }    
    nav a {
        color: white; /* Adjust color for visibility */
        font-size: 2vw;
        text-align: center;
        margin: 1vw;
        justify-content: left;
    }
    
    .messages {
        margin: 5px 0;
        max-width: 50px;
        margin-bottom: 2vw;
        background-color: white;   
    }

    .profile-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    .line {
        display: none;
    }

    .dropdown-content {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        min-width: 150px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        border-radius: 4px;
    }
    .dropdown-content.show {
        display: flex; /* Display when toggled */
    }
}

/* --------------- Responsive Design - PHONE ----------------*/
@media (max-width: 500px) {
    *{
        padding: 0px;
        margin: 0px;
    }

    .container {
        display: block;
        align-items: center;
        background-color: #073884;
        width: 100%;
        padding: 0px;
        margin: 0px;    
    }
    
    .banner {
        display: none;
    }
    .logo {
        margin: 0px;
        display: flex;
        align-items: center; 
        justify-content: space-between; 
    }
    .logo img {
        width: 12vw; 
        height: auto; 
        margin: 3px;
        max-width: 100%; 
    }

    .menu{
        display: inline;
        justify-content: flex-end;
    }
    .menu img{
        width: 12vw;
    }
    
    .nav-menu {
        display: none; /* Hide navigation menu by default */
        flex-direction: column; 
        width: 100%;
        background-color: none;
    }    
    .nav-menu.show {
        display: flex; /* Show menu when toggled */
    }    
    nav a {
        font-size: 4.5vw;
        color: white; 
        text-align: center;
        justify-content: left;
    }
    
    .profile-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    .line {
        display: none;
    }

    .dropdown-content {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        min-width: 100px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        border-radius: 4px;
    }
    .dropdown-content.show {
        display: block; /* Display when toggled */
    }

    .topbar .dropdown {
        position: relative
    }

    .topbar .dropdown .dropdown-menu {
        width: auto;
        right: 0
    }

    .topbar .dropdown-list {
        width: 20rem !important
    }

    .topbar .dropdown-list .dropdown-item .text-truncate {
        max-width: 13.375rem
    }
    
}

/* --------------- Responsive Design - BIG SCREENS ----------------*/
@media (min-width: 1440px) {
    /* Header Styling */
    .container {
        display: flex;
        margin: 10px;
        margin-bottom: 0;
        align-items: center;
        justify-content: center;
    }

    /* Banner & Logo */
    .banner {
        align-items: stretch;
        margin-right: 8%;
        
    }
    .banner img {
        max-width: 400px;
        height: auto;
        padding-right: 10%;
        justify-content: space-between;
    }
    .logo {
        display: none;
    }
    .menu {
        display: none;
    }

    /* Navigation Menu */
    .nav-menu {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        margin-left: 20px;
    }
    nav a {
        font-family: 'MontserratSemiBold';
        font-size: 20px;
        margin: 10px;
        color: #4B5768;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    nav a:hover {
        color: #000; /* Add hover effect */
        border-bottom: 2px solid black;
    }

    /* Dropdown */
    .dropdown {
        position: relative;
        display: inline-block;
    }
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        min-width: 150px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        border-radius: 4px;
    }
    .dropdown-content a { /* Links inside dropdown */
        color: #333;
        padding: 10px;
        display: block;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    .dropdown-content a:hover {
        background-color: #073884;
        color: white;
    }
    .dropdown:hover .dropdown-content { /* Show dropdown on hover */
        display:grid;
    }

    /* Profile Icon */
    .profile-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }


    .line{
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        width: 90%;
        height: 2px;
        background-color: #073884;
    }
}

/* Add these styles for the initials icon */
.initials-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #073884;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MontserratSemiBold', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

/* Make sure the dropdown still works with the new icon */
#profileDropdown {
    position: relative;
}

#profileDropdown .dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
}

.menu-btn.active {
    /* Your menu button active styles */
    z-index: 1001; /* Ensure it's above the menu */
}

