/* Forms CSS - Consolidated form styles for all templates */

/* Form Container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
}

/* Form Structure */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Form Labels */
.form-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

/* Form Inputs - Bootstrap 5 compatible */
.form input[type="number"],
.form input[type="date"],
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="time"],
.form input[type="datetime-local"],
.form textarea,
.form select,
.form input:not([type]),
.form-card input[type="number"],
.form-card input[type="date"],
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card textarea,
.form-card select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form input[type="number"]:focus,
.form input[type="date"]:focus,
.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="password"]:focus,
.form input[type="time"]:focus,
.form input[type="datetime-local"]:focus,
.form textarea:focus,
.form select:focus,
.form input:not([type]):focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form input::placeholder,
.form textarea::placeholder,
.form-card input::placeholder,
.form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Form Help Text */
.form-help {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Form Error Messages */
.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-actions--center {
  justify-content: center;
}

/* Buttons - Bootstrap 5 compatible */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn--primary,
.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn--primary:hover,
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn--secondary,
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--danger,
.btn-danger {
  background: #dc2626;
  color: white;
}

.btn--danger:hover,
.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* Delete Confirmation Styles */
.delete-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.delete-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
}

.delete-info {
  text-align: center;
  margin-bottom: 2rem;
}

.delete-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.delete-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.delete-description {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Entry Preview Styles */
.entry-preview,
.ftp-entry-preview,
.weight-entry-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  margin: 1.5rem 0;
}

.entry-item,
.ftp-entry-item,
.weight-entry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.entry-item:last-child,
.ftp-entry-item:last-child,
.weight-entry-item:last-child {
  border-bottom: none;
}

.entry-label,
.ftp-entry-label,
.weight-entry-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.entry-value,
.ftp-entry-value,
.weight-entry-value {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.delete-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.delete-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 0.5rem;
}

.page-header__subtitle {
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .form-container,
  .delete-container {
    padding: 1rem;
  }
  
  .form-card,
  .delete-card {
    padding: 1.5rem;
  }
  
  .form-actions,
  .delete-actions {
    flex-direction: column;
  }
  
  .form-actions .btn,
  .delete-actions .btn {
    width: 100%;
  }
  
  .page-header__content {
    padding: 0 1rem;
  }
  
  .page-header__title {
    font-size: 1.5rem;
  }
}

