.profile-container {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1a2e, #030305);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .profile-container {
  background: #f0f2f5;
}

.profile-header {
  background: rgba(3, 3, 5, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

[data-theme="light"] .profile-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--primary-glow);
}

[data-theme="light"] .brand {
  color: #00838f;
  text-shadow: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.input-disabled {
  background: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.nav-link {
  color: var(--fg-soft);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Fira Code', monospace;
  border: 1px solid transparent;
}

[data-theme="light"] .nav-link {
  color: #666;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(0, 243, 255, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

[data-theme="light"] .nav-link:hover {
  color: #00838f;
  background: rgba(0, 188, 212, 0.05);
  border-color: #00bcd4;
  box-shadow: none;
}

.logout-button {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--secondary);
  border-radius: 4px;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  font-size: 0.9rem;
}

[data-theme="light"] .logout-button {
  border: 1px solid #7b1fa2;
  color: #7b1fa2;
}

.logout-button:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

[data-theme="light"] .logout-button:hover {
  background: #7b1fa2;
  color: #fff;
  box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

.profile-main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-header-section {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-header-section h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--primary-glow);
}

[data-theme="light"] .profile-header-section h1 {
  color: #00838f;
  text-shadow: none;
}

.profile-header-section p {
  font-family: 'Fira Code', monospace;
  color: var(--fg-soft);
  font-size: 1rem;
}

.profile-form-container {
  background: rgba(3, 3, 5, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.05);
}

[data-theme="light"] .profile-form-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

[data-theme="light"] .profile-form-container::before {
  box-shadow: none;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .photo-section {
  border-bottom: 1px solid #eee;
}

.photo-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

[data-theme="light"] .profile-photo {
  border: 2px solid #00bcd4;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

.photo-upload-btn {
  position: absolute;
  bottom: 0;
  right: -10px;
  background: var(--bg-secondary);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  font-size: 0; /* Hide text, show icon only if needed, but here we have text inside label */
  overflow: hidden;
}

/* Adjusting for the text inside the label in the HTML */
.photo-upload-btn {
  width: auto;
  height: auto;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  right: 50%;
  transform: translateX(50%) translateY(50%);
  bottom: 0;
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

[data-theme="light"] .photo-upload-btn {
  background: #ffffff;
  border: 1px solid #00bcd4;
  color: #00bcd4;
}

.photo-upload-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px var(--primary-glow);
}

[data-theme="light"] .photo-upload-btn:hover {
  background: #00bcd4;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.photo-hint {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--fg-soft);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .form-field input,
[data-theme="light"] .form-field textarea {
  background: #ffffff;
  border: 1px solid #ccc;
  color: #333;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
  background: rgba(0, 243, 255, 0.02);
}

[data-theme="light"] .form-field input:focus,
[data-theme="light"] .form-field textarea:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
  background: #ffffff;
}

.form-field input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.01);
}

[data-theme="light"] .form-field input[readonly] {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

.form-field small {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--fg-soft);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.save-btn {
  flex: 1;
  padding: 0.85rem;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="light"] .save-btn {
  background: rgba(0, 188, 212, 0.1);
}

.save-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

[data-theme="light"] .save-btn:hover {
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.cancel-btn {
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-soft);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.profile-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
}

.profile-status.success {
  background: rgba(10, 255, 10, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  box-shadow: 0 0 15px rgba(10, 255, 10, 0.2);
}

.profile-status.error {
  background: rgba(255, 0, 60, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

@media (max-width: 768px) {
  .profile-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .profile-form-container {
    padding: 1.5rem;
  }

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