:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #011722;
    --text-secondary: #666666;
    --accent-primary: #3498db;
    --accent-secondary: #2ecc71;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --room-color: #17a2b8;
    --apartment-color: #28a745;
    --house-color: #dc3545;
    /*new theme*/
    --link: #000000;
    --body-bg: #ffffff;
    --text-secondary-color: #7F7F7F;
    --primary-blue-color: #04506E;
    --bg-secondary-color: #F6FDFF;
}

.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-primary: #4dabf7;
    --accent-secondary: #40c057;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --room-color: #3bc9db;
    --apartment-color: #51cf66;
    --house-color: #ff6b6b;
    /*new theme*/
    --link: #ffffff;
    --body-bg: #222;
    --text-secondary-color: #ffffff;
    --primary-blue-color: #335374;
    --bg-secondary-color: #1e1e1e;
}

@font-face {
    font-family: 'Kollektif';
    src: url('/fonts/Kollektif.woff') format('truetype');
}

@font-face {
    font-family: 'Buongiorno_Rastellino';
    src: url('/fonts/Buongiorno Rastellino.otf') format('truetype');
}
  /* General Styles */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

main {
  flex: 1;
}

/* Navbar Styles */
#main-navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
}

#main-navbar.scrolled {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;

}

.navbar {
  transition: background-color 0.3s, color 0.3s;
}

.navbar-brand img {
    transition: transform 0.3s ease-in-out;
    transform: scale(1.2);
}

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

.navbar-nav .nav-link {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
  display: flex; /* Ensures that the icons and text are on the same line */
  align-items: center; /* Centers icons and text vertically */
  white-space: nowrap; /* Prevents text from wrapping */
}

.navbar-nav .nav-link:hover {
  color: #ff4081;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

/* Nav Items Alignment */
.nav-items-right {
  justify-content: end;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  min-width: 100px; /* Adjusted to make it smaller */
  padding: 0.5rem; /* Optional: Adjust padding */
  font-size: 1rem; /* Optional: Adjust font size */
}

.dropdown-menu .fas {
  width: 20px;
}

.dropdown-item:active,
.dropdown-item:hover {
  background-color: white;
  color: #16181b;
}

/* Buttons */
.btn-outline-primary, .btn-primary {
  border-radius: 20px;
  padding: 0.375rem 1rem;
  transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button and Input Focus States */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #4dabf7;
}
.form-control{
    color:black;
}
    .form-control:focus {
        color: black;
    }
    /* Dark Mode */
    body.dark-mode ::placeholder {
        color: #0A0F12;
    }


.boundary-container {
  border-radius: 10px; /* Rounded corners for a sleek look */
  transition: box-shadow 0.3s ease; /* Smooth transition for border and shadow */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Noticeable shadow by default */
  transition: box-shadow 0.3s ease; /* Smooth transition for border and shadow */
}

/* Increase shadow in light mode */
.boundary-container:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Darker shadow for light mode */
}

/* Increase shadow in dark mode */
body.dark-mode .boundary-container:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Lighter shadow for dark mode */
}
body.dark-mode .floating-label {
  color: #ede4e4;
}


body.dark-mode .form-control:focus {
  background-color: #ffffff;
  border-color: #86b7fe;
}
/* Ensure icons in the desktop navbar have the same color as the mobile navbar icons in dark mode */
body.dark-mode .navbar-nav .nav-icon i {
  color: #ffffff; /* Set the icon color to white for better contrast */
}

body.dark-mode .navbar-nav .nav-icon i:hover {
  color: #ff4081; /* Change to desired hover color */
}

/* Ensure text beside icons in the desktop navbar has the same color as the mobile navbar text in dark mode */
body.dark-mode .navbar-nav .nav-link {
  color: #ffffff; /* Set the text color to white for better contrast */
}
/* Ensure text inside the span in the desktop navbar has the same color as the icons in dark mode */
body.dark-mode .navbar-nav .nav-link span {
  color: #ffffff; /* Set the text color to white for better contrast */
}

.footer a {
    color: var(--text-primary); /* Set the text color to white for better contrast */
    word-break: break-word;
}

.sidebar a {
    color: var(--text-primary);
}
/* Dark Mode Icons */
#lightModeIcon, #darkModeIcon {
  transition: opacity 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}


.form-check-label {
  cursor: pointer;
}


/* Icon Styles */
.icon-style {
    height: 57px;
    width: 99.2px;
}
/* Add these styles to your site.css file */

