/* 
 * Overrides for the Blank React App Template
 */

/* 
 * টার্গেট: যখন body ট্যাগে আমাদের 'full-width-app' ক্লাসটি থাকবে
 * (এই ক্লাসটি আমরা page-template-blank.php ফাইলে যোগ করেছি)
 */
body.full-width-app {
    /* থিমের দেওয়া যেকোনো max-width, padding, বা margin রিসেট করা */
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden; /* সাইড-স্ক্রল প্রতিরোধ করার জন্য */
}

/* 
 * আমাদের React অ্যাপের রুট এলিমেন্টকে টার্গেট করা, 
 * যাতে এটি সম্পূর্ণ প্রস্থ এবং উচ্চতা নেয়।
 */
body.full-width-app #root,
body.full-width-app {
    width: 100vw;  /* Viewport Width এর 100% */
    min-height: 100vh; /* Viewport Height এর 100% */
    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; /* নেভিগেশন বাটনগুলোর জন্য জায়গা */
    margin-bottom: 2rem;
}

.category-slider {
    /* Swiper কন্টেইনারের জন্য কোনো বিশেষ স্টাইল প্রয়োজন নেই, 
       এটি নিজে থেকেই কাজ করবে */
}

/* স্লাইড আইটেম */
.category-slider .swiper-slide {
    width: auto; /* <-- এই প্রপার্টিটি খুবই গুরুত্বপূর্ণ */
    flex-shrink: 0;
}

/* স্লাইডের ভেতরের কার্ড */
.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px; /* Pill shape */
    background-color: #f1f1f1; /* ডিফল্ট ব্যাকগ্রাউন্ড */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    background-color: #e0e0e0;
}

.category-card.active {
    background-color: #343a40; /* আপনার থিমের 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; /* টেক্সট যাতে ভেঙ্গে না যায় */
}

/* নেভিগেশন বাটন */
.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 {
    /* Leaflet-এর ডিফল্ট z-index এর উপরে রাখার জন্য */
    z-index: 1001 !important; 
    top: 15px;
    left: 50%; /* মাঝখানে আনার জন্য */
    transform: translateX(-50%); /* সঠিকভাবে মাঝখানে আনা */
    width: 90%;
    max-width: 400px;
}

.map-search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px; /* অথবা আপনার থিমের বর্ডার রেডিয়াস */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    overflow: hidden;
}

.map-search-input.form-control {
    border: none !important; /* ইনপুটের ডিফল্ট বর্ডার রিমুভ করা */
    box-shadow: none !important; /* ইনপুটের ডিফল্ট শ্যাডো রিমুভ করা */
    flex-grow: 1; /* ইনপুটকে পুরো জায়গা নিতে সাহায্য করা */
    height: 44px; /* বাটনের সাথে উচ্চতা মেলানো */
}

.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; /* টেক্সট কালার ঠিক রাখার জন্য */
    transition: background-color 5000s ease-in-out 0s;
}

/* Dark mode হলে background dark করে নিতে পারেন */
.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); /* আপনার থিমের প্রাইমারি কালার */
    background-color: rgba(13, 110, 253, 0.05); /* হালকা প্রাইমারি কালার */
    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. মূল কন্টেইনার */
.event-card-wrapper {
  position: relative; /* এটি খুবই গুরুত্বপূর্ণ, কারণ actions div-টি এর সাপেক্ষে পজিশন হবে */
  height: 100%;
  overflow: hidden; /* অপশনাল: কার্ডের বাইরে কিছু চলে গেলে লুকিয়ে ফেলবে */
  border-radius: 1rem; /* .rounded-4 এর সমতুল্য */
}

/* 2. অ্যাকশন বাটনগুলোর কন্টেইনার */
.event-card-actions {
  position: absolute;
  top: 10px;
  left: 10px; /* বাম দিকে পজিশন করা হলো */
  z-index: 10;
  display: flex;
  gap: 8px;
  
  /* প্রাথমিকভাবে বাটনগুলো লুকানো থাকবে */
  opacity: 0;
  transform: translateY(-10px); /* একটি ছোট অ্যানিমেশন */
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* 3. হোভার করলে বাটনগুলো দেখানো হবে */
.event-card-wrapper:hover .event-card-actions {
  opacity: 1;
  transform: translateY(0);
}

/* 4. প্রতিটি অ্যাকশন বাটন */
.event-card-actions .action-btn {
  background-color: rgba(0, 0, 0, 0.6); /* একটি সেমি-ট্রান্সপারেন্ট কালো ব্যাকগ্রাউন্ড */
  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; /* আইকনের সাইজ */
}

/* 5. বাটন হোভার স্টাইল */
.event-card-actions .action-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 6. কার্ডের ইমেজের উপর একটি হালকা ওভারলে (ঐচ্ছিক কিন্তু সুন্দর) */
.event-card-wrapper:hover .event-card .card-img-top {
  transform: scale(1.05); /* হোভারে হালকা জুম ইফেক্ট */
}

.event-card .card-img-top {
  transition: transform 0.3s ease-in-out;
}

