/* 
 * Overrides for the Blank React App Template
 */

/* 
 * Target pages whose body tag has the 'full-width-app' class.
 * (This class is added in page-template-blank.php.)
 */
body.full-width-app {
    /* Reset any max-width, padding, or margin supplied by the theme. */
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden; /* Prevent horizontal scrolling. */
}

/* 
 * Target the root element of the React app,
 * allowing it to occupy the full width and height.
 */
body.full-width-app #root,
body.full-width-app {
    width: 100vw;  /* 100% of the viewport width. */
    min-height: 100vh; /* 100% of the viewport height. */
    padding: 0;
    margin: 0;
}

.otp-input {
    width:80px !important;
    height:80px !important;
}

.form-control {
    border: 1px solid var(--color-border) !important;
    border-radius: 25px !important;
    padding: 10px 12px !important;
    background-color: var(--card-bg) !important;
    color: var(--bs-body-color);
}

.noUi-origin {
    width:95% !important;
}

.sidebar .sidebar-menu-container .sidebar-menu {
    padding: 0 !important;
    margin: 0 !important;

}

.accordion-body ul {
    padding:0 !important;
    margin: 0 !important;
}

.pagination-wrapper .pagination-input {
    border-radius: 20px !important;
    padding: 0.25rem 0.75rem !important;
}


/* in admin-style.css */
.candidate-profile .form-block {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}
.candidate-profile .form-block:last-child {
    border-bottom: none;
}
.candidate-profile .form-block-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.candidate-profile .repeater-item-box {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    position: relative;
}
.candidate-profile .repeater-item-box + .repeater-item-box {
    margin-top: 15px;
}
.candidate-profile .btn-icon-danger {
    background: #fde8e8;
    color: #f1556c;
    border: 1px solid #f1556c;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.candidate-tab button {
    border-left: 1px solid #d9d4d4 !important;
    border-right: 1px solid #d9d4d4 !important;
}

/* ============================================= */
/* Category Slider Styles (Final & Working Version) */
/* ============================================= */

.category-slider-wrapper {
    position: relative;
    padding: 0 40px; /* Leave room for the navigation buttons. */
    margin-bottom: 2rem;
}

.category-slider {
    /* The Swiper container does not require any special styles;
       it works automatically. */
}

/* Slide item. */
.category-slider .swiper-slide {
    width: auto; /* This property is essential. */
    flex-shrink: 0;
}

/* Card inside the slide. */
.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px; /* Pill shape */
    background-color: #f1f1f1; /* Default background. */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    background-color: #e0e0e0;
}

.category-card.active {
    background-color: #343a40; /* The theme's primary-dark color. */
    color: #ffffff;
    border-color: #343a40;
}

.category-card img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.category-card span {
    font-weight: 500;
    white-space: nowrap; /* Prevent text from wrapping. */
}

/* Navigation button. */
.category-button-prev,
.category-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    color: #333;
    transition: opacity 0.3s ease;
}

.category-button-prev {
    left: 0;
}

.category-button-next {
    right: 0;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.swiper-wrapper {
    width: 400px !important;
}


.top-filter-item.style-2 input, .top-filter-item.style-2 textarea {
    background-color: var(--site-bg) !important;
}


.top-filter-item input, .top-filter-item textarea {
    background-color: var(--card-bg-2) !important;
}

.input-wrapper .form-control {
   
    background: transparent !important;
}
/* ============================================= */
/*  Leaflet Map Search Control Styles
/* ============================================= */
.map-search-wrapper {
    /* Keep this above Leaflet's default z-index. */
    z-index: 1001 !important; 
    top: 15px;
    left: 50%; /* Center horizontally. */
    transform: translateX(-50%); /* Center precisely. */
    width: 90%;
    max-width: 400px;
}

.map-search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px; /* Or use the theme's border radius. */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    overflow: hidden;
}

.map-search-input.form-control {
    border: none !important; /* Remove the input's default border. */
    box-shadow: none !important; /* Remove the input's default shadow. */
    flex-grow: 1; /* Allow the input to fill the available space. */
    height: 44px; /* Match the button height. */
}

.map-search-btn {
    border-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Add this to your main CSS file, e.g., style.css or App.css */

.chat-list-tabs {
  display: flex;
  border-bottom: 1px solid #C18544;
  margin-bottom: 10px;
}

.chat-list-tabs button {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 500;
  color: #6c757d; /* Muted color */
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
}

.chat-list-tabs button.active {
  color: #C18544; /* Your primary theme color */
  border-bottom-color: #C18544; /* Your primary theme color */
}

.chat-list-tabs button:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Chrome, Safari, Edge autofill background reset */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important; /* Preserve the text color. */
    transition: background-color 5000s ease-in-out 0s;
}

