
.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Positioning for the toast */
.toast {
    position: fixed;
    top: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050; /* Ensure it appears above other elements */
}

.toast-body {
    padding: 1rem; /* Adjust padding as needed */
}



/* Default color for the switch when unchecked */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: lightgreen; /* Change to the color you want when checked */
    border-color: lightgreen; /* Ensure the border color matches the background color */
}

/* Default color for the switch when checked */
.custom-control-input:not(:checked) ~ .custom-control-label::before {
    background-color: rgb(255, 255, 255); /* Change to the color you want when unchecked */
    border-color: rgb(255, 255, 255); /* Ensure the border color matches the background color */
}

/* Optional: Style the toggle slider */
.custom-control-label::after {
    background-color:#408dd1 !important/* Background color of the slider */
}

/* Optional: Style the slider when checked */
.custom-control-input:checked ~ .custom-control-label::after {
    background-color: #ffffff!important; /* Background color of the slider when checked */
}

.search-result-item {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}



.radio-tile:hover {
    background-color: #5ba3eb; /* Light grey background on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    color: white;
}



#imagePlaceholder {
    /* border: 2px dashed #ccc; */
    color: #aaa;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}
.croppie-container {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.croppie-zoom {
    bottom: 0;
    position: absolute;
    width: 100%;
    background-color: #fff;
    padding: 10px;
}
.croppie-zoom .zoom-slider {
    width: 100%;
}
.controls {
    margin-top: 10px;
}



ative-container {
    position: relative;
  }

  .form-group.text-center {
    position: absolute;
    bottom: 0;
    width: 100%;
  } */
  .bg-image {
    position: relative;
    overflow: hidden;
    padding-top: 20px;
}

.bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/no.jpg'); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Adjust opacity as needed */
    z-index: 1;
}

.bg-image > * {
    position: relative;
    z-index: 2;
}

  .card-body input[type="radio"] {
    /* Your custom styles here */
    /* For example: */
    width: 15px;
    height: 15px;
    margin-top: 5px;
    margin-right: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.695); /* Light mode */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .overlay {
        background-color: rgba(0, 0, 0, 0.6); /* Dark transparent background */
    }
}



  footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
}





  .radio-tile-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .radio-tile-group .input-container {
    position: relative;
    height: 8rem;
    width: 8rem;
    margin: 0.5rem;
  }
  .radio-tile-group .input-container .radio-button {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
  }
  .radio-tile-group .input-container .radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px solid #079ad9;
    border-radius: 5px;
    padding: 1rem;
    transition: transform 300ms ease;
  }
  .radio-tile-group .input-container .icon svg {
    fill: #079ad9;
    width: 3rem;
    height: 3rem;
  }
  .radio-tile-group .input-container .radio-tile-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;

  }
  .radio-tile-group .input-container .radio-button:checked + .radio-tile {
    background-color: #079ad9;
    border: 2px solid #079ad9;
    color: white;
    transform: scale(1.1, 1.1);
  }
  .radio-tile-group .input-container .radio-button:checked + .radio-tile .icon svg {
    fill: white;
    background-color: #079ad9;
  }
  .radio-tile-group .input-container .radio-button:checked + .radio-tile .radio-tile-label {
    color: white;
    background-color: #079ad9;
  }

#preloder {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #ffffff; /* Light mode background */

    /* Center children using flexbox */
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
}

/* Default light mode */
input.form-control,
textarea.form-control,
select.form-control {
    background-color: #ffffff; /* white for light mode */
    color: #000000;
    border-color: #ced4da;
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    input.form-control,
    textarea.form-control,
    select.form-control {
        background-color: #2c2c2c !important; /* dark gray background */
        color: #ffffff !important; /* light text */
        border-color: #444 !important;
    }

    .form-control::placeholder {
        color: #aaa !important;
    }
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 60px;
    animation: loader 0.8s linear infinite;
    -webkit-animation: loader 0.8s linear infinite;
    background-color: transparent; /* Make sure it doesn't block spinner */

    /* Remove position absolute and margins */
    position: static;
    margin: 0;
}

/* Bootstrap spinner style override */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
    border-color: #2b66b1 transparent #2b66b1 transparent; /* Light mode */
    background-color: transparent; /* Ensure transparency */
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    #preloder {
        background: #121212 !important;
    }

    .spinner-border {
        border-color: #ffffff transparent #ffffff transparent !important;
    }
}

/* Optional animation */
@keyframes loader {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}


/* Light mode (default) */
.smartdorm-text {
    color: #1a1a1a; /* Dark gray/black for visibility on light background */
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    .smartdorm-text {
        color: #ffffff; /* White for dark background */
    }
}


.smartdorm-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: none; /* default no bg */
}

/* Light mode, desktop only */
@media (prefers-color-scheme: light) and (min-width: 768px) {
    .smartdorm-background {
        background-image: url('/img/background_bg.png');
    }
}

/* Dark mode, desktop only */
@media (prefers-color-scheme: dark) and (min-width: 768px) {
    .smartdorm-background {
        background-image: url('/img/background_dark_bg.png');
    }
}
/* Apply to specific container or globally using `body` or `*` */
::-webkit-scrollbar {
  width: 8px;               /* vertical scrollbar width */
  height: 8px;              /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
  background: transparent;  /* track background */
}

::-webkit-scrollbar-thumb {
  background: #888;         /* default thumb color */
  border-radius: 4px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;         /* on hover */
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;              /* thin scrollbar */
  scrollbar-color: #888 transparent;  /* thumb and track */
}

/* Dark mode support */
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #aaa;
}
body.dark-mode * {
  scrollbar-color: #aaa transparent;
}



/* ===== Pagination styling for bootstrap 4 with dark mode support ===== */

/* Default (light) mode pagination */
.pagination {
  background-color: transparent;
}

.pagination .page-link {
  color: #004d9a;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
  color: #fff;
  background-color: #004d9a;
  border-color: #004d9a;
}

.pagination .page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #004d9a;
  border-color: #004d9a;
}

/* Dark mode pagination overrides */
body.dark-mode .pagination {
  background-color: transparent;
}

body.dark-mode .pagination .page-link {
  color: #cbd5e0; /* light gray */
  background-color: #222;
  border: 1px solid #444;
}

body.dark-mode .pagination .page-link:hover {
  color: #fff;
  background-color: #6cb2eb; /* bright blue */
  border-color: #6cb2eb;
}

body.dark-mode .pagination .page-item.active .page-link {
  color: #fff;
  background-color: #6cb2eb;
  border-color: #6cb2eb;
  z-index: 3;
}
