/* Base page */
body {
  background: #f7f8fa !important;
  font-family: 'Inter', 'Vazirmatn', Arial, sans-serif !important;
  color: #232a3e;
  margin: 0;
}

/* Card container */
.easymenu-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 rgba(30, 48, 110, 0.11);
  max-width: 460px;
  margin: 44px 0 0 44px; /* left offset */
  padding: 28px 22px 24px 22px;
  border: 1px solid #f0f2f5;
  transition: box-shadow 0.18s;
}

.easymenu-box h1 {
  font-size: 1.56rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 25px;
  color: #232a3e;
}

/* Actions row (select + add) */
label + .easymenu-actions-row {
  border-bottom: 1px solid #f1f3f8;
  margin-bottom: 18px;
  padding-bottom: 7px;
}
.easymenu-actions-row {
  display: flex;
  gap: 7px;
  margin-bottom: 17px;
}

/* Select input */
.easymenu-select {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  border-radius: 7px;
  border: 1.5px solid #c9d2e0;
  padding: 9px 12px;
  background: #fafdff;
  outline: none;
  transition: border-color 0.18s;
}
.easymenu-select:focus { border-color: #0a55a8; }

/* Add button (blue outline) */
.easymenu-btn-primary {
  background: #fff;
  color: #0a55a8;
  border: 1.6px solid #0a55a8;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  padding: 0 22px;
  height: 39px;
  cursor: pointer;
  transition: all 0.18s;
  min-width: 80px;
}
.easymenu-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.easymenu-btn-primary:hover:not(:disabled),
.easymenu-btn-primary:focus:not(:disabled) {
  background: #0a55a8;
  color: #fff;
  border-color: #0a55a8;
  box-shadow: 0 2px 6px rgba(12,85,168,0.10);
  transform: scale(1.04);
}

/* List wrapper */
#active-currencies-list {
  margin-bottom: 20px;
  max-height: 256px;
  overflow-y: auto;
}

/* Currency row (draggable item) */
.easymenu-currency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f8fa;
  border-radius: 11px;
  padding: 13px 16px;
  margin-bottom: 12px;
  border: 1px solid #edf0f4;
  font-size: 15.6px;
  font-weight: 500;
  box-shadow: 0 1px 7px 0 rgba(60,60,60,0.03);
  transition: background 0.16s, box-shadow 0.16s, transform 0.12s;
  cursor: move; /* show draggable */
}
.easymenu-currency-row:hover {
  background: #f1f6fd;
  box-shadow: 0 2px 14px 0 rgba(40,110,210,0.08);
}

/* Remove button (red outline) */
.easymenu-btn-outline {
  background: #fff;
  color: #e14545;
  border: 1.6px solid #e14545;
  border-radius: 7px;
  font-size: 15px;
  padding: 0 19px;
  height: 35px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.17s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.easymenu-btn-outline svg {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  fill: #e14545;
  transition: fill 0.18s;
}
.easymenu-btn-outline:hover,
.easymenu-btn-outline:focus {
  background: #e14545;
  color: #fff;
  border-color: #e14545;
}
.easymenu-btn-outline:hover svg,
.easymenu-btn-outline:focus svg { fill: #fff; }

/* Save button (green) */
.easymenu-btn-green {
  background: #24c974;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 700;
  padding: 11px 34px;
  transition: background 0.18s, transform 0.17s;
  box-shadow: 0 1px 6px 0 rgba(36,201,116,0.10);
  cursor: pointer;
  letter-spacing: 0.1px;
  margin-top: 12px;
  width: 210px;
  display: block;
}
.easymenu-btn-green:hover,
.easymenu-btn-green:focus {
  background: #199e59;
  transform: scale(1.035);
}

/* Form label */
label {
  font-size: 15px;
  font-weight: 600;
  color: #253451;
  margin-bottom: 7px;
  display: block;
}

/* WP updated notice */
.updated, .notice-success {
  background: #e8faee;
  border-left: 4px solid #32c672;
  color: #17562b;
  padding: 16px 14px 13px 13px;
  margin-bottom: 21px;
  border-radius: 8px;
  font-size: 1.04rem;
  font-weight: 500;
}

/* Placeholder color */
::-webkit-input-placeholder { color: #a7b0c6; opacity: 1; }
::-moz-placeholder { color: #a7b0c6; opacity: 1; }
:-ms-input-placeholder { color: #a7b0c6; opacity: 1; }
::placeholder { color: #a7b0c6; opacity: 1; }

/* Remove animation */
.easymenu-currency-row.easymenu-fade-out {
  animation: fadeOutRow 0.23s forwards;
}
@keyframes fadeOutRow {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-18px); }
}

/* Drag & drop placeholder */
.sortable-placeholder {
  background: #f1f6fd;
  border: 2px dashed #b5c9e3;
  border-radius: 11px;
  height: 56px;
  margin-bottom: 12px;
}

/* jQuery UI helper while dragging (slight lift) */
.ui-sortable-helper {
  transform: scale(1.01);
  box-shadow: 0 6px 18px rgba(40,110,210,0.12);
}

/* Responsive */
@media (max-width: 650px) {
  .easymenu-box {
    max-width: 99vw;
    padding: 10px 2vw 18px 2vw;
    margin: 20px 0 0 0;
  }
  .easymenu-actions-row {
    flex-direction: column;
    gap: 8px;
  }
  .easymenu-btn-green,
  .easymenu-btn-primary {
    width: 100%;
    margin: 10px 0 0 0;
  }
  .easymenu-currency-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* Select2 match .easymenu-select */
.select2-container--default .select2-selection--single {
  border: 1.5px solid #c9d2e0;
  border-radius: 7px;
  height: 39px;
  background: #fafdff;
  outline: none;
  transition: border-color .18s;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 37px;
  padding-left: 12px;
  color: #232a3e;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 37px;
  right: 6px;
}
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--single:focus {
  border-color: #0a55a8;
}
.select2-container .select2-dropdown {
  border: 1.5px solid #c9d2e0;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(30,48,110,.10);
}
