:root {
  /* Professional Commercial Color Scheme */
  
  /* Primary Brand Colors - Deep Professional Blues */
  --primary-navy: #0f172a;        /* Slate 900 - Deep professional navy */
  --primary-dark: #1e293b;        /* Slate 800 - Rich dark blue */
  --primary-medium: #334155;      /* Slate 700 - Medium professional blue */
  --primary-light: #f8fafc;       /* Slate 50 - Clean light background */
  --primary-lighter: #f1f5f9;     /* Slate 100 - Subtle background */
  
  /* Secondary Brand Colors - Modern Teals & Professional Greens */
  --secondary-teal: #0d9488;      /* Teal 600 - Professional teal */
  --secondary-emerald: #059669;   /* Emerald 600 - Success green */
  --secondary-cyan: #0891b2;      /* Cyan 600 - Info blue */
  
  /* Accent Colors - Professional Orange/Amber for CTAs */
  --accent-primary: #dc2626;      /* Red 600 - Important actions */
  --accent-secondary: #ea580c;    /* Orange 600 - Secondary actions */
  --accent-tertiary: #d97706;     /* Amber 600 - Highlights */
  
  /* Legacy Support - Map old variables to new ones */
  --accent-blue: var(--secondary-cyan);
  --accent-orange: var(--accent-secondary);
  --text-dark: #111827;
  --text-light: #6b7280;
  --border-light: #f3f4f6;
  --white: #ffffff;
  
  /* Professional Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Professional Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-medium) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-teal) 0%, var(--secondary-cyan) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
}

.auth-errors {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.edit-profile-wrapper {
  max-width: 500px;
  margin: 30px auto;
  background: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
}
.edit-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
.edit-form input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
}
.edit-form button {
  margin-top: 20px;
  padding: 10px;
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

















/* Dropdown Wrapper */
.dropdown {
  position: relative;
  display: inline-block;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Username Button */
.dropdown-toggle {
  background: var(--accent-blue);
  color: white;
  padding: 10px 18px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.dropdown-toggle:hover {
  background: var(--primary-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 240px;
  padding: 0;
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Menu Items */
.dropdown-menu a,
.dropdown-menu form button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-dark) !important;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Hover Effect */
.dropdown-menu a:hover,
.dropdown-menu form button:hover {
  background: var(--primary-light);
  color: var(--accent-blue) !important;
  padding-left: 24px;
}

/* Show Class */
.dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Header Styles */
.dropdown-header {
  padding: 15px 20px 10px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border-light);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-name {
  font-weight: 600;
  color: var(--text-dark) !important;
  font-size: 14px;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-light) !important;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

/* Ensure dropdown items have proper text color */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark) !important;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--accent-blue) !important;
  padding-left: 24px;
}

.dropdown-item.logout-item:hover {
  background: #fee2e2;
  color: #dc2626 !important;
}









.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.auth-form label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form input {
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  width: 100%;
  background: var(--white);
  color: var(--text-dark);
  transition: all 0.3s ease;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.auth-form input::placeholder {
  color: var(--text-light);
}

.auth-options {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.forgot-password-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.auth-form button {
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-transform: none;
  letter-spacing: 0.5px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.auth-form button:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.auth-form button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Error box */
.auth-errors {
  background: #ffeded;
  border-left: 5px solid #e53935;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  color: #c62828;
  font-size: 14px;
}

/* Social Buttons */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: var(--text-dark);
  text-decoration: none;
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.google-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.auth-or {
  text-align: center;
  margin: 20px 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-light);
  position: relative;
}

.auth-or::before,
.auth-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-light);
}

.auth-or::before {
  left: 0;
}

.auth-or::after {
  right: 0;
}

/* Modern Profile Edit Page */
.modern-profile-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.profile-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite;
}

.profile-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 1;
}

.profile-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 1;
}

.profile-form-container {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Profile Picture Section */
.profile-picture-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.current-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border-light);
  transition: all 0.3s ease;
}

.current-avatar:hover {
  border-color: var(--accent-blue);
  transform: scale(1.05);
}

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

.avatar-placeholder-large {
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.current-avatar:hover .avatar-overlay {
  opacity: 1;
}

.upload-section {
  flex: 1;
  min-width: 200px;
}

.file-input {
  display: none;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.upload-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

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

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input {
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-dark);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cancel-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-medium);
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.cancel-btn:hover {
  background: var(--primary-light);
  color: var(--text-dark);
  border-color: var(--accent-blue);
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-picture-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .profile-form-container {
    padding: 25px;
  }
  
  .profile-header {
    padding: 30px 20px;
  }
  
  .profile-title {
    font-size: 24px;
  }
}

