/* Mão na Massa – Modern Glassmorphism Design System */
:root {
  /* Nova paleta moderna - Gradient Purple/Blue */
  --mm-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --mm-primary-solid: #667eea;
  --mm-primary-600: #5a67d8;
  --mm-primary-700: #4c51bf;
  --mm-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --mm-accent-solid: #f093fb;
  
  /* Superfícies com glassmorphism */
  --mm-surface: rgba(255, 255, 255, 0.08);
  --mm-surface-hover: rgba(255, 255, 255, 0.12);
  --mm-surface-light: rgba(255, 255, 255, 0.15);
  --mm-glass: rgba(255, 255, 255, 0.1);
  --mm-glass-border: rgba(255, 255, 255, 0.2);
  
  /* Bordas e sombras */
  --mm-border: rgba(255, 255, 255, 0.15);
  --mm-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --mm-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --mm-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  
  /* Textos */
  --mm-text: #ffffff;
  --mm-text-600: #e2e8f0;
  --mm-text-muted: #a0aec0;
  
  /* Background com gradiente */
  --mm-bg: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --mm-bg-pattern: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                   radial-gradient(circle at 75% 75%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
  
  /* Estados */
  --mm-success: #48bb78;
  --mm-warning: #ed8936;
  --mm-error: #f56565;
  --mm-info: #4299e1;
  
  --mm-radius: 20px;
}
html,body{height:100%}

/* Design moderno com glassmorphism */
body {
  background: var(--mm-bg);
  background-attachment: fixed;
  color: var(--mm-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mm-bg-pattern);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Cards com glassmorphism */
.mm-card {
  background: var(--mm-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--mm-glass-border);
  box-shadow: var(--mm-shadow);
  border-radius: var(--mm-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.mm-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--mm-shadow-lg), var(--mm-glow);
  border-color: rgba(102, 126, 234, 0.3);
}

/* Botões modernos */
.btn-mm {
  background: var(--mm-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--mm-shadow);
}

.btn-mm::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-mm:hover::before {
  left: 100%;
}

.btn-mm:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--mm-shadow-lg), var(--mm-glow);
  color: white;
}

.btn-outline-mm {
  background: var(--mm-glass);
  backdrop-filter: blur(10px);
  border: 2px solid var(--mm-glass-border);
  color: var(--mm-text);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-mm:hover {
  background: var(--mm-primary);
  border-color: var(--mm-primary-solid);
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--mm-shadow-lg), var(--mm-glow);
}

/* Inputs modernos */
.form-control, .form-select {
  background: var(--mm-glass) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid var(--mm-glass-border) !important;
  color: var(--mm-text) !important;
  border-radius: var(--mm-radius) !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus, .form-select:focus {
  background: var(--mm-surface-light) !important;
  border-color: var(--mm-primary-solid) !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), var(--mm-glow) !important;
  color: var(--mm-text) !important;
  transform: translateY(-2px) !important;
}

.form-control::placeholder {
  color: var(--mm-text-muted) !important;
  font-weight: 400 !important;
}

.form-label {
  color: var(--mm-text) !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
}

.label-muted{color:var(--mm-text-600);font-weight:600}

/* Títulos modernos */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--mm-text-600);
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

