/* 📄 szkoly-uzytkownicy.css — style tylko dla stron użytkownika */

/* Główna sekcja formularza */
.user-profile-content {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem 1rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  }
  
  /* Tytuł sekcji */
  .user-profile-content h2,
  .user-profile-content h3,
  .user-profile-content h4 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
  }
  
  /* Pola formularza */
  .szkoly-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #f9f9f9;
  }
  
  .szkoly-input:disabled {
    background: #f2f2f2;
  }
  
  /* Przycisk */
  .szkoly-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 123, 254, 0.15);
  border: 1px solid rgba(23, 123, 254, 0.4);
  color: rgb(23, 123, 254);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, border 0.3s ease;
  cursor: pointer;
  height: 25px;
  line-height: 1.2;
  text-decoration: none;
}

.szkoly-login-button:hover {
  background: rgba(23, 123, 254, 0.3);
  border-color: rgba(23, 123, 254, 0.6);
  box-shadow: 0 0 6px rgba(23, 123, 254, 0.4);
}
  
  /* Mini marginesy i odstępy */
  .mt-10 {
    margin-top: 10px;
  }
  
  /* Avatar */
  .avatar-img,
  .avatar-preview,
  #avatarPreview {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Only show preview when image is selected */
  #avatarPreview:empty {
    display: none;
  }
  
  #avatarCanvas {
    margin-top: 10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 5px #aaa;
    display: none;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* When canvas has content, make it visible */
  #avatarCanvas.active {
    display: block !important;
  }
  
  /* Sekcja danych szkoły */
  .school-data-box {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f9f9f9;
  }
  
  .school-data-box input {
    background: #fff;
  }
  
  .school-name-toggle {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  /* Modal poprawki szkoły */
  #schoolChangeModal {
    margin-top: 1rem;
  }
  
  #schoolChangeText {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
  }

/* Nowe style dla avatara i układu formularza */

.avatar-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar-section input[type="file"] {
    display: block;
    margin: 0.5rem auto 0;
}

.avatar-change-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: #555;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-col-50 {
    flex: 1 1 48%;
}

.form-col-33 {
    flex: 1 1 30%;
}

.form-col-25 {
    flex: 1 1 22%;
}