/* Admin Styles for On Click to Top */
/* .octt-settings-wrap {
  background: #fff;
  min-height: calc(100vh - 32px);
  position: relative;
} */

/* Header Styles */
.octt-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px 30px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -20px 10px -22px;
  position: sticky;
  top: 22px;
  left: 0;
  z-index: 9999;
}

.octt-header-content {
  flex: 1;
}

.octt-title {
  color: white;
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
}

.octt-title i {
  font-size: 32px;
  opacity: 0.9;
}

.octt-description {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 14px;
  max-width: 600px;
}

.octt-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.octt-header-actions .octt-reset-btn {
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s;
}
.octt-header-actions .octt-reset-btn:hover {
  transform: scale(1.05);
}

.octt-header-actions .octt-save-btn {
  background: white;
  color: #667eea;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s;
}
.octt-header-actions .octt-save-btn:hover {
  transform: scale(1.05);
}

/* Notice Area */
.octt-notice-area {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.octt-notice {
  background: white;
  border-left: 4px solid #46b450;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.octt-notice.error {
  border-left-color: #dc3232;
}

.octt-notice.warning {
  border-left-color: #f0ad4e;
}

.octt-notice i {
  font-size: 18px;
}

.octt-notice.success i {
  color: #46b450;
}

.octt-notice.error i {
  color: #dc3232;
}

.octt-notice.warning i {
  color: #f0ad4e;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Main Container */
.octt-settings-container {
  display: flex;
  gap: 30px;
  padding: 0 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.octt-settings-main {
  /* flex: 1; */
  min-width: 0;
  width: 860px;
}

.octt-settings-sidebar {
  width: 360px;
  flex-shrink: 0;
  position: fixed;
  right: 0;
}

/* Tabs Navigation */
.octt-tabs-nav {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 30px;
  display: flex;
  overflow-x: auto;
  position: sticky;
  top: 140px;
  z-index: 999;
}

.octt-tabs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
  width: 100%;
}

.octt-tabs-nav li {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.octt-tabs-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 10px;
  text-decoration: none;
  color: #6c757d;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.octt-tabs-nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #495057;
}

.octt-tabs-nav li.active a {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.octt-tabs-nav i {
  font-size: 16px;
}

/* Tab Content */
.octt-tabs-content {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
}

.octt-tab-pane {
  display: none;
}

.octt-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Section Styles */
.octt-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.octt-section:last-child {
  margin-bottom: 0;
}

.octt-section-title {
  margin: 0 0 20px 0;
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.octt-section-title i {
  color: #667eea;
}

.octt-section-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Field Styles */
.octt-field {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.octt-field-info {
  flex: 1;
}

.octt-field-info h4 {
  margin: 0 0 5px 0;
  color: #495057;
  font-size: 15px;
  font-weight: 600;
}

.octt-field-info p {
  margin: 0;
  color: #6c757d;
  font-size: 13px;
  line-height: 1.5;
}

.octt-field-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
  display: block;
}

.octt-field-description {
  color: #6c757d;
  font-size: 13px;
  margin: 5px 0 0 0;
  font-style: italic;
}

/* Switch Toggle */
.octt-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.octt-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.octt-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.octt-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .octt-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .octt-slider:before {
  transform: translateX(26px);
}

/* Range Slider */
.octt-range-field {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.octt-range-container {
  position: relative;
  padding: 15px 0;
}

.octt-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #667eea 0%,
    #667eea var(--value-percent, 50%),
    #e9ecef var(--value-percent, 50%),
    #e9ecef 100%
  );
  outline: none;
}

.octt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.octt-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.octt-range-tooltip {
  position: absolute;
  top: -30px;
  left: var(--thumb-position, 50%);
  transform: translateX(-50%);
  background: #495057;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.octt-range-tooltip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #495057;
}

.octt-range-container:hover .octt-range-tooltip {
  opacity: 1;
}

.octt-field-value {
  font-weight: 600;
  color: #667eea;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* Color Picker */
.octt-color-picker {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.octt-color-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Radio Buttons */
.octt-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.octt-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 150px;
}

.octt-radio:hover {
  border-color: #adb5bd;
}

.octt-radio input[type="radio"] {
  display: none;
}

.octt-radio-check {
  width: 20px;
  height: 20px;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.octt-radio input[type="radio"]:checked + .octt-radio-check {
  border-color: #667eea;
}

.octt-radio input[type="radio"]:checked + .octt-radio-check:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #667eea;
  border-radius: 50%;
}

.octt-radio i {
  color: #6c757d;
  font-size: 16px;
}

.octt-radio input[type="radio"]:checked ~ i {
  color: #667eea;
}

/* Device Display */
.octt-device-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.octt-device-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s;
}

.octt-device-option:hover {
  border-color: #adb5bd;
  transform: translateY(-2px);
}

.octt-device-option input:checked ~ .octt-device-icon {
  color: #667eea;
}

.octt-device-option input:checked {
  border-color: #667eea;
}

.octt-device-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.octt-device-icon i {
  font-size: 24px;
}

/* Icon Selection */
.octt-icon-grid {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.octt-icon-section-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
}
.octt-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 10px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.octt-icon-option:hover {
  border-color: #adb5bd;
  transform: translateY(-2px);
}

.octt-icon-option input[type="radio"] {
  display: none;
}

.octt-icon-option input[type="radio"]:checked {
  border-color: #667eea;
  background: #eef2ff;
}

.octt-icon-preview {
  font-size: 24px;
  color: #495057;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.octt-icon-option input[type="radio"]:checked ~ .octt-icon-preview {
  color: #667eea;
}

.octt-icon-name {
  font-size: 11px;
  color: #6c757d;
  text-align: center;
  line-height: 1.3;
}

/* Image Upload */
.octt-image-upload {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.octt-image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f9fa;
}

.octt-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.octt-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #6c757d;
}

.octt-no-image i {
  font-size: 32px;
}

.octt-remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc3545;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.octt-image-preview:hover .octt-remove-image {
  opacity: 1;
}

.octt-upload-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: transform 0.3s;
}

.octt-upload-image:hover {
  transform: translateY(-2px);
  color: white;
}

/* Select & Textarea */
.octt-select,
.octt-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  transition: border-color 0.3s;
}

