/* Ultimate Analytics Dashboard - Unified Functionality with Premium Styling */
/* Combines comprehensive sections of Unified dashboard with Premium dark luxury theme */

.ultimate-dashboard {
  min-height: 100vh;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #1D4ED8 100%);
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  display: flex;
}

/* Enhanced Premium Sidebar - Fixed Width & Readability */
.ultimate-sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.9) 100%);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(226, 232, 240, 0.25);
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Removed collapsed state - sidebar should always be expanded for readability */
.ultimate-sidebar.collapsed {
  width: 260px !important;
  /* Keep sidebar expanded */
}

.sidebar-header {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.2);
  text-align: center;
  background: rgba(226, 232, 240, 0.05);
  min-height: auto;
}

.sidebar-toggle {
  display: none !important; /* Hide toggle button - sidebar always expanded */
}

.sidebar-toggle:hover {
  background: rgba(226, 232, 240, 0.1);
}

.sidebar-nav {
  padding: 24px 0;
}

.sidebar-nav-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav-section:last-child {
  border-bottom: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: #F9FAFB;  /* Brighter white for better readability */
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid transparent;
  font-size: 15px;
  gap: 14px;
  margin: 4px 0;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(10px);
}

.sidebar-nav-item:hover {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.25) 0%, rgba(226, 232, 240, 0.12) 100%);
  color: #F8FAFC;
  border-left-color: #CBD5E1;
  border-left-width: 6px;
  transform: translateX(8px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
              0 4px 12px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(226, 232, 240, 0.1);
}

.sidebar-nav-item:hover .sidebar-nav-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(226, 232, 240, 0.5));
}

.sidebar-nav-item:hover .sidebar-nav-text {
  transform: translateX(2px);
  font-weight: 600;
}

.sidebar-nav-item:active {
  transform: translateX(4px) scale(0.98);
  transition: all 0.1s ease;
}

.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.4) 0%, rgba(226, 232, 240, 0.2) 100%);
  color: #FFFFFF;
  border-left-color: #E2E8F0;
  border-left-width: 6px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%);
  box-shadow: 0 0 15px rgba(226, 232, 240, 0.6);
}

/* Removed blue dot indicator - was covering text and looked bad */
.sidebar-nav-item.active::after {
  content: '';
  display: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Progress Status Styles */
.sidebar-nav-item.completed {
  border-left: 3px solid #10B981;
}

.sidebar-nav-item.completed:not(.active) {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
  color: #F0FDF4;
}

.sidebar-nav-item.completed:not(.active):hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-left-color: #10B981;
  border-left-width: 5px;
}

