/* Pastel Soft UI for form-control elements */
.form-control {
  background-color: #f9f9fb !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03) !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease-in-out !important;
  color: #333 !important;
}

/* Hover & Focus */
.form-control:focus {
  border-color: #a5d6ff !important;
  box-shadow: 0 0 0 3px rgba(165, 214, 255, 0.3) !important;
  outline: none !important;
  background-color: #ffffff !important;
}

/* برای فیلدهای غیر قابل ویرایش */
.form-control[readonly] {
  background-color: #f0f4f8 !important;
  color: #777 !important;
  cursor: not-allowed;
}

/* استایل منوی کشویی (select) */
select.form-control {
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem !important;
}

/* ???? ??? ???? ??? ??? */
.form-control:hover {
  background-color: #f0faff !important; /* ??? ??????? ?? ????? */
  border-color: #cce5ff !important;
}

/* ???? ???? ????? ??? (????? ???? ???? ???? ????) */
.form-control:focus {
  background-color: #ffffff !important;
  border-color: #a5d6ff !important;
  box-shadow: 0 0 0 3px rgba(165, 214, 255, 0.3) !important;
  outline: none !important;
}

/* ✅ حالت placeholder (وقتی چیزی انتخاب نشده) */
.btn.dropdown-toggle.btn-light.bs-placeholder {
  background-color: #f9f9fb !important;
  color: #999 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-style: italic;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.6em !important;
  height: auto !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-family: 'Vazir FD', sans-serif !important;
}

/* ✅ حالت نرمال (وقتی گزینه انتخاب شده) */
.btn.dropdown-toggle.btn-light:not(.bs-placeholder) {
  background-color: #f9f9fb !important;
  color: #333 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 16px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  font-family: 'Vazir FD', sans-serif !important;
}

