/**
 * Fabrican Laundry Services - Master Stylesheet
 * Brand Aesthetic matched to Official 3D Circular Logo
 * (Midnight Navy #0c2340, Electric Cyan #0091ea, Royal Cerulean #00509d, Aqua Glow #00a8ff, Eco Mint #10b981)
 */

:root {
  /* Brand Palette Derived from Official Logo */
  --fab-primary: #0091ea;            /* Vibrant Azure / Electric Cyan from logo */
  --fab-primary-hover: #0077c2;      /* Rich Royal Blue hover */
  --fab-primary-light: #e0f2fe;      /* Soft cyan water tint */
  --fab-secondary: #00509d;          /* Deep Royal Cerulean */
  --fab-navy: #0c2340;               /* Midnight Navy from logo outer rim & brand font */
  --fab-dark: #0c2340;
  --fab-dark-hover: #071526;
  --fab-sidebar-bg: #071526;         /* Logo-inspired deepest midnight navy */
  --fab-card-bg: #ffffff;
  --fab-body-bg: #f8fafc;
  --fab-border: #e2e8f0;
  --fab-border-brand: rgba(0, 145, 234, 0.22);
  --fab-text-main: #0c2340;          /* Deep Navy text for ultra-crisp readability */
  --fab-text-muted: #64748b;
  --fab-cyan: #00a8ff;               /* Electric splash cyan */
  --fab-cyan-glow: #00e5ff;          /* Bubble highlight glow */
  --fab-success: #10b981;            /* Fresh Eco Leaf Mint green from logo */
  --fab-warning: #f59e0b;
  --fab-danger: #ef4444;
  --fab-radius: 14px;
  --fab-shadow: 0 10px 25px -5px rgba(12, 35, 64, 0.06), 0 8px 10px -6px rgba(12, 35, 64, 0.04);
  --fab-shadow-hover: 0 20px 35px -10px rgba(0, 145, 234, 0.22);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--fab-body-bg);
  color: var(--fab-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--fab-navy);
  letter-spacing: -0.02em;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
section.text-white h1, section.text-white h2, section.text-white h3,
[class*="bg-navy"] h1, [class*="bg-navy"] h2, [class*="bg-navy"] h3,
.hero-slider-section h1, .hero-slider-section h2 {
  color: #ffffff !important;
}

a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Primary Brand Components & High Contrast */
.bg-primary { 
  background: linear-gradient(135deg, var(--fab-primary) 0%, var(--fab-secondary) 100%) !important; 
  color: #ffffff !important;
}
.text-primary { color: var(--fab-primary) !important; }

/* High-Contrast Light Text Inside Blue Backgrounds */
.bg-primary,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary p, .bg-primary span, .bg-primary div, .bg-primary label, .bg-primary li,
.bg-navy, .bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy p, .bg-navy span {
  color: #ffffff !important;
}

.bg-primary a:not(.btn) {
  color: #00e5ff !important;
}
.bg-primary a:not(.btn):hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Light text on buttons with blue backgrounds */
.bg-primary .btn-light,
.hero-slider-section .btn-light {
  background-color: #ffffff !important;
  color: #0c2340 !important;
  border-color: #ffffff !important;
  font-weight: 700 !important;
}
.bg-primary .btn-light:hover,
.hero-slider-section .btn-light:hover {
  background-color: #e0f2fe !important;
  color: #00509d !important;
}

/* Ensure any blue text inside blue or dark containers is light cyan */
.bg-primary .text-primary,
.bg-navy .text-primary,
.hero-slider-section .text-primary,
.hero-docked-strip .text-primary,
.dashboard-sidebar .text-primary,
.card.bg-primary .text-primary {
  color: #00e5ff !important;
}

.btn-primary {
  background: linear-gradient(135deg, #0091ea 0%, #0077c2 100%);
  border-color: #0091ea;
  border-radius: 10px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 145, 234, 0.32);
  transition: all 0.2s ease;
}
.btn-primary *,
.btn-primary i,
.btn-primary span {
  color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, #00a8ff 0%, #00509d 100%);
  border-color: #0077c2;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 145, 234, 0.45);
}
.btn-primary:hover *, .btn-primary:focus *, .btn-primary:active * {
  color: #ffffff !important;
}

.btn-secondary {
  background-color: var(--fab-secondary);
  border-color: var(--fab-secondary);
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-primary {
  color: var(--fab-primary);
  border-color: var(--fab-primary);
  border-radius: 10px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--fab-primary);
  border-color: var(--fab-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 145, 234, 0.3);
}

/* Cards & Containers */
.card {
  border: 1px solid var(--fab-border);
  border-radius: var(--fab-radius);
  box-shadow: var(--fab-shadow);
  background: var(--fab-card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--fab-shadow-hover);
  border-color: var(--fab-border-brand);
}

/* Navigation & Navbar */
.public-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(0, 145, 234, 0.15);
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.05);
}
.brand-round-logo {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-round-logo:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 16px rgba(0, 145, 234, 0.5) !important;
}
.nav-link {
  font-weight: 600;
  color: var(--fab-text-main);
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--fab-primary) !important;
  background: rgba(0, 145, 234, 0.08);
}

