/* Стили для форм */
.form-label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 600; 
  color: #374151; 
}

.form-control { 
  width: 100%; 
  padding: 12px 16px; 
  border: 1px solid #d1d5db; 
  border-radius: 8px; 
  box-sizing: border-box; 
  font-size: 14px; 
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-control:focus { 
  outline: none; 
  border-color: #3b82f6; 
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}

.form-control:hover { 
  border-color: #9ca3af; 
}

.btn { 
  display: inline-block; 
  padding: 12px 24px; 
  background: #3b82f6; 
  color: white; 
  text-decoration: none; 
  border: none; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600; 
  font-size: 14px; 
  transition: background-color 0.2s;
}

.btn:hover { 
  background: #2563eb; 
}

.btn-secondary { 
  background: #6b7280; 
}

.btn-secondary:hover { 
  background: #4b5563; 
}

.btn-danger { 
  background: #ef4444; 
}

.btn-danger:hover { 
  background: #dc2626; 
}

.btn-success { 
  background: #10b981; 
}

.btn-success:hover { 
  background: #059669; 
}

.btn-sm { 
  padding: 6px 12px; 
  font-size: 12px; 
}

.btn-xs { 
  padding: 4px 8px; 
  font-size: 11px; 
}

/* Стили для окна редактирования */
.edit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 25px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  color: white;
}

.edit-header h1 {
  margin: 0;
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-header .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.edit-header .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.edit-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.form-section {
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h2 {
  margin-bottom: 25px;
  color: #1e293b;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  position: relative;
}

.form-section h2::before {
  content: '';
  width: 6px;
  height: 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-right: 15px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.form-group {
  margin-bottom: 25px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .edit-container {
    padding: 16px 12px;
  }

  .edit-form {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .edit-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 20px 18px;
    text-align: center;
  }

  .edit-header h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .edit-header .btn {
    min-height: 44px;
    justify-content: center;
  }

  .form-section {
    padding: 18px 16px;
    margin-bottom: 24px;
  }

  .form-section h2 {
    font-size: 1.3rem;
    flex-wrap: wrap;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 16px;
    min-height: 44px;
    box-sizing: border-box;
  }

  .btn {
    min-height: 44px;
    padding: 12px 20px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .edit-container {
    padding: 12px 10px;
  }

  .edit-form {
    padding: 16px 12px;
  }

  .edit-header h1 {
    font-size: 1.35rem;
  }

  .form-section {
    padding: 14px 12px;
  }
}