.sidebar-nav-item.unvisited {
  opacity: 0.7;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item.unvisited:hover {
  opacity: 1;
}

.sidebar-nav-icon {
  width: 24px;
  height: 24px;
  opacity: 1;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-nav-text {
  font-weight: 500;
  letter-spacing: 0.3px;
  flex: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Keep text always visible */
.ultimate-sidebar.collapsed .sidebar-nav-text {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Main Content Area - Adjusted for wider sidebar */
.ultimate-content {
  margin-left: 260px !important;
  width: calc(100% - 260px) !important;
  min-height: 100vh;
  padding: 0 0 80px 0;  /* Added bottom padding to prevent last section from being hidden */
  position: relative;
  overflow-x: hidden;
}

/* Keep content margin consistent */
.ultimate-sidebar.collapsed + .ultimate-content {
  margin-left: 260px !important;
  width: calc(100% - 260px) !important;
}

/* Executive Decision Dashboard - Refined Premium Style */
.executive-decision-premium {
  background: rgba(30, 58, 138, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.25);
  border-radius: 0;
  padding: 60px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.executive-decision-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E2E8F0, #CBD5E1, #94A3B8);
}

.deal-score-container-premium {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.deal-score-wheel-premium {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.deal-score-details-premium {
  flex: 1;
}

.deal-score-value-premium {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.deal-recommendation-premium {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.recommendation-buy {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.recommendation-hold {
  background: linear-gradient(135deg, #F59E0B, #CBD5E1);
  color: white;
}

.recommendation-pass {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
}

/* Property Overview - Premium Hero Section */
.property-overview-premium {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.12) 0%, rgba(30, 58, 138, 0.9) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  border-radius: 0;
  padding: 80px 60px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.property-overview-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
  animation: shimmer 3s infinite;
}

.property-icon-premium {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #000;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(226, 232, 240, 0.25);
}

.property-details-premium {
  flex: 1;
}

.property-address-premium {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: -0.5px;
  color: #E2E8F0 !important;
}

/* High specificity overrides for Ultimate dashboard */
.ultimate-dashboard .property-address-premium {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #E2E8F0 !important;
}

.ultimate-dashboard .property-price-premium {
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
  color: #1E293B !important;
}

.property-meta-premium {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.property-price-premium {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
}

.property-spec {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.investment-grade-premium {
  text-align: center;
  padding: 16px;
  background: rgba(226, 232, 240, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.grade-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 4px;
}

.grade-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

/* Analysis Sections Grid - Better Spacing */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: rgba(226, 232, 240, 0.1);
}

.analysis-section-premium {
  background: #ffffff;
  backdrop-filter: blur(15px);
  padding: 60px;
  position: relative;
  border: none;
  min-height: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.analysis-section-premium:nth-child(odd) {
  border-right: none;
}

.analysis-section-premium:nth-child(n+3) {
  border-top: none;
}

.section-title-premium {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.5px;
}

.section-icon {
  font-size: 1.2em;
}

/* Metrics Display */
.metrics-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.metric-card-premium {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(29, 78, 216, 0.95) 100%);
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.metric-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card-premium:hover {
  border-color: rgba(226, 232, 240, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(226, 232, 240, 0.15);
}

.metric-card-premium:hover::before {
  opacity: 1;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #D1D5DB;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F9FAFB;
  margin-bottom: 4px;
}

.metric-change {
  font-size: 14px;
  font-weight: 600;
}

.metric-change.positive {
  color: #10B981;
}

.metric-change.negative {
  color: #EF4444;
}

/* Risk and Opportunity Analysis */
.risk-opportunity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 36px 0;
}

.risk-card, .opportunity-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.risk-card {
  border-left-color: #EF4444;
}

.opportunity-card {
  border-left-color: #10B981;
}

.risk-title, .opportunity-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-item, .opportunity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.risk-item:last-child, .opportunity-item:last-child {
  border-bottom: none;
}

/* Quick Actions - Premium Buttons */
.quick-actions-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.action-button-premium {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.2), rgba(203, 213, 225, 0.1));
  border: 1px solid rgba(226, 232, 240, 0.4);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.action-button-premium:hover {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.3), rgba(203, 213, 225, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 232, 240, 0.3);
}

.action-button-premium::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;
}

.action-button-premium:hover::before {
  left: 100%;
}

/* Full Width Sections - Enhanced Spacing */
.full-width-section {
  background: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.2);
  padding: 80px 60px;
  margin: 0;
  position: relative;
}

.full-width-section + .full-width-section {
  border-top: none;
}

/* Investment Scenario Modeler - Dark Theme */
.scenario-modeler-premium {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(226, 232, 240, 0.2);
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.scenario-column {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scenario-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #E2E8F0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ultimate-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .ultimate-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .ultimate-content {
    margin-left: 0;
    width: 100%;
  }
  
  .property-overview-premium {
    flex-direction: column;
    text-align: center;
  }
  
  .deal-score-container-premium {
    flex-direction: column;
    text-align: center;
  }
}

/* Chart Containers - Dark Theme */
.chart-container-premium {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* AI Reasoning Section */
.ai-reasoning-premium {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  backdrop-filter: blur(15px);
}

.ai-avatar-premium {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.ai-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #10B981;
}

.ai-explanation {
  font-size: 16px;
  line-height: 1.6;
  color: #E5E7EB;
  margin-bottom: 16px;
}

.ai-confidence {
  font-size: 14px;
  color: #E2E8F0;
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Utility Classes */
.text-copper { color: #E2E8F0; }
.text-blue { color: #3B82F6; }
.text-green { color: #10B981; }
.text-red { color: #EF4444; }
.text-gray { color: rgba(255, 255, 255, 0.7); }

.bg-copper { background-color: rgba(226, 232, 240, 0.2); }
.bg-blue { background-color: rgba(59, 130, 246, 0.2); }
.bg-green { background-color: rgba(16, 185, 129, 0.2); }
.bg-red { background-color: rgba(239, 68, 68, 0.2); }

.border-copper { border-color: rgba(226, 232, 240, 0.4); }
.border-blue { border-color: rgba(59, 130, 246, 0.4); }
.border-green { border-color: rgba(16, 185, 129, 0.4); }
.border-red { border-color: rgba(239, 68, 68, 0.4); }

/* Override sidebar badge colors for Ultimate theme */
.ultimate-dashboard .nav-badge.restricted {
  background: #94A3B8 !important;
  color: white !important;
}

.ultimate-dashboard .nav-badge.feature {
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
  color: #1E293B !important;
}

.ultimate-dashboard .nav-badge.recommended {
  background: #10B981 !important;
  color: white !important;
}

/* Override any remaining orange/amber colors in Ultimate theme */
.ultimate-dashboard .sidebar-nav-item:hover {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.15) 0%, rgba(226, 232, 240, 0.05) 100%) !important;
  color: #E2E8F0 !important;
  border-left-color: #E2E8F0 !important;
}

.ultimate-dashboard .sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.2) 0%, rgba(226, 232, 240, 0.08) 100%) !important;
  color: #E2E8F0 !important;
  border-left-color: #E2E8F0 !important;
}

.ultimate-dashboard .sidebar-nav-item.active::after {
  background: #E2E8F0 !important;
  box-shadow: 0 0 10px #E2E8F0 !important;
}

/* ULTIMATE THEME FINAL OVERRIDES - Maximum Specificity */
.ultimate-dashboard .property-overview-premium .property-details-premium .property-address-premium,
.ultimate-dashboard .property-overview-premium .property-address-premium,
.ultimate-dashboard h1.property-address-premium {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #E2E8F0 !important;
}

.ultimate-dashboard .property-overview-premium .property-meta-premium .property-price-premium,
.ultimate-dashboard .property-meta-premium .property-price-premium,
.ultimate-dashboard span.property-price-premium {
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
  color: #1E293B !important;
  border: 1px solid #E2E8F0 !important;
}

/* Force all orange/gold colors to silver in ultimate theme */
.ultimate-dashboard * {
  --gold-color: #E2E8F0 !important;
  --amber-color: #E2E8F0 !important;
  --orange-color: #E2E8F0 !important;
  --copper-color: #E2E8F0 !important;
  --warning-yellow: #94A3B8 !important;
  --gradient-warning: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%) !important;
}

/* SECTION HEADERS - Force silver backgrounds and remove orange */
.ultimate-dashboard .section-title-premium,
.ultimate-dashboard .section-title,
.ultimate-dashboard h2.section-title-premium,
.ultimate-dashboard h2.section-title {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #E2E8F0 !important;
}

/* Remove orange drop shadows from title icons */
.ultimate-dashboard .title-icon,
.ultimate-dashboard .section-icon {
  filter: drop-shadow(0 0 10px rgba(226, 232, 240, 0.3)) !important;
}

/* Force section containers to use silver accents */
.ultimate-dashboard .analysis-section-premium,
.ultimate-dashboard .full-width-section {
  border-color: rgba(226, 232, 240, 0.2) !important;
}

/* Override any orange/amber background gradients */
.ultimate-dashboard [style*="#F59E0B"],
.ultimate-dashboard [style*="#FFA500"],
.ultimate-dashboard [style*="#FFD700"],
.ultimate-dashboard .warning-gradient,
.ultimate-dashboard .orange-gradient {
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
}

/* SIDEBAR COMPLETE OVERHAUL - Force silver theme */
.ultimate-dashboard .ultimate-sidebar .sidebar-nav-item {
  background: transparent !important;
  border-left-color: transparent !important;
}

.ultimate-dashboard .ultimate-sidebar .sidebar-nav-item:hover {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.15) 0%, rgba(226, 232, 240, 0.05) 100%) !important;
  color: #E2E8F0 !important;
  border-left-color: #E2E8F0 !important;
}

.ultimate-dashboard .ultimate-sidebar .sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.2) 0%, rgba(226, 232, 240, 0.08) 100%) !important;
  color: #E2E8F0 !important;
  border-left-color: #E2E8F0 !important;
}

/* Fix all sidebar badges to silver */
.ultimate-dashboard .ultimate-sidebar [style*="background: rgba(255, 215, 0"],
.ultimate-dashboard .ultimate-sidebar [style*="color: #FFD700"],
.ultimate-dashboard .ultimate-sidebar [style*="border: 1px solid rgba(255, 215, 0"] {
  background: rgba(226, 232, 240, 0.15) !important;
  color: #E2E8F0 !important;
  border: 1px solid rgba(226, 232, 240, 0.25) !important;
}

/* Force sidebar header text to silver */
.ultimate-dashboard .ultimate-sidebar [style*="background: linear-gradient(135deg, #FFD700, #FFA500)"] {
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Override any remaining golden elements in sidebar */
.ultimate-dashboard .ultimate-sidebar [style*="#FFD700"],
.ultimate-dashboard .ultimate-sidebar [style*="#FFA500"],
.ultimate-dashboard .ultimate-sidebar [style*="gold"] {
  background: rgba(226, 232, 240, 0.1) !important;
  color: #E2E8F0 !important;
  border-color: rgba(226, 232, 240, 0.2) !important;
}

/* PROPERTY ELEMENTS - Fix orange property icon and elements */
.ultimate-dashboard .property-icon-premium {
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
  color: #1E293B !important;
}

/* Force all property-related orange elements to silver */
.ultimate-dashboard .property-overview-premium *[style*="orange"],
.ultimate-dashboard .property-overview-premium *[style*="#FF"],
.ultimate-dashboard .property-overview-premium .orange,
.ultimate-dashboard .property-overview-premium .amber {
  background: rgba(226, 232, 240, 0.15) !important;
  color: #E2E8F0 !important;
}

/* Investment grade and property badges */
.ultimate-dashboard .investment-grade-premium {
  background: rgba(226, 232, 240, 0.1) !important;
  border: 1px solid rgba(226, 232, 240, 0.3) !important;
}

/* UNIVERSAL ORANGE KILLER - Nuclear option for any remaining orange */
.ultimate-dashboard *[style*="background: #FF"],
.ultimate-dashboard *[style*="background:#FF"],
.ultimate-dashboard *[style*="color: #FF"],
.ultimate-dashboard *[style*="color:#FF"],
.ultimate-dashboard *[style*="border: 1px solid #FF"],
.ultimate-dashboard *[style*="border:1px solid #FF"],
.ultimate-dashboard .orange,
.ultimate-dashboard .amber,
.ultimate-dashboard .gold,
.ultimate-dashboard .copper {
  background: rgba(226, 232, 240, 0.15) !important;
  color: #E2E8F0 !important;
  border-color: rgba(226, 232, 240, 0.25) !important;
}

/* MICRO-DETAILS AND INTERACTIVE STATES */
/* Focus states */
.ultimate-dashboard *:focus {
  outline: 2px solid #E2E8F0 !important;
  outline-offset: 2px !important;
}

/* Button hover states */
.ultimate-dashboard button:hover,
.ultimate-dashboard .btn:hover {
  background: rgba(226, 232, 240, 0.15) !important;
  border-color: rgba(226, 232, 240, 0.3) !important;
}

/* Link hover states */
.ultimate-dashboard a:hover {
  color: #E2E8F0 !important;
}

/* Input focus states */
.ultimate-dashboard input:focus,
.ultimate-dashboard select:focus,
.ultimate-dashboard textarea:focus {
  border-color: #E2E8F0 !important;
  box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.2) !important;
}

/* Loading states */
.ultimate-dashboard .loading,
.ultimate-dashboard .spinner {
  border-color: #E2E8F0 rgba(226, 232, 240, 0.2) rgba(226, 232, 240, 0.2) rgba(226, 232, 240, 0.2) !important;
}

/* Tooltip and popover elements */
.ultimate-dashboard .tooltip,
.ultimate-dashboard .popover {
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(226, 232, 240, 0.2) !important;
  color: #E2E8F0 !important;
}

/* FINAL NUCLEAR OPTION - Override ALL possible orange/gold hex values */
.ultimate-dashboard *[style*="#F59E0B"],
.ultimate-dashboard *[style*="#F97316"], 
.ultimate-dashboard *[style*="#FB923C"],
.ultimate-dashboard *[style*="#FBBF24"],
.ultimate-dashboard *[style*="#FCD34D"],
.ultimate-dashboard *[style*="#FDE047"],
.ultimate-dashboard *[style*="#D97706"],
.ultimate-dashboard *[style*="#B45309"],
.ultimate-dashboard *[style*="#92400E"],
.ultimate-dashboard *[style*="#FFD700"],
.ultimate-dashboard *[style*="#FFA500"],
.ultimate-dashboard *[style*="#FF8C00"] {
  background: rgba(226, 232, 240, 0.15) !important;
  color: #E2E8F0 !important;
  border-color: rgba(226, 232, 240, 0.25) !important;
}/* Ultimate Dashboard - Professional Light Theme */
/* Modern, clean design with excellent readability and visual hierarchy */

/* DEBUG BANNER ANIMATION */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

:root {
  /* Color Palette - Warmer, softer tones for less eye strain */
  --primary-blue: #1E40AF;
  --primary-blue-light: #3B82F6;
  --primary-blue-dark: #1E3A8A;
  
  --text-primary: #2C2E33;  /* Warmer dark for main text */
  --text-secondary: #6B7280;  /* Slightly warmer gray */
  --text-tertiary: #9CA3AF;
  --text-white: #FFFFFF;
  
  --bg-primary: #FAFAF9;  /* Warm off-white instead of pure white */
  --bg-secondary: #F5F5F4;  /* Warmer light gray */
  --bg-tertiary: #EEEDE9;  /* Subtle warm undertone */
  
  --border-light: #E5E4E1;  /* Warmer, softer borders */
  --border-medium: #D1D0CC;
  --border-dark: #A8A7A3;
  
  --success: #10B981;
  --success-light: #34D399;
  --success-bg: #ECFDF5;
  
  --warning: #F59E0B;
  --warning-light: #FBBF24;
  --warning-bg: #FFFBEB;
  
  --danger: #EF4444;
  --danger-light: #F87171;
  --danger-bg: #FEF2F2;
  
  /* 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Main Container */
.ultimate-dashboard-light {
  min-height: 100vh;
  background: linear-gradient(180deg, #F5F5F4 0%, #E8E7E3 100%);  /* Warmer, softer gradient */
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  display: flex;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.ultimate-sidebar-light {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
  display: flex;  /* Sidebar visible on desktop */
  flex-direction: column;
}

/* Sidebar Header */
.sidebar-header-light {
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563EB;
}

.sidebar-title {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Sidebar Navigation */
.sidebar-nav-light {
  padding: 24px 0;
  flex: 1;
}

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

.sidebar-section-title {
  padding: 0 24px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);  /* Increased opacity for better readability */
}

.sidebar-nav-item-light {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: #FFFFFF;  /* Solid white text for maximum contrast and readability */
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
  gap: 12px;
  margin: 2px 12px;
  border-radius: 8px;
  position: relative;
}

.sidebar-nav-item-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: translateX(2px);  /* Reduced translation to prevent cut-off */
}

.sidebar-nav-item-light.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 600;
  border-left: 3px solid #FFFFFF;
  margin-left: 5px;  /* Reduced to prevent cut-off */
  padding-left: 21px;
}

/* Removed blue dot indicator - was covering text and looked bad */
.sidebar-nav-item-light.active::after {
  content: '';
  display: none;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.sidebar-nav-text {
  flex: 1;
}

.sidebar-nav-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
}

.sidebar-nav-badge.pro {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  color: #FFFFFF;
}

.sidebar-nav-badge.live {
  background: #10B981;
  color: #FFFFFF;
}

.sidebar-nav-badge.ai {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  color: var(--text-white);
}

/* Main Content Area - Full width since sidebar is hidden */
.ultimate-content-light {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  padding: 0 0 80px 0;  /* Added bottom padding to prevent last section from being hidden */
  position: relative;
  overflow-x: hidden;
}

/* Property Overview Hero Section */
.property-overview-hero {
  background: #FCFCFB;  /* Soft off-white for cards */
  padding: 48px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.property-overview-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--primary-blue) 100%);
}

.property-hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.property-image-container {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-light);
}

.property-details-container {
  flex: 1;
}

.property-address-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.property-meta-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.property-price-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--text-white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}

