/* Modale base */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* h1 a sinistra, bottone a destra */
  margin-bottom: 30px;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  color: #345d1a;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

/* === ABOUT ADMIN SECTION === */
.about-admin-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e9ecef;
}

.about-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e9ecef;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #FF6B35;
}

.tab-btn.active {
  color: #FF6B35;
  border-bottom-color: #FF6B35;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.about-card h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 24px 0 16px;
}

.about-form {
  margin-bottom: 20px;
}

.current-image-preview {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
}

.current-image-preview img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.current-image-preview.small img {
  max-width: 150px;
  max-height: 150px;
}

.no-image {
  padding: 60px 20px;
  background: #e9ecef;
  border-radius: 12px;
  font-size: 3rem;
  color: #adb5bd;
}

.image-status {
  margin-top: 12px;
  font-weight: 600;
  color: #28a745;
}

.about-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  margin-top: 16px;
}

.about-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-form input[type="file"]:hover {
  border-color: #FF6B35;
  background: rgba(255, 107, 53, 0.05);
}

.help-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 8px 0 16px;
  font-style: italic;
}

.btn-upload {
  background: #FF6B35;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.btn-upload:hover {
  background: #ff8c61;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.form-divider {
  margin: 40px 0;
  border: none;
  border-top: 2px solid #e9ecef;
}

.gear-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.gear-upload-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.gear-upload-item h4 {
  font-size: 0.95rem;
  margin: 0 0 12px 0;
  color: #333;
}

.gear-upload-item input[type="file"] {
  font-size: 0.85rem;
  padding: 8px;
}

@media (max-width: 768px) {
  .about-tabs {
    flex-direction: column;
    gap: 0;
  }

  .tab-btn {
    border-bottom: 1px solid #e9ecef;
    border-left: 3px solid transparent;
  }

  .tab-btn.active {
    border-bottom-color: #e9ecef;
    border-left-color: #FF6B35;
  }

  .gear-items-grid {
    grid-template-columns: 1fr;
  }
}