.profile-block {
  display: none;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 2em;
    color: #111;
    margin-bottom: 30px;
    font-weight: 700;
}

.profile-section {
    background-color: #f2f6ff;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-section h2 {
    font-size: 1.5em;
    color: #3a7afe;
    margin-bottom: 20px;
    border-bottom: 1px solid #d0d7e7;
    padding-bottom: 10px;
}

/* Информация */
.user-info p {
    margin-bottom: 10px;
    font-size: 1em;
    color: #333;
}

.user-info p strong {
    color: #000;
}

/* Кнопка редактирования */
.edit-profile-button {
    background-color: #3a7afe;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.edit-profile-button:hover {
    background-color: #2e6bc1;
}

/* Настройки */
.setting-item {
    margin-bottom: 20px;
}

.setting-button {
    background-color: #e8f0ff;
    color: #3a7afe;
    border: 1px solid #c3d4f7;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: left;
}

.setting-button:hover {
    background-color: #d0e1ff;
}

/* Переключатели */
.toggle-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.toggle-setting:last-child {
    border-bottom: none;
}

.toggle-setting label {
    color: #333;
    font-weight: 500;
}

.toggle-setting input[type="checkbox"] {
    appearance: none;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-setting input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-setting input[type="checkbox"]:checked {
    background-color: #3a7afe;
}

.toggle-setting input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.stat-item i {
    font-size: 2em;
    color: #3a7afe;
    margin-bottom: 10px;
}

.stat-item p {
    margin: 0;
    font-size: 0.95em;
    color: #444;
}

.stat-item p span {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    color: #000;
}

/* Кнопки действий */
.action-button.logout-button {
    background-color: #ff4c4c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
}

.action-button.logout-button:hover {
    background-color: #d94141;
}

.action-button.delete-account-button {
    background-color: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.action-button.delete-account-button:hover {
    background-color: #ea580c;
}

.profile-section.feedback {
  background-color: #f9fbff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3e8f0;
}

.profile-section.feedback h2 {
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.feedback-button,
.feedback-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #e0ecff;
  color: #1d4ed8;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  width: 100%;
  border: 1px solid transparent;
}

.feedback-button:hover,
.feedback-link:hover {
  background-color: #d0e3ff;
}

.profile-photo-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #3a7afe;
  background-color: #000; /* fallback */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.upload-photo-button {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: #3a7afe;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease;
}

.upload-photo-button:hover {
  background-color: #2e6bc1;
}

.profile-block {
  margin-bottom: 100px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 37, 41, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    color: #212529;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #0d6efd;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
}

.modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.modal-content input[type="text"],
.modal-content select,
#currentPassword,
#newPassword,
#confirmNewPassword
{
    width: 100%;
    padding: 10px 0px 10px 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    font-size: 15px;
    color: #212529;
    outline: none;
    transition: border 0.2s ease;
    margin-top: 10px;
}

.modal-content input[type="text"]:focus,
.modal-content select:focus {
    border-color: #0d6efd;
}

.modal-content button[type="submit"] {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #0d6efd;
    color: white;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-content button[type="submit"]:hover {
    background-color: #0b5ed7;
}

#bugDescription,#improvementSuggestion {
  width: 100%;
  min-height: 120px;
  max-height: 300px;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #4b5563;
  background-color: #f2f6ff;
  color: #f9fafb;
  resize: vertical;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#bugDescription:focus,#improvementSuggestion:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background-color: #929292;
  color: #ffffff;
}