.headline {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Badges modernos */
.badge {
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-soft-primary {
  background: rgba(102, 126, 234, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Navbar moderno */
.navbar.mm {
  background: var(--mm-glass) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border-bottom: 1px solid var(--mm-glass-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.navbar-brand.mm {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--mm-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.navbar-brand.mm:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--mm-text-600) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 25px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

.nav-link:hover {
  color: var(--mm-text) !important;
  background: var(--mm-surface-hover) !important;
  transform: translateY(-2px) !important;
}

.nav-link.active {
  background: var(--mm-primary) !important;
  color: white !important;
}

/* Alerts modernos */
.alert {
  border: none;
  border-radius: var(--mm-radius);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 var(--mm-radius) var(--mm-radius) 0;
}

.alert-success {
  background: rgba(72, 187, 120, 0.15);
  color: #68d391;
  box-shadow: 0 8px 32px rgba(72, 187, 120, 0.2);
}

.alert-success::before {
  background: linear-gradient(180deg, #48bb78, #38a169);
}

.alert-danger {
  background: rgba(245, 101, 101, 0.15);
  color: #fc8181;
  box-shadow: 0 8px 32px rgba(245, 101, 101, 0.2);
}

.alert-danger::before {
  background: linear-gradient(180deg, #f56565, #e53e3e);
}

.alert-info {
  background: rgba(66, 153, 225, 0.15);
  color: #63b3ed;
  box-shadow: 0 8px 32px rgba(66, 153, 225, 0.2);
}

.alert-info::before {
  background: linear-gradient(180deg, #4299e1, #3182ce);
}

/* Chat bubbles modernos */
.chat-bubble {
  max-width: 70%;
  padding: 1rem 1.5rem;
  border-radius: var(--mm-radius);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble.me {
  background: var(--mm-primary);
  color: white;
  margin-left: auto;
}

.chat-bubble.other {
  background: var(--mm-glass);
  color: var(--mm-text);
}

/* Overrides Bootstrap */
.bg-white {
  background: var(--mm-glass) !important;
  color: var(--mm-text) !important;
  backdrop-filter: blur(20px) !important;
}

.list-group-item {
  background: var(--mm-glass) !important;
  color: var(--mm-text) !important;
  border-color: var(--mm-glass-border) !important;
  border-radius: 12px !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.3s ease !important;
}

.list-group-item:hover {
  background: var(--mm-surface-hover) !important;
  transform: translateX(8px) !important;
}

.dropdown-menu {
  background: var(--mm-glass) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--mm-glass-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--mm-shadow-lg) !important;
  padding: 0.5rem !important;
}

.dropdown-item {
  color: var(--mm-text) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  margin: 0.25rem 0 !important;
  transition: all 0.3s ease !important;
}

.dropdown-item:hover {
  background: var(--mm-surface-hover) !important;
  color: var(--mm-text) !important;
  transform: translateX(4px) !important;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--mm-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mm-primary-600);
}

/* Responsividade */
@media (max-width: 768px) {
  .headline {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-mm, .btn-outline-mm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Auth Pages Styles */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-primary);
}

.auth-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-card.register-card {
  max-width: 600px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-upload-section {
  margin-bottom: 24px;
}

.site-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.site-logo img {
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
  transition: all 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.profile-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-upload-input {
  display: none;
}

.profile-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-upload-label:hover .profile-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-avatar.login-avatar {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-upload-label:hover .profile-avatar::after {
  opacity: 1;
}

.upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.upload-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
  background-clip: text;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.auth-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.alert-item {
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.alert-item:last-child {
  margin-bottom: 0;
}

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

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

.form-group.half {
  flex: 1;
}

.form-group.flex-1 {
  flex: 1;
}

.form-group.flex-2 {
  flex: 2;
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.form-label {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.12);
}

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

.form-input[type="file"] {
  display: none;
}

.user-type-selector {
  display: flex;
  gap: 8px;
}

.type-option {
  flex: 1;
  position: relative;
}

.type-option input[type="radio"] {
  display: none;
}

.type-option label {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.type-option.active label,
.type-option input:checked + label {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  color: var(--text-primary);
}


.file-upload {
  position: relative;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-label:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
}

.file-text {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.file-status {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.address-section,
.professional-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1rem;
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.terms-section {
  margin: 8px 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.checkbox-container input:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-container a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-container a:hover {
  text-decoration: underline;
}

.form-link {
  text-align: center;
  margin: 8px 0;
}

.link-muted {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.link-muted:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.auth-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
}

.link-primary {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: underline;
}

/* Utilities */
.mm-blur-bg {
  position: relative;
  min-height: 100vh;
}

.text-gradient {
  background: var(--mm-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  background: var(--mm-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--mm-glass-border);
}

/* Componentes especiais */
.feature-card {
  background: var(--mm-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--mm-glass-border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mm-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: var(--mm-shadow-lg), var(--mm-glow);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--mm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mm-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--mm-glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mm-text);
  margin-bottom: 2rem;
  animation: chipGlow 3s ease-in-out infinite;
}

@keyframes chipGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.3); }
  50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5), 0 0 30px rgba(240, 147, 251, 0.3); }
}

/* Delays para animações */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Tables & lists */
.table-mm thead th{color:var(--mm-text-600); font-weight:600}
.table-mm tbody td{color:var(--mm-text-900)}

/* Bootstrap overrides for dark */
.bg-white{background:#0f172a !important; color:var(--mm-text-900)}
.border{border-color:var(--mm-border) !important}
.list-group-item{background:#0f172a;color:var(--mm-text-900);border-color:var(--mm-border)}
.table{color:var(--mm-text-900)}
.page-link{background:#0f172a;color:var(--mm-text-900);border-color:var(--mm-border)}
.page-item.active .page-link{background:var(--mm-primary-600);color:#0b1220;border-color:transparent}
.page-link:hover{border-color:var(--mm-primary-600);color:var(--mm-primary-600)}
a{color:var(--mm-primary-600)}
a:hover{color:var(--mm-primary-700)}

/* Footer */
.footer-mm{color:var(--mm-text-600)}

/* Hero section */
.hero{
  position: relative;
  padding: 5rem 0 3rem;
}
.hero .orb{position:absolute;inset:-120px auto auto 50%;width:700px;height:700px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(90,162,255,.15),transparent 60%);filter:blur(30px);z-index:-1}
.hero .headline{font-size:clamp(2rem,3.5vw,3.2rem);font-weight:900;letter-spacing:-.03em}
.hero .sub{font-size:clamp(1rem,1.2vw,1.1rem)}
.chip{border:1px solid #233044;background:#0f172a;color:var(--mm-text-900);border-radius:999px;padding:.5rem 1rem;display:inline-flex;align-items:center;gap:.5rem}
.chip i{color:var(--mm-primary-600)}

/* Alerts tuned for dark default */
.alert{border-radius:12px;border:1px solid var(--mm-border);background:#0f172a;color:var(--mm-text-900)}
.alert-success{border-color:#14532d;background:#052e16;color:#86efac}
.alert-danger{border-color:#7f1d1d;background:#3f0a0a;color:#fca5a5}
.alert-info{border-color:#1d4ed8;background:#0b1220;color:#93c5fd}
.alert-warning{border-color:#854d0e;background:#3f2d0c;color:#fcd34d}

/* Light mode (optional, if OS prefers) */
@media (prefers-color-scheme: light){
  :root{
    --mm-bg-start:#eef5ff;
    --mm-bg-end:#dae8ff;
    --mm-primary-700:#0b5ed7;
    --mm-primary-600:#0d6efd;
    --mm-primary-500:#2a7bff;
    --mm-text-900:#0f172a;
    --mm-text-600:#475569;
    --mm-surface:#ffffffcc; /* glass */
    --mm-border:#e5e7eb;
    --mm-shadow:0 12px 40px rgba(13,110,253,.12);
  }
  body{color:var(--mm-text-900);background:linear-gradient(120deg,var(--mm-bg-start),var(--mm-bg-end))}
  .form-control,.form-select{background:#fff;color:#0f172a;border-color:#e6eaf2}
  .chat-bubble.other{background:#fff;border:1px solid #eef2f7;color:#0f172a}
  .badge-soft-primary{background:#e8f0ff;color:var(--mm-primary-700)}
  .navbar.mm{background:transparent !important;border-bottom:1px solid rgba(0,0,0,.06)}
  .alert{background:#ffffff;color:#0f172a;border-color:#e6eaf2}
  .alert-success{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
  .alert-danger{background:#fef2f2;color:#7f1d1d;border-color:#fecaca}
  .alert-info{background:#eff6ff;color:#1e3a8a;border-color:#bfdbfe}
  .alert-warning{background:#fffbeb;color:#854d0e;border-color:#fde68a}
}

/* Manual theme override using classes on <html> */
html.theme-dark{
  --mm-bg-start:#0b1220;
  --mm-bg-end:#0e1526;
  --mm-primary-700:#5aa2ff;
  --mm-primary-600:#87b6ff;
  --mm-primary-500:#a7c6ff;
  --mm-text-900:#e5e7eb;
  --mm-text-600:#9aa3af;
  --mm-surface:#0f172acc;
  --mm-border:#1f2937;
  --mm-shadow:0 12px 40px rgba(16,24,40,.35);
}
html.theme-light{
  --mm-bg-start:#eef5ff;
  --mm-bg-end:#dae8ff;
  --mm-primary-700:#0b5ed7;
  --mm-primary-600:#0d6efd;
  --mm-primary-500:#2a7bff;
  --mm-text-900:#0f172a;
  --mm-text-600:#475569;
  --mm-surface:#ffffffcc;
  --mm-border:#e5e7eb;
  --mm-shadow:0 12px 40px rgba(13,110,253,.12);
}

/* Text Color Fixes - Override Bootstrap text-muted and ensure all text is white */
.text-muted,
.small.text-muted,
.subtitle,
.small {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Category and content text fixes */
.fw-bold,
.fw-semibold,
.section-title,
.cat-name,
.cat-desc {
  color: white !important;
}

/* Chat specific text fixes */
.conversation-item .small,
.conversation-item .text-muted,
.chat-bubble .small.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Badge text fixes */
.badge.bg-light.border.text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* General text color overrides */
.card-body,
.card-header,
.mm-card {
  color: white;
}

/* Ensure all text elements are white by default */
body,
p,
div,
span,
h1, h2, h3, h4, h5, h6 {
  color: white;
}

/* Override any remaining dark text */
.text-dark,
.text-black {
  color: white !important;
}

/* Professional profile and service request text */
.small span,
.small .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Notification text */
.notification-item .small,
.notification-item .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Header brand text fix */
.navbar-brand,
.navbar-brand span,
.navbar-brand:hover,
.navbar-brand:focus {
  color: white !important;
}

/* Auth page text and button fixes */
.auth-title,
.auth-subtitle,
.form-label,
.section-title,
.upload-title,
.upload-subtitle,
.form-hint {
  color: white !important;
}

.auth-btn,
.link-primary,
.link-muted {
  color: white !important;
}

.auth-btn {
  background: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
}

.auth-btn:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.link-primary {
  color: var(--primary-color) !important;
}

.link-primary:hover {
  color: var(--primary-hover) !important;
}

.checkbox-container {
  color: white !important;
}

.checkbox-container a {
  color: var(--primary-color) !important;
}

/* Hero Image Styles */
.hero-image-container {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 71, 255, 0.2);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 71, 255, 0.1) 0%, 
    rgba(0, 71, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    var(--primary-color), 
    rgba(255, 255, 255, 0.3), 
    var(--primary-color));
  border-radius: 22px;
  z-index: -1;
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-image-container {
    min-height: 400px;
    margin-top: 3rem;
  }
  
  .hero-image-wrapper {
    transform: none;
  }
  
  .hero-image-wrapper:hover {
    transform: scale(1.02);
  }
}