.property-specs {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.property-spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.investment-grade-container {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-width: 120px;
}

.investment-grade-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.investment-grade-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

/* Executive Summary Section */
.executive-summary-section {
  background: #FCFCFB;  /* Soft off-white */
  padding: 48px;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  color: var(--primary-blue);
}

.executive-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

/* Deal Score Wheel */
.deal-score-container {
  position: relative;
  width: 160px;
  height: 160px;
}

.deal-score-wheel {
  width: 100%;
  height: 100%;
  position: relative;
}

.deal-score-circle {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.deal-score-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 12;
}

.deal-score-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.deal-score-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.deal-score-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.deal-score-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.deal-recommendation-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.recommendation-buy {
  background: var(--success);
  color: var(--text-white);
}

.recommendation-hold {
  background: var(--warning);
  color: var(--text-white);
}

.recommendation-pass {
  background: var(--danger);
  color: var(--text-white);
}

/* Risk and Opportunities */
.risk-opportunity-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

.risk-card-light,
.opportunity-card-light {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
}

.risk-card-light {
  border-top: 3px solid var(--danger);
}

.opportunity-card-light {
  border-top: 3px solid var(--success);
}

.risk-card-title,
.opportunity-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-card-title {
  color: var(--danger);
}

.opportunity-card-title {
  color: var(--success);
}

.risk-item-light,
.opportunity-item-light {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.risk-item-light:last-child,
.opportunity-item-light:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.risk-item-text,
.opportunity-item-text {
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.risk-item-severity,
.opportunity-item-impact {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.severity-high,
.impact-high {
  background: var(--danger-bg);
  color: var(--danger);
}

.severity-medium,
.impact-medium {
  background: var(--warning-bg);
  color: var(--warning);
}

.severity-low,
.impact-low {
  background: var(--success-bg);
  color: var(--success);
}

/* Quick Actions */
.quick-actions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.quick-action-button {
  padding: 12px 20px;
  background: #FCFCFB;  /* Soft off-white */
  border: 2px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-action-button:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* AI Insights */
.ai-insights-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  display: flex;
  gap: 20px;
  align-items: start;
}

.ai-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ai-content {
  flex: 1;
}

.ai-insights-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ai-insights-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.ai-confidence {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Analysis Grid Sections */
.analysis-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px;
  background: var(--bg-secondary);
}

.analysis-card {
  background: #FCFCFB;  /* Soft off-white */
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.analysis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.analysis-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.str-card {
  border-top: 3px solid var(--primary-blue);
}

.ltr-card {
  border-top: 3px solid var(--success);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-item {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

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

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.metric-change.positive {
  color: var(--success);
}

.metric-change.negative {
  color: var(--danger);
}

/* Market Data Section */
.market-data-section {
  background: #FCFCFB;  /* Soft off-white */
  padding: 48px;
  border-top: 1px solid var(--border-light);
}

.market-data-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border-light);
}

/* Investment Scenario Modeler */
.scenario-modeler-section {
  background: #FCFCFB;  /* Soft off-white */
  padding: 48px;
  border-top: 1px solid var(--border-light);
}

.scenario-modeler-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border-light);
}

.scenario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.scenario-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenario-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.scenario-control-group {
  flex: 1;
}

.control-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.scenario-button-group {
  display: flex;
  gap: 8px;
}

.scenario-button {
  padding: 8px 16px;
  background: #FCFCFB;  /* Soft off-white */
  border: 2px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-button:hover {
  background: var(--bg-tertiary);
}

.scenario-button.active {
  background: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}

.scenario-slider {
  width: 100%;
  margin-top: 8px;
}

.reset-button {
  padding: 10px 20px;
  background: #FCFCFB;  /* Soft off-white */
  border: 2px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reset-button:hover {
  background: var(--danger);
  color: var(--text-white);
  border-color: var(--danger);
}

/* Scenario Comparison Grid */
.scenario-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin-top: 32px;
}

.scenario-column {
  background: #FCFCFB;  /* Soft off-white */
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border-light);
}

.scenario-column.current {
  border-color: var(--border-medium);
}

.scenario-column.whatif {
  border-color: var(--primary-blue);
}

.scenario-column-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.scenario-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scenario-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scenario-metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.scenario-metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.scenario-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 1.5rem;
}

/* Charts */
.chart-container {
  background: #FCFCFB;  /* Soft off-white */
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-top: 24px;
}

.chart-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Tables */
.data-table {
  width: 100%;
  background: #FCFCFB;  /* Soft off-white */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.data-table thead {
  background: var(--bg-tertiary);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-light);
}

.data-table td {
  padding: 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Footer Actions */
.footer-actions {
  padding: 32px 48px;
  background: #FCFCFB;  /* Soft off-white */
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-info {
  display: flex;
  gap: 32px;
}

.footer-info-item {
  display: flex;
  flex-direction: column;
}

.footer-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.footer-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-buttons {
  display: flex;
  gap: 12px;
}

.footer-button {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-button.primary {
  background: var(--primary-blue);
  color: var(--text-white);
  border: none;
}

.footer-button.primary:hover {
  background: var(--primary-blue-dark);
  box-shadow: var(--shadow-md);
}

.footer-button.secondary {
  background: #FCFCFB;  /* Soft off-white */
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.footer-button.secondary:hover {
  background: var(--bg-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .analysis-grid-container {
    grid-template-columns: 1fr;
  }
  
  .scenario-comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ultimate-sidebar-light {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .ultimate-sidebar-light.mobile-open {
    transform: translateX(0);
  }
  
  .ultimate-content-light {
    margin-left: 0;
    width: 100%;
  }
  
  .property-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .executive-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .risk-opportunity-container {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .property-overview-hero,
  .executive-summary-section,
  .analysis-grid-container,
  .market-data-section,
  .scenario-modeler-section {
    padding: 24px;
  }
}

/* Loading States */
.skeleton-loader {
  background: linear-gradient(90deg, 
    var(--bg-tertiary) 0%, 
    var(--bg-secondary) 50%, 
    var(--bg-tertiary) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Print Styles */
@media print {
  .ultimate-sidebar-light {
    display: none;
  }
  
  .ultimate-content-light {
    margin-left: 0;
    width: 100%;
  }
  
  .footer-actions {
    display: none;
  }
}

/* Custom Scrollbar - Matches the blue and warm aesthetic */
.ultimate-dashboard-light ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.ultimate-dashboard-light ::-webkit-scrollbar-track {
  background: rgba(203, 213, 225, 0.2);  /* Subtle warm gray track */
  border-radius: 5px;
}

.ultimate-dashboard-light ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);  /* Blue gradient matching sidebar */
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.ultimate-dashboard-light ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);  /* Lighter blue on hover */
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Firefox scrollbar support */
.ultimate-dashboard-light {
  scrollbar-width: thin;
  scrollbar-color: #3B82F6 rgba(203, 213, 225, 0.2);
}/* Premium Analytics Dashboard - Dark Luxury Theme with Glassmorphism */

.premium-dashboard {
  min-height: 100vh;
  background: 
    radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(88, 166, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* Loading Animation */
.premium-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-animation {
  text-align: center;
}

.pulse-ring {
  width: 100px;
  height: 100px;
  border: 2px solid #FFD700;
  border-radius: 50%;
  position: absolute;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring-delay-1 {
  animation-delay: 0.5s;
}

.pulse-ring-delay-2 {
  animation-delay: 1s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.33);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.loading-text {
  margin-top: 80px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  animation: fade-in-out 2s ease-in-out infinite;
}

@keyframes fade-in-out {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Hero Section */
.premium-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1) 0%, 
    rgba(255, 215, 0, 0.05) 25%,
    transparent 50%, 
    rgba(138, 43, 226, 0.1) 100%);
}

.particle-field::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255, 215, 0, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(138, 43, 226, 0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.2), transparent);
  background-size: 150px 100px;
  animation: float-particles 20s linear infinite;
}

@keyframes float-particles {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.property-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.property-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.property-address {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.property-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-price {
  font-size: 24px;
  font-weight: 700;
  color: #00FF88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.property-specs {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.investment-grade-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid currentColor;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px currentColor;
}

.premium-score-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}

.score-wheel-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.score-canvas {
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.score-description {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.recommendation-panel {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ai-avatar {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
}

.ai-recommendation h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #FFD700;
}

.ai-recommendation p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
}

.confidence-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confidence-indicator span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.confidence-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 2s ease-out;
  box-shadow: 0 0 10px currentColor;
}

/* Metrics Canvas */
.metrics-canvas {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
  color: white;
}

.title-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.metric-card {
  position: relative;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.3);
}

.metric-card.selected {
  border-color: #FFD700;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.metric-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.metric-change.up {
  color: #00FF88;
}

.metric-change.down {
  color: #FF4444;
}

.change-icon {
  font-size: 16px;
}

.metric-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover .metric-glow {
  opacity: 1;
}

/* Risk Radar Section */
.risk-radar-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.risk-panel, .opportunity-matrix {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: white;
}

.risk-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.risk-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.risk-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.risk-level {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-high {
  background: rgba(255, 68, 68, 0.2);
  color: #FF4444;
  border: 1px solid #FF4444;
}

.risk-medium {
  background: rgba(255, 165, 0, 0.2);
  color: #FFA500;
  border: 1px solid #FFA500;
}

.risk-low {
  background: rgba(0, 255, 136, 0.2);
  color: #00FF88;
  border: 1px solid #00FF88;
}

.risk-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px currentColor;
}

.risk-score {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  align-self: flex-end;
}

/* Opportunity Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.matrix-quadrant {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  min-height: 120px;
  transition: all 0.3s ease;
}

.matrix-quadrant:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
}

.matrix-quadrant h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.8);
}

.opportunity-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opportunity-item span {
  font-size: 14px;
  font-weight: 600;
  color: #FFD700;
}

.opportunity-details {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Command Center */
.command-center {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  margin-top: 80px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.premium-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.premium-button.primary {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

.premium-button.secondary {
  background: rgba(138, 43, 226, 0.2);
  color: #DA70D6;
  border: 1px solid #DA70D6;
}

.premium-button.tertiary {
  background: rgba(0, 255, 136, 0.2);
  color: #00FF88;
  border: 1px solid #00FF88;
}

.premium-button.accent {
  background: rgba(255, 68, 68, 0.2);
  color: #FF6B6B;
  border: 1px solid #FF6B6B;
}

.premium-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.button-icon {
  font-size: 18px;
}

.button-ripple {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-button:active .button-ripple {
  opacity: 1;
}

.quick-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 0 20px currentColor;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .premium-score-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .score-wheel-container {
    justify-content: center;
  }
  
  .risk-radar-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0 20px;
  }
  
  .property-header {
    flex-direction: column;
    text-align: center;
  }
  
  .property-address {
    font-size: 28px;
  }
  
  .metrics-canvas {
    padding: 40px 20px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* Smooth animations */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}/**
 * PPF DESIGN POLISH - PIXEL'S REVIEW IMPLEMENTATION
 * February 14, 2026
 * 
 * This file implements the critical P1 design fixes from Pixel's review:
 * 1. Professional color palette overhaul
 * 2. Proper shadow/elevation system
 * 3. Fixed typography hierarchy
 * 
 * Makes PPF look like a $50/month SaaS tool people trust with $850K decisions
 */

/* ============================================
   P1-1: NEW COLOR PALETTE - PROFESSIONAL TRUST
   ============================================ */

:root {
  /* Primary Colors */
  --ppf-navy-primary: #0A2540;        /* Headers, important text */
  --ppf-blue-secondary: #1E3A8A;      /* CTAs, interactive elements */
  --ppf-teal-accent: #06B6D4;         /* Highlights, success states */
  --ppf-green-success: #059669;       /* Positive metrics, recommended */
  --ppf-orange-warning: #F59E0B;      /* Caution, medium risk */
  --ppf-red-danger: #DC2626;          /* Negative cash flow, high risk */
  
  /* Neutrals */
  --ppf-bg-main: #F8FAFC;             /* Clean off-white background */
  --ppf-surface: #FFFFFF;             /* Cards */
  --ppf-border: #E2E8F0;              /* Card edges */
  --ppf-text-primary: #0F172A;        /* Headings */
  --ppf-text-secondary: #64748B;      /* Labels */
  --ppf-text-tertiary: #94A3B8;       /* Helper text */
  
  /* Shadow System - Professional Elevation */
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 
                   0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 
                   0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-prominent: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                      0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   P1-1: BACKGROUND COLOR - CLEAN OFF-WHITE
   ============================================ */

body,
.investment-dashboard-section,
#dashboard-root,
body.summary-view #summary-dashboard-container {
  background: var(--ppf-bg-main) !important;
  background-image: none !important;
}

/* Remove old washed-out gradient */
body {
  background: var(--ppf-bg-main) !important;
  color: var(--ppf-text-primary);
}

/* Override the old blue-gray gradient */
body:not(.ultimate-dashboard) {
  background: var(--ppf-bg-main) !important;
}

.initial-loading {
  background: var(--ppf-bg-main) !important;
}

/* ============================================
   P1-2: CARD SHADOWS - PROFESSIONAL DEPTH
   ============================================ */

/* All cards get subtle shadow at rest */
.comparison-card,
.summary-metrics-bar,
.quick-comparison .comparison-card,
.property-hero-compact,
.deal-score-badge,
.card-metric,
.ltr-section,
.str-section,
.ai-analysis-premium > div:first-child,
.investment-comparison > div,
.personal-calculator,
.verdict-section,
.comparison-table,
.listing-card,
.expandable-section,
.input-section {
  box-shadow: var(--shadow-subtle) !important;
}

/* Cards lift on hover with medium shadow */
.comparison-card:hover,
.listing-card:hover,
.expandable-header:hover {
  box-shadow: var(--shadow-medium) !important;
  transform: translateY(-2px);
}

/* Prominent sections get medium shadow by default */
.summary-metrics-bar,
.ai-analysis-premium > div:first-child,
.verdict-section {
  box-shadow: var(--shadow-medium) !important;
}

/* Buttons get prominent shadow */
.view-details-btn,
#generate-pdf-btn,
button[type="submit"],
.btn-primary {
  box-shadow: var(--shadow-prominent) !important;
}

/* ============================================
   P1-1: GREEN RECOMMENDED CARD - WHITE WITH BORDER
   ============================================ */

/* Remove fluorescent green background, use white with green border */
.comparison-card.recommended {
  background: var(--ppf-surface) !important;
  background-image: none !important;
  border: 2px solid var(--ppf-green-success) !important;
}

/* Keep the checkmark badge green */
.comparison-card.recommended::before {
  color: var(--ppf-green-success) !important;
}

/* Update hover state */
.comparison-card.recommended:hover {
  box-shadow: var(--shadow-medium) !important;
  transform: translateY(-2px);
  border-color: var(--ppf-green-success) !important;
}

/* ============================================
   P1-3: TYPOGRAPHY HIERARCHY - BIGGER BOLDER
   ============================================ */

/* Property Price - MAKE IT BIG */
.property-hero-compact .property-price,
.property-price,
[class*="price"] {
  font-size: 36px !important;
  font-weight: 700 !important;
  color: var(--ppf-navy-primary) !important;
  line-height: 1.2;
}

/* Property Address - Navy */
.property-hero-compact .property-address,
.property-address,
.ai-analysis-premium h2,
.investment-comparison h2,
.personal-calculator h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: var(--ppf-navy-primary) !important;
}

/* Card Headings - Navy */
.comparison-card-title,
h3,
.ltr-section h3,
.str-section h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--ppf-navy-primary) !important;
}

/* Metric Values - BIG AND BOLD */
.summary-metric-value,
.card-metric-value,
.metric__value,
.deal-score-number,
[class*="metric-value"] {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--ppf-navy-primary) !important;
  -webkit-text-fill-color: var(--ppf-navy-primary) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}

/* Deal Score - Extra Large */
.deal-score-number {
  font-size: 48px !important;
  font-weight: 700 !important;
  color: var(--ppf-blue-secondary) !important;
}

/* Metric Labels - Small Caps, More Contrast */
.summary-metric-label,
.card-metric-label,
.metric__label,
.deal-score-label,
[class*="metric-label"],
[class*="label"] {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ppf-text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Secondary Text */
.property-hero-compact .property-details,
.property-specs,
p,
.text-secondary {
  font-size: 14px !important;
  color: var(--ppf-text-secondary) !important;
}

/* Helper/Tertiary Text */
.text-tertiary,
small,
.helper-text {
  font-size: 14px !important;
  color: var(--ppf-text-tertiary) !important;
}

/* ============================================
   P1-1: BUTTON COLORS - ACCENT BLUE
   ============================================ */

.view-details-btn,
#generate-pdf-btn,
button[type="submit"],
.btn-primary {
  background: var(--ppf-blue-secondary) !important;
  color: white !important;
  border: none;
}

.view-details-btn:hover,
#generate-pdf-btn:hover,
button[type="submit"]:hover,
.btn-primary:hover {
  background: #1E40AF !important; /* Darker blue on hover */
  transform: translateY(-1px);
}

/* Secondary Buttons */
.btn-secondary {
  background: transparent;
  color: var(--ppf-text-secondary);
  border: 1px solid var(--ppf-border);
}

.btn-secondary:hover {
  border-color: var(--ppf-text-secondary);
  background: var(--ppf-bg-main);
}

/* ============================================
   P1-2: CARD BASE STYLES - CLEAN WHITE
   ============================================ */

.comparison-card,
.property-hero-compact,
.deal-score-badge,
.ltr-section,
.str-section,
.ai-analysis-premium > div:first-child,
.verdict-section,
.comparison-table,
.personal-calculator,
.listing-card {
  background: var(--ppf-surface) !important;
  background-image: none !important;
  border: 1px solid var(--ppf-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

/* ============================================
   COLOR-CODED METRICS - MEANINGFUL COLORS
   ============================================ */

/* Positive metrics - Green */
.summary-metric.positive .summary-metric-value,
.metric__value--positive,
.text-success {
  color: var(--ppf-green-success) !important;
}

/* Negative metrics - Red */
.summary-metric.negative .summary-metric-value,
.metric__value--negative,
.text-danger {
  color: var(--ppf-red-danger) !important;
}

/* Warning/Caution - Orange */
.text-warning,
.risk-medium {
  color: var(--ppf-orange-warning) !important;
}

/* Risk Indicators */
.risk-low {
  color: var(--ppf-green-success) !important;
}

.risk-high {
  color: var(--ppf-red-danger) !important;
}

/* ============================================
   SUMMARY METRICS BAR - PROFESSIONAL NAVY
   ============================================ */

.summary-metrics-bar {
  background: linear-gradient(135deg, var(--ppf-navy-primary) 0%, var(--ppf-blue-secondary) 100%) !important;
  padding: 20px 30px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.summary-metric {
  color: white;
}

.summary-metric-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   BORDERS AND DIVIDERS
   ============================================ */

hr,
.divider,
[class*="border"] {
  border-color: var(--ppf-border) !important;
}

/* ============================================
   FOCUS STATES - ACCESSIBILITY
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--ppf-blue-secondary);
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ppf-blue-secondary) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2) !important;
}

/* ============================================
   BADGE COMPONENTS
   ============================================ */

.badge--success {
  background: #D1FAE5;
  color: var(--ppf-green-success);
}

.badge--warning {
  background: #FEF3C7;
  color: #D97706;
}

.badge--info {
  background: #DBEAFE;
  color: var(--ppf-blue-secondary);
}

/* ============================================
   RESPONSIVE - MAINTAIN HIERARCHY ON MOBILE
   ============================================ */

@media (max-width: 768px) {
  /* Keep big numbers big, even on mobile */
  .property-price {
    font-size: 32px !important;
  }
  
  .summary-metric-value,
  .card-metric-value {
    font-size: 24px !important;
  }
  
  .deal-score-number {
    font-size: 40px !important;
  }
}

/* ============================================
   REMOVE OLD GRADIENTS AND BRIGHT COLORS
   ============================================ */

/* Kill the old washed-out blue-gray gradient */
body.ultimate-dashboard {
  background: var(--ppf-bg-main) !important;
  background-image: none !important;
  color: var(--ppf-text-primary) !important;
}

/* Remove old green fluorescent fills */
[class*="bg-green"],
.bg-success {
  background: var(--ppf-surface) !important;
  border: 2px solid var(--ppf-green-success) !important;
}

/* Update old blue buttons */
[class*="bg-blue"] {
  background: var(--ppf-blue-secondary) !important;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-spinner {
  border-top-color: var(--ppf-blue-secondary) !important;
}

.skeleton {
  background: linear-gradient(90deg, 
    var(--ppf-border) 25%, 
    var(--ppf-bg-main) 50%, 
    var(--ppf-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* ============================================
   PROPERTY IMAGE
   ============================================ */

.property-hero-compact img,
.listing-card img {
  border: 1px solid var(--ppf-border);
  border-radius: 8px;
}

/* ============================================
   OVERRIDE OLD THEME STYLES
   ============================================ */

/* Force these over any old theme colors */
body * {
  color-scheme: light;
}

/* Remove any lingering dark mode or old theme */
.ultimate-dashboard * {
  background-image: none !important;
}

/* Clean up old color overrides */
[style*="background: linear-gradient"] {
  background: var(--ppf-surface) !important;
}

/* ============================================
   FINAL POLISH - TRANSITIONS
   ============================================ */

.comparison-card,
.listing-card,
button,
a,
input,
.expandable-header {
  transition: all 0.2s ease;
}

/* Smooth interactions */
button:active {
  transform: translateY(0) !important;
}

/* ============================================
   PRINT STYLES - MAINTAIN PROFESSIONAL LOOK
   ============================================ */

@media print {
  body {
    background: white !important;
  }
  
  .comparison-card,
  .property-hero-compact,
  .listing-card {
    border: 1px solid var(--ppf-border) !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
/* PPF LIGHT THEME - Professional Real Estate Investment Dashboard */
/* Created: Feb 15, 2026 - Clean, bright, professional */

:root {
  /* Light Theme Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-elevated: #F1F5F9;
  
  /* Brand Colors - Professional Blues */
  --brand-primary: #2563EB;
  --brand-secondary: #0EA5E9;
  
  /* Success/Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  /* Text Colors */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  
  /* Borders */
  --border-color: #E2E8F0;
  
  /* 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);
  
  /* Gradients */
  --gradient-green: linear-gradient(135deg, #10B981, #059669);
  --gradient-blue: linear-gradient(135deg, #2563EB, #3B82F6);
  --gradient-cyan: linear-gradient(135deg, #0EA5E9, #0284C7);
  --gradient-amber: linear-gradient(135deg, #F59E0B, #D97706);
  --gradient-red: linear-gradient(135deg, #EF4444, #DC2626);
}

/* Global Light Theme Override */
body.ppf-light-theme {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Remove dark theme when light is active */
body.ppf-light-theme.ppf-behance-dark {
  background: var(--bg-secondary) !important;
}

.ultimate-dashboard-light.ppf-light-theme {
  background: var(--bg-secondary) !important;
}

.ultimate-content-light {
  background: var(--bg-secondary) !important;
  padding-bottom: 400px !important;
}

/* Card Styles */
.ppf-light-theme .dashboard-card,
.ppf-light-theme .metric-card,
.ppf-light-theme .analysis-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text-primary) !important;
}

.ppf-light-theme .dashboard-card:hover,
.ppf-light-theme .metric-card:hover {
  box-shadow: var(--shadow-md) !important;
}

/* Headers */
.ppf-light-theme h1,
.ppf-light-theme h2,
.ppf-light-theme h3,
.ppf-light-theme h4,
.ppf-light-theme h5,
.ppf-light-theme h6 {
  color: var(--text-primary) !important;
}

/* Text */
.ppf-light-theme p,
.ppf-light-theme span,
.ppf-light-theme div {
  color: var(--text-primary);
}

.ppf-light-theme .text-secondary,
.ppf-light-theme .text-muted {
  color: var(--text-secondary) !important;
}

/* Buttons */
.ppf-light-theme .btn-primary {
  background: var(--brand-primary) !important;
  color: white !important;
  border: none !important;
}

.ppf-light-theme .btn-primary:hover {
  background: #1D4ED8 !important;
}

.ppf-light-theme .btn-secondary {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

/* Metrics */
/* ─── Light Theme Sidebar ─────────────────────────────────────────────── */
.ppf-light-theme .ultimate-sidebar,
.ppf-light-theme .ultimate-sidebar-light,
.ultimate-sidebar-light {
  background: #F8FAFC !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: 1px 0 8px rgba(0, 0, 0, 0.06) !important;
}

.ppf-light-theme .ultimate-sidebar .sidebar-nav-item,
.ultimate-sidebar-light .sidebar-nav-item {
  color: #0F172A !important;
  -webkit-text-fill-color: #0F172A !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.ppf-light-theme .ultimate-sidebar .sidebar-nav-item:hover,
.ultimate-sidebar-light .sidebar-nav-item:hover {
  background: #EFF6FF !important;
  color: #1E40AF !important;
  -webkit-text-fill-color: #1E40AF !important;
}

.ppf-light-theme .ultimate-sidebar .sidebar-nav-item.active,
.ultimate-sidebar-light .sidebar-nav-item.active {
  background: #DBEAFE !important;
  color: #1E40AF !important;
  -webkit-text-fill-color: #1E40AF !important;
  border-left: 3px solid #3B82F6 !important;
}

.ppf-light-theme .ultimate-sidebar .sidebar-section-title,
.ppf-light-theme .ultimate-sidebar [class*="section-label"],
.ppf-light-theme .ultimate-sidebar [class*="category"],
.ultimate-sidebar-light .sidebar-section-title,
.ultimate-sidebar-light [class*="section-label"],
.ultimate-sidebar-light [class*="category"] {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
}

.ppf-light-theme .ultimate-sidebar .sidebar-nav-text,
.ultimate-sidebar-light .sidebar-nav-text {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Collapse button — visible on light sidebar */
.sidebar-collapse-btn {
  background: #E2E8F0 !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}
.sidebar-collapse-btn:hover {
  background: #CBD5E1 !important;
  color: #1E293B !important;
  -webkit-text-fill-color: #1E293B !important;
}

/* Assumptions panel — must clear the fixed sidebar */
#ppf-assumptions-panel {
  margin-left: 0 !important;
}

.ppf-light-theme .metric-value {
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  background: none !important;
  font-weight: 600;
}

/* Fix faded/washed-out section headers in light theme */
.ppf-light-theme .section-title,
.ppf-light-theme .section-title-premium,
.ppf-light-theme h2.section-title,
.ppf-light-theme h2.section-title-premium,
.ppf-light-theme .ultimate-dashboard .section-title,
.ppf-light-theme .ultimate-dashboard .section-title-premium {
  color: var(--text-primary, #1E293B) !important;
  -webkit-text-fill-color: var(--text-primary, #1E293B) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  background: none !important;
}

.ppf-light-theme .metric-label {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
}

/* Status Colors */
.ppf-light-theme .status-positive,
.ppf-light-theme .status-success {
  color: var(--success) !important;
}

.ppf-light-theme .status-negative,
.ppf-light-theme .status-danger {
  color: var(--danger) !important;
}

.ppf-light-theme .status-warning {
  color: var(--warning) !important;
}

/* Property Image Container */
.ppf-light-theme .property-image-container {
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ppf-light-theme .property-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Investment Sections */
.ppf-light-theme .str-section,
.ppf-light-theme .ltr-section {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.ppf-light-theme .section-header {
  color: var(--text-primary) !important;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Tables */
.ppf-light-theme table {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
}

.ppf-light-theme th {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color) !important;
}

.ppf-light-theme td {
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.ppf-light-theme tr:hover {
  background: var(--bg-secondary) !important;
}

/* Charts & Visualizations */
.ppf-light-theme .chart-container {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* Navigation/Tabs */
.ppf-light-theme .nav-tabs,
.ppf-light-theme .tab-navigation {
  border-bottom: 2px solid var(--border-color) !important;
}

.ppf-light-theme .nav-tab,
.ppf-light-theme .tab-item {
  color: var(--text-secondary) !important;
  border-bottom: 2px solid transparent;
}

.ppf-light-theme .nav-tab.active,
.ppf-light-theme .tab-item.active {
  color: var(--brand-primary) !important;
  border-bottom-color: var(--brand-primary) !important;
}

/* Loading States */
.ppf-light-theme .loading-spinner {
  border-color: var(--border-color) !important;
  border-top-color: var(--brand-primary) !important;
}

/* Empty States */
.ppf-light-theme .empty-state {
  background: var(--bg-elevated) !important;
  border: 2px dashed var(--border-color) !important;
  color: var(--text-secondary) !important;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}

/* Comparison Cards */
.ppf-light-theme .comparison-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.ppf-light-theme .comparison-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

/* Badges */
.ppf-light-theme .badge {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.ppf-light-theme .badge-success {
  background: #D1FAE5 !important;
  color: #065F46 !important;
  border-color: #6EE7B7 !important;
}

.ppf-light-theme .badge-warning {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #FCD34D !important;
}

.ppf-light-theme .badge-danger {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  border-color: #FCA5A5 !important;
}

/* Investment Scenario Modeler */
.ppf-light-theme .scenario-modeler {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* Input Fields */
.ppf-light-theme input,
.ppf-light-theme select,
.ppf-light-theme textarea {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 6px;
  padding: 8px 12px;
}

.ppf-light-theme input:focus,
.ppf-light-theme select:focus,
.ppf-light-theme textarea:focus {
  border-color: var(--brand-primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Property Header */
.ppf-light-theme .property-header {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 32px;
  margin-bottom: 32px;
}

.ppf-light-theme .property-address {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  margin-bottom: 8px;
}

.ppf-light-theme .property-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-primary) !important;
}

/* Dashboard Grid */
.ppf-light-theme .dashboard-grid {
  display: grid;
  gap: 24px;
  padding: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ppf-light-theme .dashboard-grid {
    padding: 16px;
    gap: 16px;
  }
  
  .ppf-light-theme .property-header {
    padding: 24px 16px;
  }
}

/* ============================================
   GLOBAL SIDEBAR TEXT OVERRIDE
   Ensures sidebar text is always white on dark bg
   ============================================ */
.sidebar-nav-item,
.sidebar-nav-item-light,
.sidebar-nav-text {
  color: #FFFFFF !important;
}
.sidebar-nav-item:hover,
.sidebar-nav-item-light:hover,
.sidebar-nav-item.active,
.sidebar-nav-item-light.active {
  color: #FFFFFF !important;
}
.sidebar-nav-item::after,
.sidebar-nav-item.active::after,
.sidebar-nav-item-light::after,
.sidebar-nav-item-light.active::after {
  content: none !important;
  display: none !important;
}

/* ── Sidebar Buttons (synced with ultimate-dashboard-light.css) ── */
.sidebar-button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  line-height: 1.4;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.sidebar-btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.sidebar-btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.sidebar-btn-secondary-light {
  background: #FFFFFF;
  color: #334155;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-btn-secondary-light:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* ── Assumptions Panel offset from sidebar ── */
#ppf-assumptions-panel {
  margin-left: 304px;
  margin-right: 24px;
}

@media (max-width: 768px) {
  #ppf-assumptions-panel {
    margin-left: 12px;
    margin-right: 12px;
  }
}
