/* Create Widget Page styles */

.wetravel-trips-create-design-container {
  margin-top: 20px;
}

.wetravel-trips-design-form-and-preview {
  display: flex;
  gap: 30px;
}

.wetravel-trips-design-form {
  flex: 1;
  max-width: 500px;
}

.wetravel-trips-design-preview-container {
  flex: 1;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
}

.wetravel-trips-form-field {
  margin-bottom: 20px;
}

.wetravel-trips-form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.wetravel-trips-form-field input[type="text"],
.wetravel-trips-form-field select,
.wetravel-trips-form-field input[type="date"] {
  width: 100%;
}

.date-range-inputs {
  display: flex;
  gap: 10px;
}

.date-range-inputs > div {
  flex: 1;
}

.wetravel-trips-form-actions {
  margin-top: 30px;
}

.wetravel-trips-preview {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  min-height: 300px;
  margin-bottom: 20px;
}

.preview-display-type {
  text-align: center;
  padding: 40px 0;
  color: #757575;
}

.wetravel-trips-shortcode-generator {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
}

.shortcode-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 3px;
}

/* Widget Library Page Styles */

.wetravel-trips-design-library-container {
  margin-top: 20px;
}

.wetravel-trips-library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.wetravel-trips-no-designs {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

.wetravel-trips-designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.wetravel-trips-design-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wetravel-trips-design-preview {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wetravel-trips-design-info {
  padding: 15px;
}

.wetravel-trips-design-info h3 {
  margin: 0 0 10px 0;
}

.wetravel-trips-design-meta {
  color: #757575;
  font-size: 12px;
  margin-bottom: 15px;
}

.wetravel-trips-design-actions {
  display: flex;
  gap: 5px;
}

/* Settings Page Styles */

.wetravel-trips-settings-container {
  margin-top: 20px;
}

.wetravel-trips-embed-form {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
}

.wetravel-trips-embed-input-container {
  flex: 1;
  margin-right: 15px;
}

.wetravel-trips-embed-button-container {
  padding-top: 4px;
}

.wetravel-trips-embed-info {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 4px;
  max-width: 900px;
}

.wetravel-trips-embed-status {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.wetravel-trips-embed-status .dashicons {
  color: #46b450;
  font-size: 24px;
  margin-right: 8px;
}

.wetravel-trips-extracted-info {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 3px;
}

.wetravel-trips-extracted-info p {
  margin: 5px 0;
}

.notice ul {
  margin: 5px 0 5px 20px;
  list-style-type: disc;
}

.notice ul li {
  margin: 3px 0;
}

.notice ul li a {
  text-decoration: none;
}

.notice ul li a:hover {
  text-decoration: underline;
}

.description .dashicons {
  color: #72aee6;
  margin-right: 5px;
  vertical-align: middle;
}

.wetravel-trips-embed-info .description {
  margin-top: 15px;
  padding: 10px;
  background: #f0f6fc;
  border-left: 4px solid #72aee6;
}

.toogle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin: 0;
}

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

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

.toogle-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toogle-switch-slider {
  background-color: #2271b1;
}

input:focus + .toogle-switch-slider {
  box-shadow: 0 0 1px #2271b1;
}

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

/* --- WeTravel Instructions Page Tabs & Content --- */
.wetravel-instructions-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
  margin-top: 24px;
}

.tab-button {
  background: #f1f1f1;
  border: 1px solid #ccd0d4;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: #e5e5e5;
}

.tab-button.active {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wetravel-instructions-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
}

.wetravel-instructions-section h2 {
  color: #23282d;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.wetravel-instructions-section h3 {
  color: #0073aa;
  margin-top: 25px;
  margin-bottom: 15px;
}

.wetravel-instructions-section h4 {
  color: #23282d;
  margin-top: 20px;
  margin-bottom: 10px;
}

.code-example {
  background: #f1f1f1;
  padding: 15px;
  border-left: 4px solid #0073aa;
  margin: 15px 0;
}

.code-example code {
  background: #fff;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 13px;
}

.wetravel-instructions-section table {
  margin: 15px 0;
}

.wetravel-instructions-section table th {
  background: #f9f9f9;
}

.wetravel-instructions-section ul,
.wetravel-instructions-section ol {
  margin-left: 20px;
}

.wetravel-instructions-section li {
  margin-bottom: 8px;
}

/* Responsive design for tabs */
@media (max-width: 768px) {
  .wetravel-instructions-tabs {
    flex-direction: column;
  }

  .tab-button {
    border-radius: 4px;
    margin-bottom: 2px;
  }
}
