/* Admin Settings Styles */
.spn-settings-wrap {
  max-width: 1200px;
  margin: 20px 0;
}

.spn-settings-wrap h1 {
  margin-bottom: 20px;
}

.nav-tab-wrapper .nav-tab {
  display: inline-block;
  padding: 10px 15px;
}

.nav-tab-wrapper .nav-tab .dashicons {
  margin-right: 5px;
}

/* Toggle Switch */
.spn-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.spn-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

.spn-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.spn-switch input:checked + .spn-slider {
  background-color: #2196f3;
}

.spn-switch input:checked + .spn-slider:before {
  transform: translateX(26px);
}

/* Appearance Tab Layout */
.spn-appearance-settings {
  max-width: 800px;
}

.spn-appearance-settings h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.spn-appearance-settings h3:first-child {
  margin-top: 0;
}

/* Ensure tab content is properly styled */
.spn-tab-content {
  margin-top: 20px;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
}

/* WP Color Picker disabled state */
.wp-picker-container.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* License Tab Styles */
.spn-license-settings {
  max-width: 800px;
}

.spn-license-status {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.spn-license-status.active {
  background-color: #e7f7ea;
  color: #27ae60;
}

.spn-license-status.inactive {
  background-color: #ffeaea;
  color: #e74c3c;
}

.spn-license-status .dashicons {
  margin-right: 10px;
  font-size: 20px;
}

.spn-pro-features {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.spn-pro-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.spn-pro-features .dashicons {
  color: #27ae60;
  margin-right: 10px;
}

.spn-license-form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.spn-license-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.spn-license-form input[type="text"] {
  width: 100%;
  margin-bottom: 15px;
}

.spn-pro-notice {
  color: #e74c3c;
  font-weight: bold;
  margin-top: 5px !important;
}

/* Feature Comparison Table */
.spn-feature-comparison {
  margin: 20px 0 30px 0;
}

.spn-feature-comparison table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.spn-feature-comparison th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
}

.spn-feature-comparison th:first-child {
  width: 50%;
}

.spn-feature-comparison th:not(:first-child) {
  width: 25%;
  text-align: center;
}

.spn-feature-comparison td {
  padding: 10px 15px;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
}

.spn-feature-comparison td:not(:first-child) {
  text-align: center;
}

.spn-feature-comparison tr:nth-child(even) {
  background-color: #fafafa;
}

.spn-feature-comparison tr:hover {
  background-color: #f5f5f5;
}

.spn-feature-comparison .dashicons-yes {
  color: #2ecc71;
  font-size: 20px;
}

.spn-feature-comparison .dashicons-no {
  color: #e74c3c;
  font-size: 20px;
}

.spn-feature-comparison th:nth-child(3) {
  background-color: #f0f7ff;
}

.spn-feature-comparison td:nth-child(3) {
  background-color: #f8fcff;
}

/* Highlight the Pro column */
.spn-feature-comparison th:nth-child(3),
.spn-feature-comparison td:nth-child(3) {
  position: relative;
}

.spn-feature-comparison th:nth-child(3)::after {
  content: "Recommended";
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #2196f3;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  transform: rotate(15deg);
}

/* Review Generator styles */
.spn-review-generator {
  max-width: 900px;
}

.spn-review-generator h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #23282d;
}

.spn-review-generator > .description {
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.6;
}

.spn-date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spn-date-range label {
  font-weight: 600;
  margin: 0;
}

.spn-date-range input[type="date"] {
  max-width: 200px;
}

.spn-rating-range {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spn-rating-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spn-rating-input label {
  font-weight: 600;
  min-width: 80px;
}

.spn-rating-stars {
  font-size: 20px;
  color: #ffa500;
  margin-left: 10px;
  user-select: none;
}

.spn-target-selection label {
  display: block;
  margin: 8px 0;
  font-weight: 500;
}

.spn-target-selection input[type="radio"] {
  margin-right: 8px;
}

.spn-target-options {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.spn-target-options select {
  width: 100%;
  max-width: 500px;
}

.spn-review-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.spn-review-actions .button-large {
  padding: 8px 20px;
  height: auto;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spn-status-message {
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 4px;
  display: none;
}

.spn-status-message.success {
  display: inline-block;
  background-color: #e7f7ea;
  color: #27ae60;
  border: 1px solid #27ae60;
}

.spn-status-message.error {
  display: inline-block;
  background-color: #ffeaea;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.dashicons-spin {
  animation: dashicons-spin 1s infinite linear;
}

@keyframes dashicons-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
