/* SLG Milk Dairies - Creamy White Theme Maintenance Page */
:root {
  --bg-cream: #FAF7F2;
  --bg-cream-dark: #F3ECE1;
  --card-bg: #FFFFFF;
  --card-border: #EFE8DD;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --accent-gold: #D97706;
  --accent-gold-light: #FEF3C7;
  --accent-gold-border: #FDE68A;
  --accent-green: #16A34A;
  --accent-green-bg: #F0FDF4;
  --accent-green-border: #BBF7D0;
  --accent-navy: #0F172A;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Strict NO SCROLLING */
  background-color: var(--bg-cream);
  font-family: var(--font-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(217, 119, 6, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(22, 163, 74, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #FFFDF9 0%, #FAF7F2 100%);
}

/* Background Soft Ambient Decorative Orbs */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.shape-1 {
  width: clamp(250px, 40vw, 450px);
  height: clamp(250px, 40vw, 450px);
  background: #F5E8D3;
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: clamp(250px, 40vw, 450px);
  height: clamp(250px, 40vw, 450px);
  background: #E2F2E6;
  bottom: -100px;
  right: -100px;
}

/* Viewport Wrapper to Guarantee No Scroll */
.viewport-wrapper {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(10px, 2vh, 24px);
}

/* Main Card */
.maintenance-card {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(16px, 3vh, 32px) clamp(16px, 4vw, 36px);
  box-shadow: 
    0 20px 40px -10px rgba(120, 95, 65, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header Section */
.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(10px, 2vh, 18px);
}

.logo-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: clamp(6px, 1.5vh, 12px) clamp(12px, 3vw, 20px);
  background: #FAF7F2;
  border: 1px solid #EFE8DD;
  border-radius: 16px;
  margin-bottom: clamp(8px, 1.5vh, 14px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  max-height: clamp(40px, 7vh, 62px);
  width: auto;
  object-fit: contain;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-light);
  border: 1px solid var(--accent-gold-border);
  color: var(--accent-gold);
  padding: clamp(4px, 1vh, 6px) clamp(12px, 2vw, 16px);
  border-radius: 999px;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Content Section */
.content-section {
  text-align: center;
  margin-bottom: clamp(10px, 2vh, 18px);
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  margin-bottom: clamp(4px, 1vh, 8px);
}

.subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  line-height: 1.45;
  max-width: 480px;
  margin: 0 auto clamp(8px, 1.5vh, 14px) auto;
}

/* Active Notice Banner (Green / Fresh Milk Tint) */
.active-notice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-green-bg);
  border: 1.5px solid var(--accent-green-border);
  border-radius: 16px;
  padding: clamp(10px, 1.8vh, 14px) clamp(12px, 2.5vw, 18px);
  text-align: left;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.05);
}

.notice-badge-icon {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1;
  flex-shrink: 0;
}

.notice-heading {
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 2px;
}

.notice-subtext {
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  color: #334155;
  line-height: 1.35;
}

/* Contact Section */
.contact-section {
  background: #FAF7F2;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: clamp(12px, 2vh, 18px);
  margin-bottom: clamp(10px, 2vh, 18px);
  text-align: center;
}

.contact-label {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.phone-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1.5vw, 10px);
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-green);
  color: #FFFFFF;
  text-decoration: none;
  padding: clamp(8px, 1.5vh, 11px) clamp(6px, 1vw, 10px);
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(0.75rem, 1.7vw, 0.88rem);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.phone-btn:hover {
  background: #15803D;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
}

.phone-btn:active {
  transform: translateY(0);
}

.phone-icon {
  font-size: 0.95em;
}

.meta-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 16px);
  padding-top: clamp(6px, 1vh, 10px);
  border-top: 1px dashed #E2D9CC;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  color: var(--text-secondary);
}

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

.meta-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.meta-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Footer Section */
.action-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 10px);
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-navy);
  color: #FFFFFF;
  border: none;
  padding: clamp(8px, 1.5vh, 11px) clamp(20px, 4vw, 28px);
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.refresh-button:hover {
  background: #334155;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.refresh-button:active {
  transform: translateY(0);
}

.refresh-icon.spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.footer-copy {
  font-size: clamp(0.7rem, 1.4vw, 0.78rem);
  color: var(--text-muted);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: clamp(12px, 3vh, 24px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-navy);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments for narrow screens */
@media (max-width: 540px) {
  .phone-buttons-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phone-btn {
    padding: 10px 12px;
  }

  .active-notice-box {
    padding: 10px 12px;
  }

  .meta-info-row {
    flex-direction: column;
    gap: 4px;
  }
}
