/* ============================================
   PRESET TAB STYLES
   ============================================ */

/* Preset Actions */
.preset-actions {
  display: flex;
  gap: 8px;
  padding: 15px;
  background: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
}

.preset-action-btn {
  flex: 1;
  padding: 10px 15px;
  background: linear-gradient(135deg, #4a9eff 0%, #5ab0ff 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.preset-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.preset-action-btn:active {
  transform: translateY(0);
}

.preset-action-btn.secondary {
  background: linear-gradient(135deg, #5a5a5a 0%, #6a6a6a 100%);
}

.preset-action-btn.secondary:hover {
  box-shadow: 0 4px 12px rgba(90, 90, 90, 0.3);
}

.preset-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Preset List */
.preset-list {
  padding: 15px;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
}

.preset-section {
  margin-bottom: 25px;
}

.preset-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a3a3a;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Preset Card */
.preset-card {
  background: #2a2a2a;
  border: 2px solid #3a3a3a;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.preset-card:hover {
  border-color: #4a9eff;
  background: #2d2d2d;
  transform: translateX(2px);
}

.preset-card.active {
  border-color: #4a9eff;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(90, 176, 255, 0.1) 100%);
  box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
}

.preset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.preset-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.preset-delete-btn {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-delete-btn:hover {
  background: rgba(255, 68, 68, 0.1);
  transform: scale(1.1);
}

.preset-card-description {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  line-height: 1.4;
}

.preset-card-actions {
  display: flex;
  gap: 6px;
}

.preset-apply-btn,
.preset-export-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preset-apply-btn {
  flex: 1;
  background: linear-gradient(135deg, #4a9eff 0%, #5ab0ff 100%);
  color: white;
}

.preset-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.preset-export-btn {
  background: #3a3a3a;
  color: #aaa;
  padding: 6px 10px;
}

.preset-export-btn:hover {
  background: #4a4a4a;
  color: #fff;
}

.preset-apply-btn svg,
.preset-export-btn svg {
  width: 14px;
  height: 14px;
}

/* Preset Feedback */
.preset-feedback {
  padding: 12px 15px;
  margin: 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: none;
  animation: slideInRight 0.3s ease;
}

.preset-feedback.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.preset-feedback.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.preset-feedback.info {
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: #4a9eff;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Empty State */
.preset-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.preset-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.preset-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #888;
}

.preset-empty-text {
  font-size: 13px;
  line-height: 1.6;
}

/* Scrollbar */
.preset-list::-webkit-scrollbar {
  width: 8px;
}

.preset-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.preset-list::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

.preset-list::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}

/* Responsive */
@media (max-width: 768px) {
  .preset-actions {
    flex-direction: column;
  }
  
  .preset-action-btn {
    width: 100%;
  }
  
  .preset-card-actions {
    flex-direction: column;
  }
  
  .preset-apply-btn,
  .preset-export-btn {
    width: 100%;
  }
}
