/* BRT Custom Styles */

.brt-address-warning {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 40px 0;
  border: 1px solid #eee;
}

.brt-address-warning .icon-box {
  width: 100px;
  height: 100px;
  background: var(--main-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: #fff;
  font-size: 40px;
  box-shadow: 0 8px 20px rgba(229, 38, 40, 0.3);
}

.brt-address-warning h2 {
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  font-size: 28px;
}

.brt-address-warning p {
  color: #666;
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.brt-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border: 2px solid #e52628;
  color: #e52628;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.brt-btn-outline:hover {
  background: #e52628;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 38, 40, 0.2);
}

.brt-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--main-gradient);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(229, 38, 40, 0.3);
}

.brt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(229, 38, 40, 0.4);
  color: #fff;
}

/* Sidebar Improvements */
.sidebar-widget {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.sidebar-widget:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  transform: translateY(-5px);
}

.sidebar-widget-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f8f8f8;
  position: relative;
  color: #222;
}

.sidebar-widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--main-gradient);
}

/* Search Box */
.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border-radius: 15px;
  border: 1px solid #eee;
  background: #fdfdfd;
  transition: all 0.3s ease;
}

.sidebar-search input:focus {
  border-color: #e52628;
  background: #fff;
  box-shadow: 0 5px 15px rgba(229, 38, 40, 0.08);
  outline: none;
}

.sidebar-search button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #e52628;
  font-size: 18px;
}

/* Category List */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 12px;
  color: #555;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 5px;
}

.sidebar-cat-link:hover {
  background: #fff5f5;
  color: #e52628;
  padding-left: 20px;
}

.sidebar-cat-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.sidebar-cat-link:hover i {
  transform: translateX(3px);
}

/* Support Widget */
.support-widget {
  background: var(--main-gradient);
  color: #fff;
}

.support-widget .sidebar-widget-title {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.support-widget .sidebar-widget-title::after {
  background: #fff;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px; /* Aralığı biraz arttırdık */
}

.support-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0; /* Simgenin ezilmesini engeller (oval olmasını önler) */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.support-info h6 {
  color: #fff;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.2;
}

.support-info p {
  color: #fff;
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #e52628;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.support-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #e52628;
}

/* Modern Tags */
.modern-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modern-tag {
  padding: 8px 16px;
  background: #f8f8f8;
  border-radius: 30px;
  font-size: 13px;
  color: #666;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #eee;
}

.modern-tag:hover {
  background: var(--main-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
/* ==========================================================================
   BRT PREMIUM MODAL SYSTEM
   ========================================================================== */

/* Modal Backdrop Refinement */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.7); /* Deep Slate Overlay */
  backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
}

/* Modal Content Container */
.modal-content {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
  animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header Design - Ultra Modern */
.modal-header {
  background: var(
    --main-gradient,
    linear-gradient(135deg, #e52628 0%, #c41e20 100%)
  );
  padding: 30px 35px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  text-align: center;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.modal-header .modal-title {
  font-family: var(--heading-font, "Jost", sans-serif);
  font-weight: 700;
  font-size: 22px;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific Close Button Style */
.modal-header .btn-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15)
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
    center/12px auto no-repeat;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.modal-header .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

/* Body Styling */
.modal-body {
  padding: 35px;
  background: #ffffff;
}

/* Premium Form Elements inside Modal */
.modal-body .form-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.modal-body .form-control {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: #334155;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-body .form-control:focus {
  background: #ffffff;
  border-color: #e52628;
  box-shadow: 0 0 0 4px rgba(229, 38, 40, 0.08);
  outline: none;
}

.modal-body .form-control::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

/* Footer Styling */
.modal-footer {
  padding: 25px 35px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

/* Success/Save Button */
.btn-save {
  background: var(
    --main-gradient,
    linear-gradient(135deg, #e52628 0%, #c41e20 100%)
  );
  color: #ffffff !important;
  border: none;
  padding: 14px 35px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(229, 38, 40, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(229, 38, 40, 0.4);
  filter: brightness(1.05);
}

.btn-save:active {
  transform: translateY(1px);
}

/* Cancel/Close Button */
.btn-cancel {
  background: #ffffff;
  color: #64748b !important;
  border: 1px solid #e2e8f0;
  padding: 13px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #f1f5f9;
  color: #1e293b !important;
  border-color: #cbd5e1;
}

/* Loader Styling */
.modal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  color: #64748b;
}

.modal-loader .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #e52628;
  border-width: 0.2em;
  margin-bottom: 20px;
}

.modal-loader p {
  font-size: 15px;
  font-weight: 500;
  animation: brt_pulse 1.5s infinite;
}

@keyframes brt_pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 15px;
  }

  .modal-content {
    border-radius: 20px;
  }

  .modal-header {
    padding: 20px 25px;
  }

  .modal-body {
    padding: 25px;
  }

  .modal-footer {
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    justify-content: center !important;
  }

  .btn-save,
  .btn-cancel {
    width: 100% !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    font-size: 14px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   BRT PRODUCT PRICE STYLES
   ========================================================================== */
.price-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.price-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: hsl(var(--main));
}

.current-price-text {
  font-size: 2.6rem;
  font-weight: 900;
  color: hsl(var(--main));
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.05);
  font-family: var(--heading-font);
}

.old-price-text {
  font-size: 1.25rem;
  color: #adb5bd;
  text-decoration: line-through;
  font-weight: 500;
}

.discount-badge {
  background: #ffe3e3;
  color: #e03131;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 5px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal Scrollbar Refinement */
.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 40px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-dialog-scrollable .modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 38, 40, 0.4) transparent;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(229, 38, 40, 0.4);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(229, 38, 40, 0.8);
}

/* Ensure Google Maps doesn't break modal scrolling */
.modal-body .map-section {
  position: relative;
  z-index: 1;
}

.modal-body .google-map {
  pointer-events: auto;
}

/* Stop modal scrolling when Select2 is open */
.modal.select2-active .modal-body {
  overflow: hidden !important;
}

/* HIGH PRIORITY: Force Buttons Side-by-Side */
#addAddressModal .modal-footer,
#editAddressModal .modal-footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  justify-content: center !important;
}

#addAddressModal .modal-footer .btn-save,
#addAddressModal .modal-footer .btn-cancel,
#editAddressModal .modal-footer .btn-save,
#editAddressModal .modal-footer .btn-cancel {
  width: 100% !important;
  flex: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  justify-content: center !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Select2 Status Indicators for Address Section */
.select2-result-repository {
  padding: 8px 4px;
}

.select2-result-repository__title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.select2-result-repository__status {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.select2-result-repository__status.in-service {
  color: #10b981; /* Emerald 500 */
}

.select2-result-repository__status.out-of-service {
  color: #94a3b8; /* Slate 400 */
}

.select2-result-repository__status i {
  font-size: 0.8rem;
}

/* Hover/Highlight for Service Areas */
.select2-results__option--highlighted:has(.in-service) {
  background-color: #10b981 !important;
}

.select2-results__option--highlighted:has(.in-service)
  .select2-result-repository__title,
.select2-results__option--highlighted:has(.in-service)
  .select2-result-repository__status {
  color: #fff !important;
}