/* Use a dark background in dark mode if needed. */
.dark-mode input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #1e1e1e inset !important;
    box-shadow: 0 0 0px 1000px #1e1e1e inset !important;
    -webkit-text-fill-color: #fff !important;
}

input:-moz-autofill {
    box-shadow: 0 0 0px 1000px white inset !important;
    -moz-text-fill-color: #000 !important;
}

#postTitle, #eventDescription,#title,#event_date ,#location,#description{
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}

.text-primary {
    color: #C18544 !important;
}

 .topbar-profile {
        background-color: $color-primary-light;
        border-radius: 50%;
        img {
          @include square(56px, 50%);
          min-width: 56px;
          object-fit: cover !important;
          @include lg-down-device{
            @include square(34px, 50%);
            min-width: 34px;
          }
        }
      }

.review-section .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: middle;
    content: "\ea4e";
    font-family: "remixicon" !important;
    font-style: normal;
    font-weight: normal;
    font-size: 1rem; 
    border: none !important;
  }

  /* Add this to your main CSS file */

.role-selection-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.role-card {
    border: 2px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.role-card:hover {
    border-color: #a0a0a0;
}

.role-card.selected {
    border-color: var(--primary-color, #0d6efd); /* The theme's primary color. */
    background-color: rgba(13, 110, 253, 0.05); /* Light primary color. */
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.role-card h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.role-card p {
    color: #6c757d;
    margin-bottom: 0;
}

a:visited {
    color: #C18544;
}

a, a:active, a:visited, a:link {
    text-decoration: none;
    color: #C18544;
}

/* ============================================= */
/*  Event Card Actions (Edit/Delete) Styles
/* ============================================= */

/* 1. Main container. */
.event-card-wrapper {
  position: relative; /* This anchors the actions div positioning. */
  height: 100%;
  overflow: hidden; /* Optional: hide content that extends beyond the card. */
  border-radius: 1rem; /* Equivalent to .rounded-4. */
}

/* 2. Action button container. */
.event-card-actions {
  position: absolute;
  top: 10px;
  left: 10px; /* Position on the left. */
  z-index: 10;
  display: flex;
  gap: 8px;
  
  /* Hide the buttons initially. */
  opacity: 0;
  transform: translateY(-10px); /* A subtle animation. */
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* 3. Show the buttons on hover. */
.event-card-wrapper:hover .event-card-actions {
  opacity: 1;
  transform: translateY(0);
}

/* 4. Each action button. */
.event-card-actions .action-btn {
  background-color: rgba(0, 0, 0, 0.6); /* A semi-transparent black background. */
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 16px; /* Icon size. */
}

/* 5. Button hover style. */
.event-card-actions .action-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 6. Add a subtle overlay to the card image (optional). */
.event-card-wrapper:hover .event-card .card-img-top {
  transform: scale(1.05); /* Apply a subtle zoom effect on hover. */
}

.event-card .card-img-top {
  transition: transform 0.3s ease-in-out;
}

/* Business profile application */
.business-profile-form {
    display: grid;
    gap: 28px;
}

.business-form-section-title {
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(36, 25, 7, 0.12);
    color: var(--text-primary, #241907);
    font-size: 20px;
    font-weight: 700;
}

.business-form-subtitle {
    margin: 0 0 -12px;
    color: var(--text-primary, #241907);
    font-size: 16px;
    font-weight: 700;
}

.business-profile-form fieldset {
    min-width: 0;
    margin: 0;
}

.business-profile-form legend {
    float: none;
    width: auto;
    margin-bottom: 10px;
    font-size: inherit;
}

.business-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.business-choice {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.business-choice .form-check-input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 9px 0 0;
    border-color: rgba(36, 25, 7, 0.28);
}

.business-choice .form-check-input:checked {
    border-color: #a7682b;
    background-color: #a7682b;
}

.business-choice .form-check-input:focus {
    border-color: #a7682b;
    box-shadow: 0 0 0 3px rgba(167, 104, 43, 0.14);
}

.business-profile-submit {
    margin-top: 24px;
}

@media (max-width: 767.98px) {
    .business-profile-form {
        gap: 22px;
    }

    .business-form-section-title {
        font-size: 18px;
    }

    .business-choice-grid,
    .business-choice-grid--categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }

    .business-profile-submit .i-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .business-choice-grid,
    .business-choice-grid--categories {
        grid-template-columns: 1fr;
    }
}
