/* ==========================================================================
   Multi-Utility Dashboard Page Styles - Aquasense
   ========================================================================== */

/* Hero Banner */
.mud-hero {
  position: relative;
  background: linear-gradient(135deg, #07192f 0%, #0a2540 50%, #001f3f 100%);
  color: #ffffff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.mud-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.mud-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

.mud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 128, 237, 0.15);
  border: 1px solid rgba(47, 128, 237, 0.35);
  color: #64b5f6;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.mud-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #20e070;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #20e070;
  animation: mudPulse 1.8s infinite;
}

@keyframes mudPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 224, 112, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(32, 224, 112, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 224, 112, 0);
  }
}

.mud-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #ffffff;
}

.mud-hero-title span {
  background: linear-gradient(90deg, #2f80ed 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mud-hero-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #90caf9;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.mud-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 30px;
  max-width: 620px;
}

.mud-hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.mud-btn-primary {
  background: linear-gradient(135deg, #2f80ed 0%, #1c64c4 100%);
  color: #ffffff !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(47, 128, 237, 0.4);
  transition: all 0.3s ease;
  border: none;
}

.mud-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 128, 237, 0.6);
  color: #ffffff;
}

.mud-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.mud-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* Glass Frame Preview Container */
.mud-hero-img-wrap {
  position: relative;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.mud-hero-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.mud-floating-chip {
  position: absolute;
  background: rgba(10, 25, 47, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.4);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mud-floating-chip.top-right {
  top: -15px;
  right: 20px;
}

.mud-floating-chip.bottom-left {
  bottom: -20px;
  left: 20px;
}

.mud-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mud-chip-icon.blue {
  background: rgba(47, 128, 237, 0.2);
  color: #2f80ed;
}

.mud-chip-icon.green {
  background: rgba(32, 224, 112, 0.2);
  color: #20e070;
}

.mud-chip-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.mud-chip-lbl {
  font-size: 12px;
  color: #94a3b8;
}

/* Metric Highlights Cards Section */
.mud-section {
  padding: 80px 0;
}

.mud-bg-light {
  background-color: #f8fafc;
}

.mud-section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.mud-section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
}

.mud-section-title p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
}

/* Utility Cards Grid */
.mud-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mud-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #2f80ed;
}

.mud-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mud-card-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mud-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mud-icon-water {
  background: #e0f2fe;
  color: #0284c7;
}

.mud-icon-fire {
  background: #ffe4e6;
  color: #e11d48;
}

.mud-icon-air {
  background: #dcfce7;
  color: #16a34a;
}

.mud-icon-pressure {
  background: #f3e8ff;
  color: #9333ea;
}

.mud-icon-quality {
  background: #ccfbf1;
  color: #0d9488;
}

.mud-icon-energy {
  background: #fef3c7;
  color: #d97706;
}

.mud-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.mud-card-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.mud-status-normal {
  background: #dcfce7;
  color: #15803d;
}

.mud-status-good {
  background: #e0f2fe;
  color: #0369a1;
}

.mud-card-value-box {
  margin-bottom: 18px;
}

.mud-main-val {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.mud-main-unit {
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}

.mud-sub-trend {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mud-trend-down {
  color: #16a34a;
}

.mud-trend-up {
  color: #2563eb;
}

.mud-card-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.mud-stat-item {
  display: flex;
  flex-direction: column;
}

.mud-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.mud-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

/* Feature Details Showcase */
.mud-feature-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}

.mud-feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.mud-feature-content {
  flex: 1;
}

.mud-feature-img {
  flex: 1;
  position: relative;
}

.mud-feature-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.mud-feature-tag {
  font-size: 13px;
  font-weight: 700;
  color: #2f80ed;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.mud-feature-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
}

.mud-feature-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

.mud-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mud-feature-list li {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mud-feature-list li i {
  color: #20e070;
  font-size: 16px;
}

/* Key Insights & Sustainability Cards */
.mud-insights-card {
  background: linear-gradient(135deg, #0a2540 0%, #001f3f 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
}

.mud-insights-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mud-insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mud-insights-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #cbd5e1;
}

.mud-insights-list li:last-child {
  border-bottom: none;
}

.mud-insights-list li i {
  color: #38bdf8;
  margin-top: 3px;
}

.mud-sustainability-box {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
}

.mud-sustainability-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.mud-green-value {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

/* CTA Banner */
.mud-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2f80ed 100%);
  border-radius: 20px;
  padding: 60px 40px;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 20px 40px rgba(47, 128, 237, 0.3);
}

.mud-cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
}

.mud-cta p {
  font-size: 18px;
  color: #dbeafe;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .mud-hero-title {
    font-size: 32px;
  }

  .mud-feature-block,
  .mud-feature-block:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 575px) {
  .mud-hero {
    padding: 50px 0 70px;
  }

  .mud-hero-title {
    font-size: 26px;
  }

  .mud-main-val {
    font-size: 26px;
  }
}