/* Hero Slider Section - Tall, Grand & Visually Immersive */
.hero-slider-section {
  position: relative;
  background: #071526;
  overflow: hidden;
}
.hero-slide-item {
  min-height: 740px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 7rem 0 11rem;
  display: flex;
  align-items: center;
  transition: transform 0.8s ease-in-out;
}
/* Ultra-Transparent Floating Glass Card */
.hero-glass-card {
  background: rgba(7, 21, 38, 0.16);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  max-width: 630px;
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.hero-heading {
  font-size: clamp(1.4rem, 2.5vw, 2.05rem) !important;
  font-weight: 800;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.hero-slider-section .carousel-indicators {
  bottom: 125px;
  margin-bottom: 0;
  z-index: 12;
}
.hero-slider-section .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  transition: all 0.3s ease;
}
.hero-slider-section .carousel-indicators .active {
  width: 48px;
  background-color: #00a8ff;
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.8);
}

/* Hero Carousel Controls - Positioned at Far Left and Far Right Edges */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 42%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(7, 21, 38, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(0, 168, 255, 0.35);
  color: #ffffff;
  opacity: 0.9;
  z-index: 14;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hero-slider-section .carousel-control-prev {
  left: 20px;
  right: auto;
}
.hero-slider-section .carousel-control-next {
  right: 20px;
  left: auto;
}
.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
  background: #0091ea;
  border-color: #00e5ff;
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(0, 168, 255, 0.7);
}

/* Luxurious Docked Glassmorphism Action Bar - Placed on the Bottom of Hero Images */
.hero-docked-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(7, 21, 38, 0.90);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 2px solid rgba(0, 168, 255, 0.38);
  box-shadow: 0 -12px 45px rgba(7, 21, 38, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 1.25rem 0;
  z-index: 20;
}
.hero-docked-strip .form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}
.hero-docked-strip .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #00e5ff;
  box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.25);
}

@media (min-width: 992px) {
  .border-end-lg {
    border-right: 1px solid rgba(0, 168, 255, 0.25) !important;
  }
}

@media (max-width: 991.98px) {
  .hero-slide-item {
    min-height: 780px;
    padding: 4rem 0 16rem;
  }
  .hero-slider-section .carousel-indicators {
    bottom: 230px;
  }
  .hero-slider-section .carousel-control-prev {
    left: 10px;
  }
  .hero-slider-section .carousel-control-next {
    right: 10px;
  }
  .hero-docked-strip {
    padding: 1.15rem 0;
  }
}

/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}
.dashboard-sidebar, .dashboard-sidebar.offcanvas-lg {
  width: 260px;
  background: var(--fab-sidebar-bg) !important;
  color: #94a3b8 !important;
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 1px solid rgba(0, 145, 234, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-menu {
  padding: 1rem 0;
  list-style: none;
  margin: 0;
  flex-grow: 1;
}
.sidebar-item {
  margin-bottom: 0.25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-link:hover {
  background: rgba(0, 145, 234, 0.1);
  color: #ffffff;
}
.sidebar-link.active {
  background: rgba(0, 145, 234, 0.16);
  color: #00e5ff;
  border-left-color: #0091ea;
  font-weight: 600;
}
.sidebar-link i {
  font-size: 1.15rem;
}

.dashboard-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dashboard-topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 145, 234, 0.15);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Metric / Stat Widgets */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--fab-radius);
  background: #ffffff;
  border: 1px solid var(--fab-border);
  box-shadow: var(--fab-shadow);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.stat-icon-blue { background: #e0f2fe; color: #0091ea; }
.stat-icon-green { background: #d1fae5; color: #10b981; }
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-icon-blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon-green { background: #d1fae5; color: #059669; }
.stat-icon-amber { background: #fef3c7; color: #d97706; }
.stat-icon-cyan { background: #cffafe; color: #0891b2; }
.stat-icon-purple { background: #f3e8ff; color: #7e22ce; }

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: 2rem;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--fab-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fab-primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--fab-primary);
}
.timeline-dot.completed { background: var(--fab-success); box-shadow: 0 0 0 2px var(--fab-success); }
.timeline-dot.pending { background: #cbd5e1; box-shadow: 0 0 0 2px #cbd5e1; }

/* Badges */
.badge {
  font-weight: 600;
  padding: 0.45em 0.75em;
  border-radius: 6px;
}

/* Floating WhatsApp Button */
.fab-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}
.fab-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

/* Comprehensive Mobile & Tablet Optimizations */
@media (max-width: 991.98px) {
  .dashboard-wrapper {
    display: block;
    min-height: 100vh;
  }
  .dashboard-sidebar.offcanvas-lg {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px !important;
    height: 100vh !important;
    z-index: 1055;
    background: var(--fab-sidebar-bg) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  .dashboard-topbar {
    padding: 0.75rem 1rem;
  }
  .dashboard-body {
    padding: 1rem !important;
  }
  .brand-text-wrap {
    max-width: 200px;
  }
  .brand-line-1 {
    font-size: 1.05rem !important;
  }
  .brand-line-2 {
    font-size: 0.62rem !important;
  }
}

@media (min-width: 992px) {
  .dashboard-sidebar.offcanvas-lg {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    width: 260px !important;
    height: auto !important;
  }
}

/* Mobile Touch & Table Enhancements */
@media (max-width: 767.98px) {
  .stat-card {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .stat-card h3 {
    font-size: 1.35rem;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 10px;
  }
  .table-responsive {
    border-radius: 12px;
    border: 1px solid var(--fab-border);
  }
  .hero-docked-strip .input-group-lg {
    font-size: 0.95rem;
  }
}

/* Printable Invoice Styles */
@media print {
  body { background: white !important; }
  .no-print, .dashboard-sidebar, .dashboard-topbar, footer {
    display: none !important;
  }
  .printable-invoice {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* Card Hover Micro-Interactions */
.transition-all {
  transition: all 0.25s ease-in-out;
}
.hover-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

