/* Profile Container */
.profile-container {
  background: var(--bg-color, #232323);
  color: var(--text-color, #fff);
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

/* Ensure all buttons are clickable */
button {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

/* Header Actions */
.profile-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-header-actions button {
  background: var(--primary-color, #4f8cff);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.profile-header-actions .back-button {
  background: transparent;
  color: var(--text-color, #fff);
  padding-left: 0;
  min-width: auto;
}

.profile-header-actions .back-button:hover {
  transform: translateX(-3px);
}

.profile-header-actions button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Edit Actions */
.edit-actions {
  display: none;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.edit-actions.show {
  display: flex;
}

.edit-action-btn {
  background: var(--accent-color, #ffb84f);
  color: var(--text-dark, #232323);
  border: none;
  border-radius: 15px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-action-btn:hover {
  background: var(--accent-hover, #e09e2f);
  color: #fff;
}

/* Profile Info */
.profile-info {
  background: var(--bg-secondary, #2a2a2a);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.profile-info h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

/* Profile Details */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  position: relative;
  background: var(--bg-color, #232323);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar svg {
  width: 60px;
  height: 60px;
}

.profile-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.field-icon {
  font-size: 1.2em;
  vertical-align: middle;
}

/* Actions Section */
.action-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--nav-hover);
}

.action-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Action Buttons and Groups */
.action-group {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color, #444);
}

.action-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  background: var(--button-bg, #333);
  color: var(--text-color, #fff);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-button .icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.action-button:hover {
  background: var(--button-hover, #444);
  transform: translateY(-1px);
}

.action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-button.primary {
  background: var(--primary-color);
  color: #fff;
}

.action-button.warning {
  background: #ffb84f;
  color: #232323;
}

.action-button.danger {
  background: #ff6b6b;
  color: #fff;
}

.danger-button {
  background: var(--danger-color, #ff6b6b);
  color: #fff;
}

.danger-button:hover {
  background: var(--danger-hover, #ff5252);
}

.feedback-link {
  text-decoration: none;
  color: inherit;
}

/* Version Info */
.version-info {
  margin-top: 2rem;
  font-size: 0.95em;
  opacity: 0.7;
  text-align: center;
}

/* Modal */
.version-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-color, #232323);
  padding: 2rem;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  position: relative;
  color: var(--text-color, #fff);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-color, #fff);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.version-history {
  text-align: left;
  margin-top: 1rem;
}

.version-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color, #444);
}

.version-item:last-child {
  border-bottom: none;
}

/* Base and Light Mode Colors */
:root {
  --bg-color: #232323;
}

body.light-mode {
  --bg-color: #fff;
}
