/**
 * WOW3 Property Panels Styles
 * Adapted from wox-html panel system
 */

/* ==================== PANEL TABS ==================== */

.panel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.panel-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-tab:hover {
  color: #2196F3;
  background: #f5f5f5;
}

.panel-tab.active {
  color: #2196F3;
  border-bottom-color: #2196F3;
}

.panel-tab-content {
  display: none;
}

.panel-tab-content.active {
  display: block;
}

/* ==================== CONTROL GROUPS ==================== */

.control-group {
  margin-bottom: 20px;
}

.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-group input[type="checkbox"] + span {
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
}

/* ==================== INPUTS ==================== */

.panel-input,
.panel-select,
.panel-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.panel-input:focus,
.panel-select:focus,
.panel-textarea:focus {
  outline: none;
  border-color: #2196F3;
}

.panel-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ==================== SLIDERS ==================== */

.slider-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2196F3;
  cursor: pointer;
  transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2196F3;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.number-box {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.number-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

.number-input:focus {
  outline: none;
  border-color: #2196F3;
}

.unit-label {
  font-size: 12px;
  color: #999;
  min-width: 20px;
}

/* ==================== COLOR PICKER ==================== */

.color-picker-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-preview {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid #ddd;
  cursor: pointer;
  overflow: hidden;
}

.color-preview input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.color-text-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.color-text-input:focus {
  outline: none;
  border-color: #2196F3;
}

/* ==================== ICON TOGGLE GROUP ==================== */

.icon-toggle-group {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 4px;
}

.icon-toggle-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  color: #666;
}

.icon-toggle-btn:hover {
  background: #e0e0e0;
}

.icon-toggle-btn.active {
  background: #2196F3;
  color: white;
}

.icon-toggle-btn i {
  font-size: 20px;
}

/* ==================== MEDIA INPUT GROUP ==================== */

.media-input-group {
  display: flex;
  gap: 8px;
}

.media-input-group .panel-input {
  flex: 1;
}

.btn-icon {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: #e0e0e0;
  border-color: #2196F3;
}

.btn-icon i {
  color: #666;
  font-size: 20px;
}

/* ==================== UPLOAD AREA ==================== */

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.upload-area.drag-over {
  border-color: #2196F3;
  background: #e3f2fd;
}

.btn-upload {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.btn-upload:hover {
  background: #e0e0e0;
  border-color: #2196F3;
  color: #2196F3;
}

.btn-upload i {
  font-size: 20px;
}

/* ==================== PLACEHOLDER HINT ==================== */

.placeholder-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #999;
  line-height: 1.6;
}

.placeholder-tag {
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}

.placeholder-tag:hover {
  background: #2196F3;
  color: white;
}

/* ==================== SECTION TITLE ==================== */

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
