/* ============================================
   USER PANEL - Editar Perfil y Cambiar Contraseña
   ============================================ */

.user-panel {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.user-panel-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

.user-panel-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.user-panel-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
}

.user-panel-tab.active {
  color: #23d160;
  border-bottom-color: #23d160;
}

.user-panel-tab svg {
  width: 18px;
  height: 18px;
}

.user-panel-content {
  padding: 0;
}

.user-panel-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 500px;
  margin: 0 auto;
}

.user-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.user-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(35, 209, 96, 0.1);
  border: 3px solid rgba(35, 209, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-large svg {
  color: rgba(35, 209, 96, 0.6);
}

.user-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #23d160;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 3px solid rgba(18, 21, 29, 0.95);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(35, 209, 96, 0.3);
}

.user-avatar-upload:hover {
  background: #12a14a;
  transform: scale(1.1);
}

.user-avatar-upload input {
  display: none;
}

.user-avatar-upload svg {
  color: #fff;
  width: 20px;
  height: 20px;
}

.user-avatar-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  border: 2px solid rgba(18, 21, 29, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  z-index: 10;
}

.user-avatar-remove:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

.user-avatar-remove svg {
  color: #fff;
  width: 16px;
  height: 16px;
}

.user-avatar-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.user-avatar-section p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
}

.user-panel-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-panel-form .form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.user-panel-form .form-field label svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.user-panel-form .form-field input,
.user-panel-form .form-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.user-panel-form .form-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.user-panel-form .form-field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(35, 209, 96, 0.5);
  box-shadow: 0 0 0 3px rgba(35, 209, 96, 0.1);
}

.user-panel-form .form-field input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

.user-panel-form .form-field small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: -4px;
}

.user-panel-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.user-panel-form .form-actions button {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #23d160 0%, #12a14a 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(35, 209, 96, 0.3);
}

.user-panel-form .form-actions button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 209, 96, 0.4);
}

.user-panel-form .form-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .user-panel-form {
    max-width: 100%;
  }

  .user-panel-tabs {
    flex-direction: column;
    gap: 0;
  }

  .user-panel-tab {
    width: 100%;
    justify-content: flex-start;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 12px 16px;
  }

  .user-panel-tab.active {
    border-left-color: #23d160;
    border-bottom-color: transparent;
    background: rgba(35, 209, 96, 0.1);
  }
}

