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

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.profile-picture-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary);
}

.profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture-placeholder {
  font-size: 3rem;
  color: var(--primary);
  font-weight: 600;
}

.profile-picture-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: var(--shadow);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.profile-email {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.profile-tab {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.profile-tab:hover:not(.active) {
  color: var(--text);
  border-bottom-color: var(--border);
}

.profile-content {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

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

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-group .form-control:disabled {
  background-color: var(--secondary);
  cursor: not-allowed;
}

.form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.file-input {
  display: none;
}

/* Telegram settings */
.telegram-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.telegram-status-text {
  font-weight: 500;
  color: var(--text);
}

.telegram-status-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.telegram-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.telegram-switch input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.telegram-time-row {
  flex-wrap: wrap;
}

.telegram-time-group.hidden {
  display: none;
}

/* Dark mode styles */
.dark-mode .profile-content {
  background-color: var(--dark);
}

.dark-mode .profile-name,
.dark-mode .profile-section-title {
  color: #e2e8f0;
}

.dark-mode .profile-picture-container {
  border-color: var(--primary-light);
}

.dark-mode .profile-picture-placeholder {
  color: var(--primary-light);
}

.dark-mode .profile-tabs {
  border-bottom-color: #475569;
}

.dark-mode .profile-section-title {
  border-bottom-color: #475569;
}

.dark-mode .form-group label {
  color: #e2e8f0;
}

.dark-mode .form-group .form-control {
  background-color: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

.dark-mode .form-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.dark-mode .form-group .form-control:disabled {
  background-color: #334155;
}

.dark-mode .form-text {
  color: #94a3b8;
}

/* Responsive styles */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .form-row {
    flex-direction: column;
  }
}
