/**
 * CONFIG DEV - PREMIUM DEVELOPER INTERFACE 🛠️
 * Design 11/10 - Glassmorphism + Modern UI
 */

/* ==================== MAIN CONTAINER ==================== */
.config-dev-container {
  padding: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==================== HEADER ==================== */
.config-dev-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.config-dev-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.config-dev-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-weight: 500;
}

/* ==================== TABS NAVIGATION ==================== */
.config-dev-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.config-dev-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.config-dev-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.config-dev-tab:hover {
  color: var(--text-color);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.config-dev-tab:hover::before {
  opacity: 1;
}

.config-dev-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(99, 102, 241, 0.5);
  color: #6366f1;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

/* ==================== CONTENT ==================== */
.config-dev-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.config-dev-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== SECTIONS ==================== */
.config-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.config-section:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.config-section-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.config-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

/* ==================== FORM FIELDS ==================== */
.config-field {
  margin-bottom: 1.5rem;
}

.config-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.config-input,
.config-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.config-input:focus,
.config-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1),
              0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.config-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Inter', sans-serif;
}

/* ==================== LOGO PREVIEW ==================== */
.logo-preview-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.logo-preview {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s;
}

.logo-preview:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-preview-placeholder {
  font-size: 48px;
  opacity: 0.5;
}

.logo-upload-btn {
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.logo-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.logo-upload-btn:active {
  transform: translateY(0);
}

/* ==================== COLOR PICKER ==================== */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.color-picker-input {
  width: 60px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.color-picker-input:hover {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.color-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== PRICING PLANS ==================== */
.pricing-plans-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pricing-plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}

.pricing-plan-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.pricing-plan-card:hover::before {
  opacity: 1;
}

.pricing-plan-card.highlighted {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.pricing-plan-card.highlighted::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
  opacity: 1;
}

.pricing-plan-info h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.pricing-plan-price {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.pricing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-plan-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.pricing-plan-features li:last-child {
  border-bottom: none;
}

.pricing-plan-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  margin-right: 0.5rem;
}

.pricing-plan-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ==================== BUTTONS ==================== */
.config-dev-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-config {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-config::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-config:hover::before {
  width: 300px;
  height: 300px;
}

.btn-config-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-config-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-config-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.btn-config-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==================== ERROR MESSAGE ==================== */
.error-message {
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #ef4444;
  font-weight: 600;
  text-align: center;
  margin: 2rem 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .config-dev-container {
    padding: 1.5rem;
  }

  .config-dev-title {
    font-size: 2rem;
  }

  .config-dev-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-preview-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-plans-list {
    grid-template-columns: 1fr;
  }

  .config-dev-footer {
    flex-direction: column;
  }

  .btn-config {
    width: 100%;
  }
}

/* ==================== LOADING STATE ==================== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.loading::before {
  content: '⏳';
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
