/* wa_price_list.css */
/* Modern Dark Theme styling for Channel Price List Editor & Simulation */

.wa-price-list-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: waPlFadeIn 0.2s ease-out;
}

@keyframes waPlFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.wa-price-list-modal {
  background: #111827;
  border: 1px solid rgba(245, 203, 92, 0.3);
  border-radius: 14px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  color: #f3f4f6;
  font-family: inherit;
  overflow: hidden;
}

.wa-pl-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #162032;
}

.wa-pl-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-pl-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5cb5c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-pl-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
}

.wa-pl-badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.wa-pl-badge-inactive {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border-color: rgba(156, 163, 175, 0.3);
}

.wa-pl-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.wa-pl-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.wa-pl-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wa-pl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #1e293b;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-pl-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.wa-pl-toggle-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
}

.wa-pl-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wa-pl-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.wa-pl-btn-primary {
  background: #f5cb5c;
  color: #0b0f19;
}
.wa-pl-btn-primary:hover {
  background: #e5b93b;
}

.wa-pl-btn-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}
.wa-pl-btn-success:hover {
  background: rgba(16, 185, 129, 0.3);
}

.wa-pl-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.12);
}
.wa-pl-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.wa-pl-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #162032;
}

.wa-pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 850px;
}

.wa-pl-table th {
  background: #1a263c;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-pl-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.wa-pl-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.wa-pl-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.wa-pl-input:focus {
  border-color: #f5cb5c;
}

.wa-pl-input-sm {
  width: 90px;
}

.wa-pl-delete-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.wa-pl-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* Preview / Simulation Section */
.wa-pl-preview-panel {
  background: #162032;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
}

.wa-pl-preview-header {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f5cb5c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-pl-preview-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.wa-pl-preview-input {
  flex: 1;
}

.wa-pl-preview-results {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #d1d5db;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

.wa-pl-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #162032;
}

.wa-pl-version-info {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .wa-price-list-modal {
    max-height: 98vh;
    border-radius: 8px;
  }
  .wa-pl-header {
    padding: 14px 16px;
  }
  .wa-pl-body {
    padding: 14px 16px;
  }
  .wa-pl-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .wa-pl-actions-group {
    width: 100%;
    justify-content: flex-start;
  }
}
