/* Garage Info Page Styles - Professional Layout */

.garage-page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.garage-page-header h1 {
  margin: 0;
  text-align: center;
  grid-column: 2;
  color: white;
  font-size: 1.5rem;
}

.header-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.logo-link:hover {
  transform: scale(1.05);
}

.back-arrow {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.logo-small {
  height: 40px;
  width: auto;
  display: block;
}

/* Container */
.garage-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Info Banner */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
}

.info-icon {
  width: 28px;
  height: 28px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-content strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Form Layout - Two Columns */
.garage-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Sections */
.form-section {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.section-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: #ef4444;
}

.form-group input {
  padding: 14px 16px;
  font-size: 0.95rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.input-mono {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  letter-spacing: 1px;
}

/* Inline Row */
.form-row-inline {
  display: flex;
  gap: 16px;
}

.form-row-inline .form-group {
  flex: 1;
}

/* Bank Notice */
.bank-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 8px;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.notice-icon {
  font-size: 1rem;
}

/* Logo Upload */
.logo-upload-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.logo-preview {
  width: 120px;
  height: 120px;
  background: var(--bg-tertiary);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.logo-preview:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

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

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.logo-placeholder span:last-child {
  font-size: 0.8rem;
}

.logo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.logo-upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-remove-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-logo:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.logo-specs {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

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

.btn-cancel {
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

/* Success Message */
.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  color: #10b981;
  font-weight: 600;
  font-size: 1rem;
  animation: successPop 0.4s ease;
}

.success-icon {
  width: 28px;
  height: 28px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row-inline {
    flex-direction: column;
  }

  .logo-upload-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-info {
    align-items: center;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-save, .btn-cancel {
    width: 100%;
    justify-content: center;
  }

  .garage-page-header {
    grid-template-columns: auto 1fr auto;
  }

  .garage-page-header h1 {
    font-size: 1.2rem;
  }
}
