﻿: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: #FBFAF9;
    --text-secondary-color: #7F7F7F;
    --primary-blue-color: #007D9C;
    --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, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* no horizontal scroll */
}

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;
    background-color: #FCFBF9;
}
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;
    background-color: #FCFBF9;
}

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

}

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

.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: #04506E;
  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: #04506E;
}

/* Buttons */
.btn-outline-primary, .btn-primary {
  border-radius: 20px;
  padding: 0.375rem 1rem;
  transition: all 0.3s ease-in-out;
  
}
    .btn-outline-primary:hover {
        background-color: var(--primary-blue-color);
        color: white;
        border-color: var(--primary-blue-color);
    }
.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 #04506E;
}
.form-control{
    color:black;
}
    .form-control:focus {
        color: black;
    }
    /* Dark Mode */
    body.dark-mode ::placeholder {
        color: #0A0F12;
    }
.form-check-input {
    width: 1.5em;
    height: 1.5em;
    --bs-border-color: #D1D1D6;
}
    .form-check-input:checked {
        background-color: #007D9C;
        border-color: #007D9C;
    }
.custom-card-bg {
    background-color: #F5F2ED !important;
}

.custom-card-body-bg {
    background-color: #EAE4D9 !important;
}

.custom-list-group-item {
    background-color: #EAE4D9 !important;
    border: none;
}


.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: #007D9C;
    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: #04506E;
  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: #04506E;
  }

    #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;
  }
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.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 */
}
.footer {
    position: relative;
    overflow: hidden; /* Ensure absolutely positioned images don't spill */
    z-index: 1;
  
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    z-index: 0; /* Make sure it appears behind the content */
    opacity: 0.2; /* Make it subtle */
    pointer-events: none; /* Avoid interfering with clicks */
}

    .footer-decoration.left {
        left: 0;
        height: 100%;
    }

    .footer-decoration.right {
        height: 100%;
        right: 0;
    }
.page-decoration-left {
    position: absolute;
    bottom: 0; /* Adjust to nudge it slightly over the footer */
    left: 0;
    z-index: 0; /* Keep it behind text content */
    pointer-events: none;
    opacity: 0.8;
}
.btn.btn-primary {
    background-color: #007D9C !important; /* Add this */
    color: white;
    border: none;
}



.social-icon {
    width: 36px;
    height: 36px;
    background-color: #007C91;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

    .social-icon i {
        font-size: 16px;
    }

    .social-icon:hover {
        background-color: #335374;
    }

@media (max-width: 768px) {
    .footer-decoration {
        display: none;
    }
}
.back-to-properties {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #011722;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    text-decoration: none;

}



    .back-to-properties:dir(ltr)::before {
        content: "←";
        font-size: 1.2rem;
        color: #007D9C;
    }

    .back-to-properties:dir(rtl)::before {
        content: "→";
        font-size: 1.2rem;
        color: #007D9C;
    }
.cancel-red-btn {
    color: #F01435;
    border: 1px solid #F01435;
    background-color: transparent;
    border-radius: 12px;
}

    .cancel-red-btn:hover {
        background-color: #F01435;
        color: #fff;
    }

.view-blue-btn {
    color: #007D9C;
    border: 1px solid #007D9C;
    background-color: transparent;
    border-radius: 12px;
}

    .view-blue-btn:hover {
        background-color: #007D9C;
        color: #fff;
    }
.make-payment-btn {
    color: white;
    border: 1px solid #007D9C;
    background-color: #007D9C;
    border-radius: 12px;
}

.make-payment-btn:hover {
    background-color: #007D9F;
    color: #fff;
}
.popup .popup-btn-filled {
    height: 40px;
    padding-right: 24px;
    padding-left: 24px;
    gap: 4px;
    border-radius: 12px;
    background-color: #007D9C;
    color: white;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup .popup-btn-filled:hover {
    background-color: #006a89;
}
.popup .popup-btn-outlined {
    width: 175px;
    height: 40px;
    padding-right: 24px;
    padding-left: 24px;
    border-radius: 12px;
    border: 1px solid #007D9C;
    color: #011722;
    background-color: transparent;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* if icon/text are inside */
    opacity: 1;
}

.popup .popup-btn-outlined:hover {
    background-color: rgba(0, 125, 156, 0.1); /* subtle hover */
}
.popup .swal2-icon {
    border: none !important;
}
.popup {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    padding-bottom: 32px;
    width:599px;
}
.swal2-icon-content img{
    width: 4rem;
}
.popup .swal2-title {
    color: #011722;
    font-weight: 600;
}

    .popup .swal2-html-container {
        color: #011722;
        font-size: 16px;
    }
.popup .swal2-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

    .popup .swal2-close {
        border: 2px solid #55646B;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        font-size: 18px;
        font-weight: bold;
        color: #55646B;
        background-color: transparent;
        transition: background-color 0.2s, color 0.2s;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .popup .swal2-close:hover {
            background-color: #f0f0f0;
            color: #333;
        }



@media (max-width: 576px) {
    .popup .swal2-actions {
       
        gap: 8px; 

    }
        .popup .swal2-actions .popup .popup-btn-filled,
        .popup .swal2-actions .popup .popup-btn-outlined {
            width: 100% !important;
            max-width: 300px;
            margin: 0 auto;
        }
}

@media (max-width: 430px) {
    .popup .swal2-actions {
        margin-left: 16px;
        margin-right: 16px;
    }
}
.range-slider {
    position: relative;
    height: 2rem;
}

    .range-slider input[type=range] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        pointer-events: none; /* let clicks pass through */
        background: none;
    }

        .range-slider input[type=range]::-webkit-slider-thumb {
            pointer-events: all; /* re-enable thumbs */
            position: relative;
            z-index: 2;
        }
