/* Account Page Styles - Tailwind-based design */

/* Override Tailwind for dark mode compatibility */
body.theme-dark .bg-slate-50 {
  background-color: #1e293b !important;
}

body.theme-dark .bg-white {
  background-color: #1e293b !important;
}

body.theme-dark .text-slate-900 {
  color: #f1f5f9 !important;
}

body.theme-dark .text-slate-700 {
  color: #cbd5e1 !important;
}

body.theme-dark .text-slate-500 {
  color: #94a3b8 !important;
}

body.theme-dark .text-slate-400 {
  color: #64748b !important;
}

body.theme-dark .text-slate-600 {
  color: #94a3b8 !important;
}

body.theme-dark .border-slate-100 {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-dark .border-slate-200 {
  border-color: rgba(148, 163, 184, 0.3) !important;
}

body.theme-dark .bg-slate-50 {
  background-color: #0f172a !important;
}

body.theme-dark .hover\:bg-white:hover {
  background-color: #334155 !important;
}

body.theme-dark .focus\:bg-white:focus {
  background-color: #334155 !important;
}

body.theme-dark .bg-red-50 {
  background-color: rgba(254, 226, 226, 0.1) !important;
}

body.theme-dark .bg-emerald-50 {
  background-color: rgba(209, 250, 229, 0.1) !important;
}

body.theme-dark .bg-amber-50 {
  background-color: rgba(254, 243, 199, 0.1) !important;
}

body.theme-dark .bg-blue-50 {
  background-color: rgba(239, 246, 255, 0.1) !important;
}

/* Legacy support - keep old classes working */
.account-page-container {
  min-height: calc(100vh - 100px);
  padding: 40px 20px;
}

.account-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--es-bg-card, #fff);
  border-radius: var(--es-card-radius, 18px);
  padding: 32px;
  box-shadow: var(--es-card-shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
}

body.theme-dark .account-card {
  background: var(--es-bg-card, #1e293b);
  border: 1px solid var(--es-border-subtle, rgba(148, 163, 184, 0.2));
}

.account-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--es-text-strong, #1f2933);
}

body.theme-dark .account-title {
  color: var(--es-text-strong, #f9fafb);
}

.account-section {
  margin-bottom: 24px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: var(--es-text-strong, #374151);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--es-border-subtle, #e5e7eb);
}

body.theme-dark .section-title {
  color: var(--es-text-strong, #d1d5db);
  border-bottom-color: var(--es-border-subtle, #374151);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

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

.profile-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--es-text-muted, #6b7280);
}

body.theme-dark .profile-field label {
  color: var(--es-text-muted, #9ca3af);
}

.profile-value {
  font-size: 16px;
  color: var(--es-text-main, #1f2933);
  padding: 12px;
  background: var(--es-bg-surface, #f9fafb);
  border-radius: 8px;
}

body.theme-dark .profile-value {
  background: var(--es-bg-surface, #111827);
  color: var(--es-text-main, #f9fafb);
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-edit-form .form-group:last-of-type {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--es-text-label, #374151);
}

body.theme-dark .form-group label {
  color: var(--es-text-label, #d1d5db);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--es-border-subtle, #e5e7eb);
  border-radius: 8px;
  font-size: 16px;
  background: var(--es-bg-surface, #fff);
  color: var(--es-text-main, #1f2933);
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .form-group input,
body.theme-dark .form-group select {
  background: var(--es-bg-surface, #1e293b);
  border-color: var(--es-border-subtle, rgba(148, 163, 184, 0.2));
  color: var(--es-text-main, #e5e7eb);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--es-accent-blue, #667eea);
}

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

.edit-btn,
.save-btn,
.cancel-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-btn {
  background: var(--es-accent-blue, #667eea);
  color: white;
  align-self: flex-start;
  margin-top: 8px;
}

.edit-btn:hover {
  background: #5568d3;
}

.save-btn {
  background: var(--es-accent-green, #22c55e);
  color: white;
  flex: 1;
}

.save-btn:hover:not(:disabled) {
  background: #16a34a;
}

.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cancel-btn {
  background: var(--es-bg-surface, #e5e7eb);
  color: var(--es-text-main, #374151);
  flex: 1;
}

body.theme-dark .cancel-btn {
  background: var(--es-bg-surface, #374151);
  color: var(--es-text-main, #f9fafb);
}

.cancel-btn:hover:not(:disabled) {
  opacity: 0.8;
}

.logout-btn {
  width: 100%;
  padding: 12px 24px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 24px;
}

.logout-btn:hover {
  background: #dc2626;
}

.account-message {
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.account-message:last-child {
  margin-bottom: 0;
}

.account-error {
  background: #fee2e2;
  color: #dc2626;
}

.account-success {
  background: #d1fae5;
  color: #065f46;
}

.account-loading {
  text-align: center;
  padding: 40px;
  color: var(--es-text-muted, #6b7280);
}

.account-email-confirm {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.account-email-confirm strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.resend-confirmation-btn {
  margin-top: 12px;
  padding: 10px 20px;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.resend-confirmation-btn:hover:not(:disabled) {
  background: #d97706;
}

.resend-confirmation-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}
