@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jacquard+12&display=swap');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css');

/* Responsiveness Improvements */

.responsive-page-container {
    padding: 0rem 13rem;
}

.responsive-page-header-container {
    padding: 3rem 13.75rem !important;
}

.responsive-hide {
    display: block;
}

.responsive-show {
    display: none;
}

.responsive-margins {
	
}

.responsive-margins-login {
	margin-bottom: 5%; 
}


.notifications-panel {
    width: 25vw;
    max-height: 500px;
    overflow-y: auto;
}

.notification {
    border: 1px solid black;
    display: flex;
    flex-direction: column;
}

.notification > p {
    margin-bottom: 0;
}

/* Marginal Corrections for Bootstrap */

/* Actual Styling starts here */

:root {
    --theme-primary: #61674f;
    --theme-primary-light: rgba(225, 245, 110, 0.48);
    --theme-secondary: #B62682;
    --theme-secondary-light: #b6268188;
    /*new*/
    --text-dark: #333;
    --accent: #f8a02d; 
    --text-light: #f4f4f4;
    --gray-light: #e0e0e0;
    --gray-dark: #6f6f6d;
    --button-hover: #0056b3;
    --border-radius: 8px;
}

/* General Improvements */
* {
    font-family: 'Cabin', sans-serif;
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    margin: 1rem 0 !important;
}

header {
    color: var(--text-light);
}

body {
    color: var(--text-dark);
    background-color: #f7f7f7; /* Light background for better readability */
    line-height: 1.6;
}

footer {
    background-color: #6f6f6d44;
    margin-top: 1rem !important;
}
/*new*/
footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
footer a{
    color: var(--accent);
    transition: color 0.3s ease;
}
footer p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
footer .important-links p {
    transition: color 0.2s ease;
}
footer .important-links p:hover {
    color: var(--theme-secondary-light);
    cursor: pointer;
}
footer a:hover {
    color: #f7c869;
}

.custom-input-height {
    height: 50px; /* Adjust as needed */
}

.custom-input-margin-bottom-5 {
    margin-bottom: 5%; /* Adjust as needed */
}

.brand {
    font-family: 'Arial', sans-serif !important;
    font-size: 4rem;
}

a > .brand {
    color: var(--text-light);
}

* {
    font-family: 'Cabin', sans-serif ;
}

.background.primary {
    background-color: var(--theme-primary);
}

.background.secondary {
    background-color: var(--theme-secondary);
}

a {
    padding: 0;
    background-color: transparent;
    color: var(--text-dark);
}
/*new*/
/* Breadcrumb Styles */
.breadcrumbs-container {
    background-color: var(--theme-primary);
    padding: 1rem;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    align-items: center;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}
/* Individual breadcrumb links */
.breadcrumbs-container a {
    color: var(--theme-secondary);
    text-transform: capitalize;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    font-weight: 600;
}
/* Breadcrumb hover effect */
.breadcrumbs-container a:hover {
    color: var(--theme-primary);
}

/* Separator between breadcrumbs */
.breadcrumbs-container a::after {
    content: '';
    color: var(--theme-secondary-light);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}
/* Last breadcrumb item without link */
.breadcrumbs-container p {
    color: #000;
    margin: 0;
    text-transform: capitalize;
}
/*
.breadcrumbs-container a, .breadcrumbs-container p {
    font-size: 0.9rem;
    color: var(--text-dark);
}
*/
.breadcrumbs-container p {
    margin: 0 0.5rem;
    display: inline-block;
}
/* Remove the separator from the last item */
.breadcrumbs-container p::before {
    content: none;
}
/*new*/
/* Buttons */
button .btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--theme-secondary);
    color: var(--text-light) !important;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--theme-secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--button-hover);
    transform: scale(1.05);
}

/*Alert*/
.alert {
    background-color: var(--theme-primary-light);
    color: var(--text-dark);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Image file upload customizations */
.form-control[type="file"] {
    display: flex;
    flex-direction: column;
    justify-items: center;
    padding: 2rem 1rem;
    border: 1px solid var(--theme-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.form-control[type="file"]::before {
    content: 'Upload File'; /* Customize this text */
    display: inline-block;
    /*color: #fff;*/
    color: var(--text-light);
    /*background-color: #007bff;*/
    background-color: var(--theme-secondary);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
}

.form-control[type="file"]::file-selector-button {
    display: none; /* Hide the default button */
}

.form-control[type="file"]:hover {
    color: #fff;
    transform: scale(1.05);
    background-color: var(--theme-secondary-light); /* Darker shade for hover effect */
}

/* Input */
/*new*/
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 5px rgba(42, 111, 151, 0.3);
}

/* Carousel customizations */

#imageCarousel {
    max-width: 700px; /* Set a max-width for the carousel */
    height: 450px; /* Fixed height for consistency */
    margin: 2rem auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
}

#imageCarousel .carousel-inner {
    height: 100%; /* Ensures images fit the height */
}
#imageCarousel .carousel-item {
    transition: transform 0.8s ease-in-out; /* Smooth slide animation */
    height: 100%;
}
#imageCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes images fill container with cropping as needed https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit */
	object-position: 50% 50%;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Dark background for icons */
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background on hover */
    transform: scale(1.1); /* Slightly larger on hover */
}

