/* ==========================================================================
   SOLARIS - Solar Green Energy Platform HTML Template
   Main Stylesheet (CSS3 & Bootstrap 5.3 Extension)
   ========================================================================== */

:root {
  --sol-primary: #15803d;
  --sol-primary-hover: #166534;
  --sol-primary-light: #22c55e;
  --sol-primary-subtle: #dcfce7;
  --sol-accent: #f59e0b;
  --sol-accent-hover: #d97706;
  --sol-accent-subtle: #fef3c7;
  --sol-dark: #0f172a;
  --sol-slate: #1e293b;
  --sol-body: #334155;
  --sol-muted: #64748b;
  --sol-border: #e2e8f0;
  --sol-border-light: #f1f5f9;
  --sol-bg-light: #f8fafc;
  --sol-bg-surface: #ffffff;
  --sol-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --sol-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --sol-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --sol-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --sol-radius: 12px;
  --sol-radius-sm: 8px;
  --sol-radius-lg: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--sol-body);
  background-color: #ffffff;
  line-height: 1.65;
  font-size: 0.975rem;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .page-wrapper, .site-content {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--sol-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--sol-primary);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--sol-primary-hover);
}

/* ==========================================================================
   Utility Classes & Overrides
   ========================================================================== */
.bg-light-surface { background-color: var(--sol-bg-light) !important; }
.bg-primary-subtle-custom { background-color: var(--sol-primary-subtle) !important; color: var(--sol-primary-hover) !important; }
.bg-accent-subtle-custom { background-color: var(--sol-accent-subtle) !important; color: var(--sol-accent-hover) !important; }
.text-primary-custom { color: var(--sol-primary) !important; }
.text-accent-custom { color: var(--sol-accent) !important; }
.text-muted-custom { color: var(--sol-muted) !important; }
.border-custom { border-color: var(--sol-border) !important; }

.btn-primary-solar {
  background-color: var(--sol-primary);
  border-color: var(--sol-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--sol-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-primary-solar:hover, .btn-primary-solar:focus {
  background-color: var(--sol-primary-hover);
  border-color: var(--sol-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
  transform: translateY(-1px);
}

.btn-accent-solar {
  background-color: var(--sol-accent);
  border-color: var(--sol-accent);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--sol-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-accent-solar:hover, .btn-accent-solar:focus {
  background-color: var(--sol-accent-hover);
  border-color: var(--sol-accent-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.btn-outline-solar {
  border: 1.5px solid var(--sol-primary);
  color: var(--sol-primary);
  background: transparent;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--sol-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-outline-solar:hover {
  background-color: var(--sol-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.card-solar {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius);
  transition: all 0.25s ease;
}
.card-solar:hover {
  border-color: #cbd5e1;
  box-shadow: var(--sol-shadow-md);
  transform: translateY(-3px);
}

.badge-solar-green {
  background-color: var(--sol-primary-subtle);
  color: var(--sol-primary-hover);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-solar-yellow {
  background-color: var(--sol-accent-subtle);
  color: var(--sol-accent-hover);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.topbar {
  background-color: var(--sol-dark);
  color: #94a3b8;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar a {
  color: #cbd5e1;
}
.topbar a:hover {
  color: #ffffff;
}

.navbar-solar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--sol-border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--sol-dark);
  letter-spacing: -0.02em;
}
.navbar-brand-logo span {
  color: var(--sol-primary);
}

.navbar-solar .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sol-slate);
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--sol-radius-sm);
  transition: all 0.2s ease;
}
.navbar-solar .nav-link:hover,
.navbar-solar .nav-link.active {
  color: var(--sol-primary);
  background-color: var(--sol-bg-light);
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sol-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sol-slate);
  background: #ffffff;
  position: relative;
  transition: all 0.2s ease;
}
.nav-icon-btn:hover {
  background: var(--sol-bg-light);
  color: var(--sol-primary);
  border-color: var(--sol-primary-light);
}
.nav-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--sol-accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Mega dropdown menu */
.dropdown-menu-custom {
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius);
  box-shadow: var(--sol-shadow-lg);
  padding: 0.75rem;
  min-width: 220px;
}
.dropdown-item {
  border-radius: var(--sol-radius-sm);
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--sol-slate);
}
.dropdown-item:hover {
  background-color: var(--sol-primary-subtle);
  color: var(--sol-primary-hover);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero-home {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fefce8 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  color: var(--sol-primary-hover);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--sol-shadow-sm);
}
.hero-image-wrapper {
  position: relative;
}
.hero-image-wrapper img {
  border-radius: var(--sol-radius-lg);
  box-shadow: var(--sol-shadow-lg);
  border: 4px solid #ffffff;
  object-fit: cover;
  width: 100%;
  height: 480px;
}
.hero-floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: var(--sol-radius);
  box-shadow: var(--sol-shadow-lg);
  padding: 1rem 1.25rem;
  border: 1px solid var(--sol-border);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.page-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--sol-border);
}
.breadcrumb-item a {
  color: var(--sol-muted);
}
.breadcrumb-item.active {
  color: var(--sol-slate);
  font-weight: 600;
}

/* ==========================================================================
   Features, Stats & Cards
   ========================================================================== */