/* hover برای فیلدهایی که placeholder دارن */
.btn.dropdown-toggle.btn-light.bs-placeholder:hover,
.btn.dropdown-toggle.btn-light:not(.bs-placeholder):hover {
  background-color: #f0faff !important; /* آبی خیلی روشن */
  border-color: #cce5ff !important;
}
/* ⛔ جلوگیری از اعمال استایل روی container اصلی کاستوم‌فیلد */
.bootstrap-select.form-control {
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ✅ حفظ استایل پاستلی برای خود dropdown اصلی */
.bootstrap-select .dropdown-toggle {
  background-color: #f9f9fb !important;
  color: #333 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 16px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100% !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03) !important;
  font-family: 'Vazir FD', sans-serif;
}

/* ===============================
   tag input (tag-it)
   =============================== */

/* ظاهر کلی فیلد تگ‌گذاری */
ul.tagit {
  background-color: #f9f9fb !important;
  border: 1px solid #e0e0e0 !important;  /* ضخامت استاندارد مثل بقیه */
  border-radius: 16px !important;
  padding: 6px 10px !important;
  box-shadow: none !important;  /* حذف سایه اضافی برای ظرافت */
  font-family: 'Vazir FD', sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

/* ظاهر کلی منوی بازشونده داخل selectpicker */
.bootstrap-select .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
  font-family: 'Vazir FD', sans-serif;
  padding: 4px 0;
  z-index: 1051 !important;
  min-width: 180px;
}

/* آیتم‌های داخلی لیست */
.bootstrap-select .dropdown-menu .dropdown-item {
  padding: 8px 16px !important;
  font-size: 14px !important;
  color: #333 !important;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  margin: 2px 8px;
}

/* حالت hover روی آیتم‌ها */
.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus,
.bootstrap-select .dropdown-menu .dropdown-item:active {
  background-color: #e0f2fe !important;
  color: #111 !important;
}

/* ===============================
   🌈 استایل نهایی حرفه‌ای برای منوی تگ‌ها (Tag-it Autocomplete)
   =============================== */

.ui-autocomplete {
  background: linear-gradient(to bottom, #ffffff, #fefefe) !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07) !important;
  font-family: 'Vazir FD', sans-serif;
  padding: 8px 0 !important;
  z-index: 99999 !important;
  max-height: 260px;
  overflow-y: auto;
  animation: fadeInDrop 0.25s ease-out;
  transform-origin: top center;
}

/* ✨ آیتم‌ها */
.ui-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  font-size: 15px !important;
  color: #444 !important;
  cursor: pointer;
  margin: 4px 12px;
  border-radius: 12px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

/* آیکن در ابتدای هر آیتم */
.ui-menu-item::before {
  content: '📌';
  font-size: 16px;
  margin-right: 4px;
  opacity: 0.7;
}

/* Hover و انتخاب‌شده */
.ui-menu-item:hover,
.ui-menu-item.ui-state-focus,
.ui-menu-item.ui-state-active,
.ui-menu-item-wrapper:hover {
  background-color: #dbeafe !important;
  color: #111 !important;
  transform: translateX(4px);
  font-weight: 500;
}

/* اسکرول بار ظریف */
.ui-autocomplete::-webkit-scrollbar {
  width: 6px;
}
.ui-autocomplete::-webkit-scrollbar-thumb {
  background-color: #c4d5e0;
  border-radius: 8px;
}

/* 🎞️ انیمیشن ظاهر شدن */
@keyframes fadeInDrop {
  from {
    opacity: 0;
    transform: scaleY(0.9);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* 🎨 زیباسازی کلی فرم */
.ticket-reply form {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* 📝 Textarea پاسخ */
.ticket-reply textarea.form-control {
  border-radius: 20px;
  background-color: #f9f9fb;
  border: 1px solid #d0d7de;
  padding: 14px 18px;
  font-size: 14px;
  font-family: 'Vazir FD', sans-serif;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ticket-reply textarea.form-control:focus {
  border-color: #a5d6ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(165, 214, 255, 0.3);
  outline: none;
}

/* 📎 استایل دکمه ارسال */
.ticket-reply .btn.btn-primary {
  background-color: #a5d6ff;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 14px;
  margin-top: 16px;
  transition: background-color 0.2s ease;
}

.ticket-reply .btn.btn-primary:hover {
  background-color: #90caf9;
}


.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(165, 214, 255, 0.3);
}

.alert.alert-warning {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.modern-alert-box {
  background-color: #fffbea;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: 'Vazir FD', sans-serif;
  color: #5f370e;
}

.modern-alert-box .alert-icon {
  font-size: 32px;
  color: #f57c00;
  margin-top: 4px;
}

.modern-alert-box .alert-body {
  flex: 1;
}

.modern-alert-box .alert-title {
  font-size: 16px;
  font-weight: bold;
  color: #d35400;
  margin-bottom: 6px;
}

.p-alert {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
 
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  gap: 16px;
  animation: fadeIn 0.4s ease-in-out;
  font-family: 'Vazir FD', sans-serif;
}

.p-alert-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.p-alert-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.p-alert-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* رنگ‌بندی‌ها */
.p-alert-warning {
  background-color: #fffbea;
  border-color: #f57c00;
}

.p-alert-success {
  background-color: #e8f5e9;
  border-color: #2e7d32;
}

.p-alert-error {
  background-color: #ffebee;
  border-color: #c62828;
}

.p-alert-info {
  background-color: #e3f2fd;
  border-color: #1976d2;
}

/* انیمیشن ظریف ورود */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.noti-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 16px;
  padding: 20px 20px 20px 24px;
  background-color: #fffbea;
  font-family: 'Vazir FD', sans-serif;
  color: #4e342e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* نوار رنگی پاستلی با pseudo-element */
.noti-box::before {
  content: '';
  position: absolute;
  top: 16px;          /* بالاتر */
  bottom: 16px;       /* پایین‌تر */
  left: 0;
  width: 5px;
  background-color: #fb8c00;
  border-radius: 3px;
}

/* آیکن */
.noti-icon {
  flex-shrink: 0;
  background-color: rgba(255, 152, 0, 0.1);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* تیتر و متن */
.noti-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #d84315;
}

.noti-text {
  font-size: 14px;
  color: #5d4037;
  line-height: 1.6;
}

/* پس‌زمینه خاص هشدار */
.noti-warning {
  background-color: #fff3e0;
 
}

/* افکت ورود */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.noti-success {
  background-color: #e8f5e9;
}

.noti-success::before {
  background-color: #43a047;
}

.noti-error {
  background-color: #ffebee;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 6px; /* فاصله بین آیکن و فیلد */
}

/* باکس آیکن */
.input-group-prepend .input-group-text.input-icon {
  background-color: #e8b58f; /* سبز اصلی */
  border: none;
  border-radius: 16px; /* کاملاً گرد */
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
}

/* خود آیکن */
.input-group-prepend .input-group-text.input-icon i {
  color: #ffffff;
  font-size: 22px;
}

/* فیلد ورودی */
.input-group .form-control {
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14px;
  height: 50px;
}


.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; /* فاصله بین ردیف‌ها */
  background-color: transparent;
  font-family: 'Vazir FD', sans-serif;
  font-size: 14px;
  color: #333;
}

.custom-table th {
  background-color: #e3f2fd; /* پس زمینه هدر پاستلی آبی کم رنگ */
  color: #1565c0; /* رنگ نوشته هدر */
  padding: 12px 16px;
  text-align: center;
  font-weight: bold;
  border-top: 1px solid #bbdefb;
  border-bottom: 1px solid #bbdefb;
}

.custom-table td {
  background-color: #ffffff;
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  border-radius: 8px;
}

/* افکت هاور روی ردیف‌ها */
.custom-table tbody tr:hover td {
  background-color: #f1f8e9; /* سبز خیلی روشن موقع هاور */
  transition: all 0.3s ease;
}

.kan-ban-col-header {
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(90deg, #42a5f5, #478ed1);
  color: white;
  padding: 12px 16px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* افکت هاور روی عنوان ستون (اختیاری) */
.kan-ban-col-header:hover {
  background: linear-gradient(90deg, #478ed1, #42a5f5);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.pastel-field {
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.3s ease;
}
.pastel-field:focus {
  background-color: #fff;
  border-color: #a2d2ff;
  box-shadow: 0 0 0 0.25rem rgba(162, 210, 255, 0.25);
}

.pastel-btn {
  background: #a2d2ff;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 16px;
  font-weight: bold;
  transition: 0.3s;
}
.pastel-btn:hover {
  background: #74b9ff;
}

.pastel-btn-secondary {
  background: #e3f2fd;
  color: #1565c0;
  border: none;
  padding: 10px;
  border-radius: 16px;
  font-weight: bold;
  transition: 0.3s;
}
.pastel-btn-secondary:hover {
  background: #bbdefb;
}






.glass-card {
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #333;
  font-family: 'IRANSans', sans-serif;
}

.compact-card {
  min-height: auto;
}

.glass-blue {
  background: linear-gradient(135deg, #e0f7fa, #ffffff20);
}

.glass-pink {
  background: linear-gradient(135deg, #fce4ec, #ffffff20);
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 14px;
  color: #2c3e50;
}

.label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  padding: 4px 12px;
  border-radius: 10px;
  display: inline-block;
}

.input-button {
  display: flex;
  gap: 6px;
}

.input-button input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 13px;
}

.btn-glass {
  background-color: #fff7;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: 0.2s;
}

.btn-glass:hover {
  background-color: #fff9;
}

.btn-pay {
  margin-top: 14px;
  background-color: #ffd54f;
}

.info-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed #ddd;
}

.info-line.total {
  font-weight: bold;
  font-size: 14px;
  color: #2b6cb0;
}

.badge-info {
  background-color: #a7e3ff;
  color: #0c3b5f;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-warning {
  background-color: #ffe082;
  color: #5f370e;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

a {
  color: #1259a3;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}



/* منوی اصلی - حالت hover */
.nav-sidebar .nav-item:hover > .nav-link {
  background-color: #ffffff !important;
  color: #1e2a38 !important; /* سرمه‌ای تیره */

  /* آیکن‌ها هم با همین رنگ */
}

.nav-sidebar .nav-item:hover > .nav-link .nav-icon,
.nav-sidebar .nav-item:hover > .nav-link p {
  color: #1e2a38 !important;
}


/* ????? ???? ???? ?? ??? ?????? */
.pastel-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pastel-table thead {
    background: #f9f9f9;
    font-weight: bold;
}

.pastel-table thead th {
    padding: 16px;
    text-align: center;
    background-color: #f3f4f6;
    color: #444;
    border-bottom: 1px solid #e5e7eb;
}

.pastel-table tbody tr {
    text-align: center;
    transition: all 0.3s ease;
}

.pastel-table tbody tr:hover {
    background-color: #f0faff;
}

.pastel-table td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
}

/* ???????? ????????? ??? */
.pastel-section-1 td {
    background: #f4e9fb;
    font-weight: 600;
}

.pastel-section-2 td {
    background: #e5f1ff;
    font-weight: 600;
}

.pastel-section-3 td {
    background: #e8f9f7;
    font-weight: 600;
}

.pastel-subrow td {
    background: #fafafa;
}

.three-col-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.three-col-form .form-group {
  flex: 0 0 calc((100% - 30px) / 3); /* ?? ???? */
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .three-col-form .form-group {
    flex: 0 0 calc((100% - 15px) / 2); /* ?? ???? ?? ???? */
  }
}

@media (max-width: 575.98px) {
  .three-col-form .form-group {
    flex: 0 0 100%; /* ?? ???? ?? ?????? */
  }
}
/* ==========================
   /* Email Notifications Two Columns - Fix Last Item */
.email-notifications-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* ????? ??? ??????? */
}

.email-notifications-wrapper .notification-item {
    flex: 1 1 calc(50% - 12px); /* ????? ??? ??? ???? */
    background: #f7faff;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.email-notifications-wrapper .notification-item:hover {
    background: #f1faff;
    border-color: #90caf9;
}

.email-notifications-wrapper span {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

/* ==========================
   Custom Fields Date Picker Icon
   ========================== */
.custom-field.datepicker-wrapper {
    position: relative;
}

.custom-field.datepicker-wrapper .calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e3f2fd;  /* ?????? ??? */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-field.datepicker-wrapper .calendar-icon svg {
    width: 20px;
    height: 20px;
    stroke: #42a5f5;
    transition: all 0.3s ease;
}

.custom-field.datepicker-wrapper .calendar-icon:hover {
    background: #bbdefb;
}

.custom-field.datepicker-wrapper .calendar-icon:hover svg {
    stroke: #1565c0;
}

/* ==========================
   Modern Modal Style
   ========================== */
.modern-modal { border-radius: 12px; font-family: 'Segoe UI', sans-serif; }
.modern-header { background: #f0f7ff; border-bottom: 1px solid #dce6f2; padding: 15px 20px; }
.modern-header h4 { color: #1565c0; font-weight: 600; }
.modern-body { padding: 20px; }
.modern-footer { padding: 15px 20px; }

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #a8c0ff;
    border-radius: 12px;
    background: #e8f0ff;
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.upload-dropzone i { font-size: 40px; color: #42a5f5; margin-bottom: 10px; }
.upload-dropzone p { color: #1565c0; font-weight: 500; }
.upload-dropzone:hover { background: #d0e2ff; }

/* Two-column Form Rows */
.form-row-two-columns .col-md-6 { padding-right: 10px; padding-left: 10px; margin-bottom: 15px; }

/* Email Notifications Two Columns */
.email-notifications-wrapper { display: flex; flex-wrap: wrap; gap: 10px; }
.notification-item { flex: 1 1 48%; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: #f0f8ff; }

/* Custom Fields Date Icon */
.custom-field.datepicker-wrapper { position: relative; }
.custom-field.datepicker-wrapper .calendar-icon {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: #e3f2fd; border-radius: 8px;
    cursor: pointer; transition: all 0.3s ease;
}
.custom-field.datepicker-wrapper .calendar-icon svg { width: 20px; height: 20px; stroke: #42a5f5; transition: all 0.3s ease; }
.custom-field.datepicker-wrapper .calendar-icon:hover { background: #bbdefb; }
.custom-field.datepicker-wrapper .calendar-icon:hover svg { stroke: #1565c0; }

/* Responsive */
@media(max-width: 767px){ 
    .form-row-two-columns .col-md-6, .notification-item { flex: 1 1 100%; }
}

/* ==========================
   Upload Dropzone Advanced
   ========================== */
.upload-dropzone {
    border: 2px dashed #a8c0ff;
    border-radius: 12px;
    background: #e8f0ff;
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.upload-dropzone.dragover { background: #d0e2ff; border-color: #42a5f5; }
.upload-dropzone i { font-size: 40px; color: #42a5f5; margin-bottom: 10px; }
.upload-dropzone p { color: #1565c0; font-weight: 500; }
.upload-dropzone img.preview { max-height: 100px; margin-top: 10px; border-radius: 8px; }

/* Rest remains same as previous modern modal CSS */

/* === Email notifications: two-column stable layout (strong rules) === */
.email-notifications-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* ?? ???? ????? */
    gap: 12px !important;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ?? ???? ???? ?????? 100% ???? ???? ???? */
.email-notifications-wrapper .notification-item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0f8ff;
    border: 1px solid #dce6f2;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

/* ??????? ?? ????? ??????? ?????? ???? ???? ???? ????? */
.email-notifications-wrapper .notification-item span {
    display: inline-block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-right: 8px;
    flex: 1 1 auto;
    min-width: 0; /* ??? ???? ??????? ?? overflow ?? grid/flex */
}

/* ????? (???????) ????? ?????? ???? ?? ??? ???? ? ???? ?? ??????? */
.email-notifications-wrapper .notification-item .onoffswitch,
.email-notifications-wrapper .notification-item .onoffswitch * {
    flex: 0 0 auto;
    max-width: none;
}

/* ??? ???? ???????? ????????? ?? ????? ???? ????? grid ?? ?????? ??? ??? ?????? */
.email-notifications-wrapper > * {
    margin: 0 !important;
}

/* ?????????: ?????? = ?? ???? */
@media (max-width: 767px) {
    .email-notifications-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* Gradient Header */
.gradient-header {
  background: linear-gradient(90deg, #a8edea, #fed6e3);
  border-bottom: none;
  text-align: center;
  padding: 16px;
}

/* Upload Box */
.upload-box {
  grid-column: span 2;
  border: 2px dashed #a0c4ff;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  background: #f0f8ff;
  cursor: pointer;
  color: #3a5ba0;
}
.upload-box.dragover {
  background: #dbeafe;
}
.upload-box i {
  font-size: 40px;
  margin-bottom: 8px;
  color: #6c63ff;
}

/* Notifications */
.email-notifications-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.notification-item {
  background: #fff0f6;
  border: 1px solid #f3c4d4;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.