/* Filter tags customizations */

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.tag {
    background-color:var(--gray-light); /* Light grey background */
    color: #333; /* Dark text color */
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    /*background-color: #007bff; /* Blue background on hover */
    /*new*/background-color: var(--theme-secondary);
    color: var(--text-light); /* White text on hover */

}
/* Container styling */
.feature-contact-section {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-direction: row;
    /*margin-bottom: 2rem;*/
    /*flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* Card styling */
.feature-card, .contact-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    /*flex: 1;*/
    margin-bottom: 1rem;
    width: 100%;
    height: fit-content;
    
}

/* Individual Feature styling */
.feature-card .feature-item {
    background-color: var(--theme-primary-light);
    border: 1px solid var(--theme-secondary-light);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card header styling */
.feature-card h2, .contact-card h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid var(--theme-primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Key styling inside individual feature item */
.feature-item .key {
    font-weight: 500;
    color: #666;
}

/* Value styling inside individual feature item */
.feature-item .value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

/* Contact Information Email link styling */
.contact-card a {
    color: var(--theme-secondary);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--theme-primary);
}

/* Date styling */
.date-info {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 2rem;
}

/* company and forms*/
.company-management-section {
    max-width: 800px;
    margin: 1rem auto;
    padding:1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Page headings */
.company-management-section h1,
.company-management-section h2{
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.company-management-section p,
.company-management-section h3 {
    font-size: 1rem;
    color: #666;
    text-align: center;
}

.btn {
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
}

.btn-secondary{
    background-color: var(--theme-secondary);
}

.btn-primary:hover,
.btn-danger:hover,
.btn-secondary:hover {
    color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Card container styling */
.company-card {
    margin-top: 1.5rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* Section titles within cards */
.company-card .section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

/* Form field styling within the card */
.company-card input[type="text"],
.company-card select,
.company-card textarea {
    background-color: #f9f9fb;
    border: 1px solid #d0d7de;
    padding: 10px;
    border-radius: 5px;
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    width: 100%; /* Ensures full width */
}

/* Focus effect for form fields */
.company-card input[type="text"]:focus,
.company-card select:focus,
.company-card textarea:focus {
    border-color:var(--theme-secondary-light);
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.15);
}

/* Button styling within cards */
.company-card .btn-primary,
.company-card .btn-danger,
.company-card .btn-secondary{
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.company-card .btn-primary:hover,
.company-card .btn-danger:hover,
.company-card .btn-secondary:hover {
    color: var(--theme-secondary);
    background-color: #ffffff;
    border-color: var(--theme-secondary);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Link styling */
.company-card a {
    color: #ecf1f7;
    text-decoration: underline;
    transition: color 0.3s ease;
}   

.company-card a:hover {
    color: #e0e5ea;
}


/* Style classes */

.bg-gray {
    background-color: #6f6f6d44;
}

a {
    color: #000;
    text-decoration: none;
}
/* new 
Links */
a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--theme-secondary);
}

/*NEW*/

/* Utility Classes */
.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.gap-3 {
    gap: 1rem;
}

.padded {
    padding: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Animations */
a, button, .btn {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Custom styling for the dropdown button */
#dropdownMenuButton1 {
    background-color: var(--theme-secondary);
    border: 2px solid;
    color: #e9eef2;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#dropdownMenuButton1:hover {
    color:var(--theme-secondary);
    background-color: #ffffff;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

#dropdownMenuButton1:focus {
    outline: none;
    box-shadow: 0px 0px 0px 4px rgba(108, 117, 125, 0.3);
}

#dropdownMenuButton1::after {
    margin-left: 0.5rem;   
}
#dropdownMenuButton1:hover::after {
    transform: rotate(180deg); /* Rotate dropdown arrow on hover */
}

/* Optional: Style the dropdown menu */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    
}

/* Styles for home.html */
.resized-image {
    max-height: 200px; /* Adjust as needed to match the layout */
    object-fit:cover; /* Ensures image is cropped to fit the specified dimensions */
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 700;
}

a.btn-link {
    font-weight: 500;
    color: #007bff;
}

.embed-responsive {
    height: 100%; /* Full height for the video section */
}

.hero-section {
    background-image: url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 400px;
    position: relative;
}

.hero-text {
    background-color: rgba(97, 103, 79, 0.73);
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
}

.font-weight-bold {
    font-weight: bold;
}

.btn-primary.active {
    background-color: #ff0066;
    color: white;
    border: none;
}

.btn-light {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

.btn-magenta {
    background-color:var(--theme-secondary);
    color: white;
    border: none;
}

.form-control {
    border-radius: 4px;
    padding: 0.5rem;
}

/* Messages Styling */
.message-error {
    background-color: rgba(220, 20, 60, 0.5) !important;
    border: 1px solid crimson !important;
}

.message-success {
    background-color: var(--theme-primary) !important;
    color: var(--text-light) !important;
}


/* Media Queries */
@media screen and (max-width: 768px) {
    .brand {
        font-size: 2.5rem;
    }

    .hero-section {
        display: grid;
        height: auto;
        background: none;
    }

    .hero-image {
        background-image: url('/static/images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        height: 200px;
        width: 100%;
    }

    .hero-text {
        margin-top: 20px;
        background-color: rgba(97, 103, 79, 0.85);
    }

    .resized-image {
        width: 100% !important;
        height: 200px;
    }

    .padded {
        padding: 1rem;
    }

    footer {
        padding: 1rem 2rem;
    }
    .feature-contact-section {
        flex-direction: column;
    }

    .company-management-section {
        width: 100% !important;
    }

    .responsive-page-container {
        padding: 0;
    }

    .responsive-page-header-container {
        padding: 3rem 1rem !important;
    }

    .responsive-hide {
        display: none !important;
    }

    .responsive-show {
        display: block;
    }

    #imageCarousel {
        height: 200px;
    }

    .notifications-panel {
        width: 100vw;
        max-height: 400px;
    }
}

/* Standardized image container and styling */
.publication-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* This provides a default 3:2 container */
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5; /* Light background for empty space */
}

.publication-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows the entire image without cropping */
    object-position: center; /* Centers the image */
}

/* For carousel items */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background-color: #f5f5f5;
}