.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--sol-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-icon-box.green {
  background-color: var(--sol-primary-subtle);
  color: var(--sol-primary);
}
.feature-icon-box.yellow {
  background-color: var(--sol-accent-subtle);
  color: var(--sol-accent);
}
.feature-icon-box.slate {
  background-color: #f1f5f9;
  color: var(--sol-slate);
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}
.stat-card:hover {
  box-shadow: var(--sol-shadow);
  border-color: #cbd5e1;
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--sol-dark);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Product Cards & E-Commerce
   ========================================================================== */
.product-card {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius);
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--sol-shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative;
  background-color: #f8fafc;
  overflow: hidden;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  max-height: 180px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-action-btns {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.9;
  z-index: 2;
}
.btn-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--sol-border);
  color: var(--sol-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: var(--sol-shadow-sm);
}
.btn-action-icon:hover {
  background: var(--sol-primary);
  color: #ffffff;
  border-color: var(--sol-primary);
}
.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sol-dark);
}
.product-old-price {
  font-size: 0.9rem;
  color: var(--sol-muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-weight: 500;
}

/* Quantity selector */
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius-sm);
  background: #ffffff;
}
.quantity-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--sol-slate);
  cursor: pointer;
  transition: background 0.15s;
}
.quantity-btn:hover {
  background: var(--sol-bg-light);
}
.quantity-input {
  width: 44px;
  height: 36px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calc-wrapper {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius-lg);
  box-shadow: var(--sol-shadow-lg);
  padding: 2.5rem;
}
.calc-result-box {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--sol-radius);
  padding: 2rem;
  height: 100%;
}
.calc-metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: #4ade80;
  line-height: 1.1;
}

.range-slider-custom {
  accent-color: var(--sol-primary);
  height: 8px;
  border-radius: 4px;
}

/* ==========================================================================
   Solar Packages & Pricing
   ========================================================================== */
.package-card {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.package-card:hover {
  box-shadow: var(--sol-shadow-lg);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}
.package-card.featured {
  border: 2px solid var(--sol-primary);
  box-shadow: var(--sol-shadow-md);
}
.package-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sol-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
}
.package-capacity {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sol-dark);
  line-height: 1;
}

/* ==========================================================================
   Dashboard & Tables
   ========================================================================== */
.dash-sidebar {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius);
  padding: 1.25rem;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--sol-radius-sm);
  color: var(--sol-slate);
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}
.dash-nav-link:hover, .dash-nav-link.active {
  background-color: var(--sol-primary-subtle);
  color: var(--sol-primary-hover);
}
.dash-widget {
  background: #ffffff;
  border: 1px solid var(--sol-border);
  border-radius: var(--sol-radius);
  padding: 1.5rem;
}

/* ==========================================================================
   Order Tracking & Timelines
   ========================================================================== */
.timeline-track {
  position: relative;
  padding-left: 2rem;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--sol-border);
}
.timeline-step {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-step:last-child {
  margin-bottom: 0;
}
.timeline-step-dot {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--sol-primary);
  box-shadow: 0 0 0 3px #dcfce7;
}
.timeline-step.completed .timeline-step-dot {
  background: var(--sol-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-solar {
  background-color: var(--sol-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  width: 100%;
}
.footer-solar h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.footer-solar .text-muted {
  color: #94a3b8 !important;
}
.footer-solar a {
  color: #94a3b8;
  font-size: 0.925rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}
.footer-solar a:hover {
  color: #22c55e !important;
  transform: translateX(3px);
}
.footer-solar .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #cbd5e1 !important;
}
.footer-solar .btn-outline-secondary:hover {
  background-color: var(--sol-primary) !important;
  border-color: var(--sol-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
.footer-solar .form-control {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}
.footer-solar .form-control::placeholder {
  color: #64748b !important;
}
.footer-solar .form-control:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25) !important;
}
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.footer-bottom a {
  color: #94a3b8;
}
.footer-bottom a:hover {
  color: #ffffff !important;
  transform: none;
}

/* Quick Page Navigation Floater (ThemeForest Reviewer & Buyer helper) */
.template-switcher-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  background: var(--sol-dark);
  color: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 9999px;
  padding: 0.6rem 1.2rem;
  box-shadow: var(--sol-shadow-lg);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.template-switcher-btn:hover {
  background: #1e293b;
  transform: scale(1.03);
}

/* Toast container */
.sol-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sol-toast {
  background: #ffffff;
  border-left: 4px solid var(--sol-primary);
  border-radius: var(--sol-radius-sm);
  box-shadow: var(--sol-shadow-lg);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Centralized Authentication System & Modal
   ========================================================================== */
#solarisAuthModal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
}
#solarisAuthModal .form-control {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.925rem;
}
#solarisAuthModal .input-group-text {
  border-radius: 10px 0 0 10px;
  background-color: #f8fafc;
  border-color: #dee2e6;
}
#solarisAuthModal .input-group .form-control:not(:first-child) {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.auth-user-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 4px 12px 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  color: var(--sol-dark);
  font-size: 0.875rem;
  font-weight: 600;
}
.auth-user-btn:hover {
  background: #f8fafc;
  border-color: var(--sol-primary);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}
.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
}
.user-avatar-circle::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}
.auth-dropdown-menu {
  min-width: 240px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
}
.auth-dropdown-menu .dropdown-item {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-dropdown-menu .dropdown-item:hover {
  background-color: #f0fdf4;
  color: #166534;
}
.auth-dropdown-menu .dropdown-item.text-danger:hover {
  background-color: #fef2f2;
  color: #b91c1c !important;
}

