/* Holy Day Off - Admin Styles */

/* Layout */
.hdo-wrap {
  max-width: 900px;
  margin: 20px auto;
}

/* Header */
.hdo-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.hdo-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hdo-version {
  display: inline-block;
  font-size: 12px;
  color: #757575;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Status Dashboard Row */
.hdo-status-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hdo-status-card {
  flex: 1;
  min-width: 180px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s;
}

.hdo-status-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.hdo-status-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.hdo-status-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #757575;
  margin-bottom: 6px;
  font-weight: 600;
}

.hdo-status-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.hdo-status-sub {
  display: block;
  font-size: 12px;
  color: #757575;
  margin-top: 4px;
}

/* Status colors */
.hdo-status-card.hdo-open .hdo-status-value {
  color: #00a32a;
}

.hdo-status-card.hdo-open .hdo-status-icon {
  color: #00a32a;
}

.hdo-status-card.hdo-closed .hdo-status-value {
  color: #d63638;
}

.hdo-status-card.hdo-closed .hdo-status-icon {
  color: #d63638;
}

.hdo-status-card.hdo-active .hdo-status-value {
  color: #00a32a;
}

.hdo-status-card.hdo-active .hdo-status-icon {
  color: #00a32a;
}

.hdo-status-card.hdo-inactive .hdo-status-value {
  color: #dba617;
}

.hdo-status-card.hdo-inactive .hdo-status-icon {
  color: #dba617;
}

.hdo-status-card.hdo-schedule-card .hdo-status-icon {
  color: #2271b1;
}

/* Cards */
.hdo-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s;
}

.hdo-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.hdo-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f1;
  background: #fafafa;
}

.hdo-card-header h2 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
}

.hdo-card-body {
  padding: 8px 24px 16px;
}

.hdo-card-body .form-table {
  margin: 0;
}

.hdo-card-body .form-table th {
  padding: 16px 10px 16px 0;
  font-weight: 500;
  font-size: 13px;
  vertical-align: middle;
  width: 200px;
}

.hdo-card-body .form-table td {
  padding: 16px 10px;
  vertical-align: middle;
}

.hdo-card-body .form-table tr {
  border-bottom: 1px solid #f6f7f7;
}

.hdo-card-body .form-table tr:last-child {
  border-bottom: none;
}

.hdo-card-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f6f7f7;
  border-radius: 6px;
  font-size: 12px;
  color: #646970;
  border-left: 3px solid #2271b1;
}

/* Toggle Switch */
.hdo-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  vertical-align: middle;
  cursor: pointer;
}

.hdo-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.hdo-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.25s;
  border-radius: 24px;
}

.hdo-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hdo-toggle input:checked + .hdo-toggle-slider {
  background-color: #2271b1;
}

.hdo-toggle input:checked + .hdo-toggle-slider:before {
  transform: translateX(20px);
}

.hdo-toggle input:disabled + .hdo-toggle-slider {
  opacity: 0.4;
  cursor: not-allowed;
}

.hdo-toggle + .description {
  margin-top: 6px;
}

/* Status Badges */
.hdo-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hdo-badge-open {
  background: #edfaef;
  color: #00a32a;
}

.hdo-badge-closed {
  background: #fce4e4;
  color: #d63638;
}

/* Schedule Times */
.hdo-schedule-times {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.hdo-time-start,
.hdo-time-end {
  font-weight: 500;
}

.hdo-time-separator {
  color: #757575;
}

.hdo-no-city {
  color: #757575;
  font-style: italic;
}

/* Alert Preview */
.hdo-preview-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f1;
}

.hdo-preview-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hdo-alert-preview {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hdo-alert-preview-bar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  transition: all 0.3s;
}

.hdo-alert-preview-message {
  flex: 1;
  text-align: center;
  font-size: 14px;
}

.hdo-alert-preview-close {
  margin-left: 15px;
  font-weight: bold;
  opacity: 0.7;
  cursor: default;
}

/* Pro Badge */
.hdo-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f0c929, #d4a017);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Locked Pro Card */
.hdo-card-locked .hdo-card-body .form-table {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.hdo-card-locked .hdo-preview-section {
  opacity: 0.45;
  pointer-events: none;
}

.hdo-card-locked .hdo-card-note {
  opacity: 0.45;
}

/* Pro Upsell Strip */
.hdo-pro-upsell {
  text-align: center;
  padding: 16px;
  margin-top: 12px;
  background: #fffbe6;
  border: 1px dashed #d4a017;
  border-radius: 6px;
}

.hdo-pro-upsell p {
  margin: 0 0 10px;
  color: #1d2327;
  font-size: 13px;
}

.hdo-pro-upsell .button-primary {
  background: linear-gradient(135deg, #f0c929, #d4a017);
  border-color: #c49415;
  color: #fff;
  text-shadow: none;
}

.hdo-pro-upsell .button-primary:hover {
  background: linear-gradient(135deg, #d4a017, #b8860b);
  border-color: #a07510;
}

/* Buy Pro Link */
.hdo-buy-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f1;
}

/* Footer */
.hdo-footer {
  text-align: center;
  padding: 20px;
  color: #757575;
  font-size: 13px;
}

.hdo-footer a {
  color: #2271b1;
  text-decoration: none;
}

.hdo-footer a:hover {
  color: #135e96;
}

/* Select2 Override */
.hdo-card-body .select2 {
  min-width: 300px !important;
}

/* Submit Button - Sticky */
.hdo-wrap .submit {
  position: sticky;
  bottom: 0;
  z-index: 10;
  text-align: center;
  padding: 16px 0;
  margin: 0 -12px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.hdo-wrap .submit .button-primary {
  min-width: 200px;
  height: 40px;
  font-size: 14px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 782px) {
  .hdo-wrap {
    margin: 10px;
  }

  .hdo-status-row {
    flex-direction: column;
  }

  .hdo-status-card {
    min-width: auto;
  }

  .hdo-card-body {
    padding: 8px 16px 16px;
  }

  .hdo-card-body .form-table th {
    width: auto;
    display: block;
    padding-bottom: 4px;
  }

  .hdo-card-body .form-table td {
    display: block;
    padding-top: 0;
  }

  .hdo-schedule-times {
    flex-direction: column;
    align-items: flex-start;
  }
}