/* Ensuring images in search results maintain aspect ratio */
.search-result-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background-color: #f5f5f5;
}

.featured-marker {
    z-index: 1000 !important; /* Make featured markers appear on top */
}
.featured-badge {
    vertical-align: middle;
}

/* Custom form error styling */
.errorlist {
    color: #dc3545 !important;
    font-weight: bold !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-top: 0.25rem !important;
}

.errorlist li {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* Apply to Django admin forms */
form .wide ul.errorlist li {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* Apply to Bootstrap form validation */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/*       */
.chage-pass-green-header {
	background-color: #61674f !important; 
	color: #61674f  !important;	
}

/* Chat list styling */
.chat-list {
    border-radius: 8px;
    overflow: hidden;
}

.chat-item {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
    border-left: 4px solid transparent;
}

.chat-item:hover {
    background-color: #e9ecef;
}

.chat-unread {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--theme-secondary);
}

.chat-avatar, .chat-avatar-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Valuation Tool styling */
.valuation-price-main {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.valuation-price-main h3 {
    color: var(--theme-primary);
    font-weight: bold;
}

.valuation-range {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.valuation-range-min, .valuation-range-max {
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.valuation-range-separator {
    color: var(--theme-secondary);
    font-size: 1.5rem;
}

/* Highlight the main suggested price */
.valuation-price-main h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

/* Alert styling for subscription prompts */
.contact-card .alert {
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.contact-card .alert-link {
    font-weight: bold;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Header container styling */
.navbar-container {
  background-color: var(--theme-primary);
  padding: 0.75rem 1rem;
  width: 100%;
}

/* Brand styling */
.brand-link {
  text-decoration: none;
}

.brand {
  color: white;
  margin: 0 !important;
  font-size: 2.5rem;
  transition: transform 0.2s;
}

.brand:hover {
  transform: scale(1.05);
}

/* Navigation buttons */
.nav-container {
  flex-wrap: wrap;
}

.nav-btn {
  position: relative;
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-btn:hover, .nav-btn:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/*
.btn-message {
  background-color: var(--theme-secondary);
}

.btn-message:hover {
  background-color: var(--theme-secondary-light);
}
*/

.btn-favorite {
  color: white;
}

.btn-favorite i {
  color: #ff6b6b;
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User avatar */
.user-avatar, .user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-placeholder {
  background-color: var(--theme-secondary);
  color: white;
  font-weight: bold;
}

/* User profile in dropdown */
.user-profile-header {
  display: flex;
  padding: 1rem;
  gap: 1rem;
  align-items: center;
}

.user-profile-pic, .user-profile-pic-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.user-profile-pic-placeholder {
  background-color: var(--theme-secondary);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.user-details {
  flex: 1;
}

.user-name, .user-id, .user-email {
  margin: 0;
  padding: 0;
}

.user-name {
  font-weight: bold;
}

.user-id, .user-email {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Dropdown improvements */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background-color: rgba(var(--theme-primary-rgb), 0.1);
}

/* Notifications panel */
.notifications-panel {
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .brand {
    font-size: 1.75rem;
  }

  .nav-btn {
    padding: 0.4rem;
  }

  .navbar-container {
    padding: 0.5rem;
  }

  .user-profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Update the page header container styling */
.responsive-page-header-container {
    padding: 0.15rem 13.75rem !important;  /* Reduced from 3rem to 1.5rem */
}

/* Add media query for smaller screens */
@media screen and (max-width: 768px) {
    .responsive-page-header-container {
        padding: 0.15rem 1rem !important;  /* Even thinner on mobile */
    }
}

/* Enhanced Header Styles */

/* Main Navbar */
.modern-navbar {
  background: var(--theme-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.modern-navbar .container-fluid {
  min-height: 70px;
  align-items: center;
}

/* Brand Section */
.navbar-brand-container {
  flex-shrink: 0;
}

.navbar-brand {
  padding: 0;
  margin-right: 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.brand-icon-container {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-icon-container i {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-title {
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
}

/* Navigation Search */
.nav-search-container {
  margin: 0 2rem;
}

.nav-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Action Buttons */
.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-action-btn i {
  font-size: 1.1rem;
}

.nav-label {
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Mobile Search Button */
.mobile-search-btn {
  min-width: 44px;
  justify-content: center;
}

/* User Profile Button */
.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* User Avatar */
.user-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar,
.user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.user-info {
  text-align: left;
  max-width: 120px;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown Menus */
.dropdown-menu {
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 280px;
  margin-top: 8px;
  overflow: hidden;
}

/* Notifications Dropdown */
.notifications-dropdown {
  min-width: 350px;
  max-height: 400px;
  overflow-y: auto;
}

.dropdown-header {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
  padding: 1rem;
  margin: 0;
  border: none;
  font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
  min-width: 320px;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
  margin: 0;
}

.user-profile-avatar,
.user-profile-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-avatar-placeholder {
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

.user-profile-info {
  flex-grow: 1;
  min-width: 0;
}

.user-profile-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: white;
}

.user-profile-email {
  font-size: 0.85rem;
  margin: 0 0 2px 0;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.user-profile-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: monospace;
}

/* Dropdown Sections */
.dropdown-section {
  padding: 0.5rem 0;
}

.dropdown-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  margin: 0;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.dropdown-section:first-child .dropdown-section-title {
  border-top: none;
}

/* Dropdown Items */
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: var(--theme-secondary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  opacity: 0.7;
}

.dropdown-item:hover i {
  opacity: 1;
  color: var(--theme-secondary);
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px;
  margin: 0;
  background: #e5e7eb;
  border: none;
}

/* Quick Access Bar (Mobile) */
.quick-access-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  position: sticky;
  top: 70px;
  z-index: 1020;
}

.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  position: relative;
}

.quick-access-item:hover {
  color: var(--theme-secondary);
  background: rgba(0, 0, 0, 0.05);
}

.quick-access-item i {
  font-size: 1.2rem;
}

.quick-access-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Mobile Toggle Button */
.navbar-toggler {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler i {
  color: white;
  font-size: 1.5rem;
}

/* Guest Navigation */
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--theme-secondary);
  font-weight: 600;
}

.btn-light:hover {
  background: white;
  color: var(--theme-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-action-btn {
    justify-content: flex-start;
    width: 100%;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .modern-navbar .container-fluid {
    min-height: 60px;
  }

  .brand-title {
    font-size: 1.4rem;
  }

  .brand-icon-container {
    padding: 6px;
  }

  .brand-icon-container i {
    font-size: 1.2rem;
  }

  .dropdown-menu {
    min-width: calc(100vw - 2rem);
    margin: 8px 1rem;
  }
}

/* Animation for notification badges */
.badge {
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus states for accessibility */
.nav-action-btn:focus,
.user-profile-btn:focus,
.dropdown-item:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Loading states */
.nav-action-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.nav-action-btn.loading::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

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

.navbar-nav .dropdown-menu {
    position: absolute !important;
}