.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor:pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transition: .4s;
        border: 1px solid #0A0F12;
        border-radius: 34px;
    }

        .toggle-switch .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: #0A0F12;
            transition: .4s;
            border-radius: 50%;
        }

    .toggle-switch input:checked + .slider {
        background-color: #ffffff;
    }

    .toggle-switch input:focus + .slider {
        box-shadow: 0 0 1px #2196F3;
    }

    .toggle-switch input:checked + .slider:before {
        transform: translateX(26px);
        background-color: #0A0F12;
    }



.btn.btn-blue {
    background-color: var(--primary-blue-color);
    color: #FFFFFF;
  
    transition: background-color 0.3s ease;
}
.btn-small {
    border-radius: 10px;
    padding: 0.5rem 1rem;
}
.btn-large {
    border-radius: 25px;
    padding: 0.5rem 1rem;
}
.btn-blue:hover {
    background-color: #04506F; /* Slightly lighter */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle glow */
}
/* Specific rule for globe SVG to ensure it turns white */
.dark-mode #main-navbar .nav-link .global-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important; /* White for globe SVG */
}

/* Sun and moon SVGs */
.dark-mode #main-navbar .toggle-container  img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* White for sun/moon SVGs */
}
.dark-mode #main-navbar .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* White for sun/moon SVGs */
}
.dark-mode .sidebar img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* White for sun/moon SVGs */
}
/* Ensure dropdown menu text is white */
.dark-mode #main-navbar .dropdown-menu {
    background-color: #212529; /* Dark background from Darkly */

}

.dark-mode #main-navbar .dropdown-item:hover,
.dark-mode #main-navbar .dropdown-item:focus {
    background-color: #343a40; /* Slightly lighter background */
    color: #FFFFFF !important;
}

/* Mobile dark mode toggle icons */
.dark-mode #lightModeIcon1.fa-sun,
.dark-mode #darkModeIcon1.fa-moon {
    color: #FFFFFF !important; /* White for mobile sun/moon */
}


.rtl .dropdown-menu {
    text-align: right;
}


/* Mobile RTL adjustments */
.rtl .navbar-nav-scroll.d-flex {
    justify-content: space-between;
}
/* Admin Link */
.admin-link {
  color: #fb0661;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.admin-link:hover {
  color: #ff4081;
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .navbar-nav-scroll {
    max-height: none;
    overflow-y: visible;
  }

  .nav-icon {
    font-size: 1.5rem;

  }
  .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 100px; /* Adjusted to make it smaller */
    padding: 0.2rem; /* Optional: Adjust padding */
    font-size: 0.7rem; /* Optional: Adjust font size */
  }

  .nav-icon:hover, .nav-icon:focus {
    color: #ff4081;
  }
.navbar a {
    color: var(--text-primary);
}
  #main-navbar .container {
    padding: 0;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .navbar-nav-scroll {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    white-space: nowrap;
  }
#main-navbar .toggle-container img {
    cursor:pointer;
    
}
/* Pulse animation for notifications */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

#unread-badge {
font-size: 0.75rem; /* Smaller font size */
padding: 0.25rem 0.5rem; /* Smaller padding */
width: auto; /* Adjust width to fit content */
height: auto; /* Adjust height to fit content */
}
  #unread-badge:not(:empty) {
    animation: pulse 2s infinite;
  }
}

@media (max-width: 767px) {
  #main-navbar .container {
    padding-left: 0;
    padding-right: 0;
  }

  #main-navbar .navbar-brand {
    margin-left: 1rem;
  }

  #main-navbar .navbar-toggler {
    margin-right: 1rem;
  }
}

.custom-input {
    background-color: white;
    border: 1px solid #7F7F7F99;
    border-radius: 18px; /* Adjust border radius */
    padding: 10px;
    font-size: 1rem;
}

    .custom-input:focus {
        border-color: #007bff; /* Optional focus style */
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

.btn-google {
    background-color: #fff;
    color: #000000;
    border: 1px solid #7F7F7F;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    padding: 0.5rem 1rem; /* Consistent padding */
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 25px;
}

    .btn-google:hover {
        background-color: #dcdcdc;
        color: black;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    }

.google-icon {
    margin-right: 12px;
    margin-left: 12px;
}

.btn-text {
    padding-top: 2px;
}
.card {
    background-color: var(--body-bg);
}

.text-secondary-color {
    color:var(--text-secondary-color);
}

.text-blue {
    color: var(--primary-blue-color);
}
hr {
    color:var(--text-primary);
}
.login-btn {
    background-color: var(--primary-blue-color);
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}
.login-btn:hover {
    background-color: #04506F; /* Slightly lighter */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle glow */
}
.signup-btn {
    background-color: var(--primary-blue-color);
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: #04506F; /* Slightly lighter */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle glow */
}