/* Custom theme fixes for uniform buttons, selects, nav, and modal */

/* Uniform button style */
.cdm-button, .button, .sp-cdm-nav a, .sp-cdm-nav button {
  background: #2563eb !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  margin: 4px 0;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cdm-button:hover, .button:hover, .sp-cdm-nav a:hover, .sp-cdm-nav button:hover {
  background: #1741a6;
}

/* Add icons to nav buttons (FontAwesome required) */
.sp-cdm-nav .cdm-nav-docs:before { content: '\f15c'; font-family: 'FontAwesome'; margin-right: 8px; }
.sp-cdm-nav .cdm-nav-vendors:before { content: '\f0c0'; font-family: 'FontAwesome'; margin-right: 8px; }
.sp-cdm-nav .cdm-nav-help:before { content: '\f059'; font-family: 'FontAwesome'; margin-right: 8px; }
.sp-cdm-nav .cdm-nav-settings:before { content: '\f013'; font-family: 'FontAwesome'; margin-right: 8px; }

/* Style all selects */
select, .cdm-select {
  border: 1px solid #2563eb;
  border-radius: 4px;
  padding: 6px 32px 6px 10px;
  font-size: 1em;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%232563eb" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 10px center/16px 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 120px;
}
select:focus, .cdm-select:focus {
  outline: 2px solid #2563eb;
}

/* With Selected area */
#spcdm-batch-selected-bar, .cdm-with-selected-bar {
  background: #f1f5fb;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
  font-weight: 500;
}
#spcdm-batch-selected-bar label, .cdm-with-selected-bar label {
  margin-right: 8px;
  color: #2563eb;
  font-weight: 600;
}

/* Modal border fix */
.remodal, .cdm-modal, .modal, .ui-dialog {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 8px 8px 8px 8px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