.octt-select:focus,
.octt-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.octt-textarea {
  min-height: 150px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Position Controls */
.octt-position-options {
  margin-bottom: 20px;
}

/* Preview Section */
.octt-preview-section {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  margin-bottom: 25px;
}

.octt-preview-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 10px;
}

.octt-preview-header h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.octt-preview-content {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
}
.octt-preview-content .plugin-content h2{
  margin: 0.5rem 0;
}
.octt-preview-content .plugin-content p{
  margin: 0.5rem 0;
}

.octt-preview-scrollable {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
}
.octt-color-field {
    display: grid;
}
.octt-color-field .wp-picker-container{
    margin-top: 10px;
}
.octt-preview-dummy {
  height: 2000px;
}

.octt-dummy-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.octt-dummy-title {
  height: 20px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 70%;
}

.octt-dummy-text {
  height: 15px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 5px;
}

.octt-dummy-text:nth-child(3) {
  width: 90%;
}

.octt-dummy-text:nth-child(4) {
  width: 80%;
}

.octt-preview-controls {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.octt-scroll-down {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: transform 0.3s;
}

.octt-scroll-down:hover {
  transform: translateY(-2px);
  color: white;
}

/* Info Box */
.octt-info-box {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  text-align: center;
}

.octt-info-box h3 {
  margin: 0 0 15px 0;
  color: #495057;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.octt-info-box p {
  color: #6c757d;
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.5;
}

.octt-info-box .button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Meta Box */
.octt-meta-box {
  padding: 10px 0;
}

.octt-meta-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.octt-meta-box input[type="checkbox"] {
  margin: 0;
}

.octt-meta-box .description {
  color: #666;
  font-size: 12px;
  margin-top: 8px;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .octt-settings-container {
    flex-direction: column;
  }

  .octt-settings-sidebar {
    width: 100%;
  }
}

@media (max-width: 782px) {
  .octt-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px;
  }

  .octt-header-content {
    text-align: center;
  }

  .octt-tabs-nav ul {
    flex-wrap: wrap;
  }

  .octt-tabs-nav li {
    flex: 0 0 auto;
  }

  .octt-device-display {
    grid-template-columns: 1fr;
  }

  .octt-color-group {
    grid-template-columns: 1fr;
  }

  .octt-field {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Loading Spinner */
.octt-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
