/* Custom overrides for E-Complain home - Modern Dark Blue Theme */
body.landing {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: #0f2234;
  background-image: url('../lampiran/Background_sipol_new.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100dvh;
  color: #e8f0f7;
}

html,
body {
  height: 100%;
}

body.landing::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.28) 0%, rgba(8, 20, 34, 0.38) 100%);
  pointer-events: none;
  z-index: 0;
}

#page-wrapper {
  position: relative;
  z-index: 1;
}

body.landing #page-wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Override Spectral default landing background (banner.jpg). */
body.landing #page-wrapper,
body.is-mobile.landing #page-wrapper,
body.is-mobile.landing #banner {
  background-image: linear-gradient(180deg, rgba(8, 20, 34, 0.2), rgba(8, 20, 34, 0.3)), url('../lampiran/Background_sipol_new.png') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

body.landing #page-wrapper {
  background-attachment: fixed !important;
}

#banner {
  padding: 2rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  flex: 1 0 auto;
}

.hero-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(20, 38, 64, 0.18);
  border: 2px solid rgba(139, 180, 222, 0.16);
  border-radius: 20px;
  padding: 3rem 2.8rem;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(139, 180, 222, 0.14),
    0 0 28px rgba(74, 144, 226, 0.1);
  text-align: center;
  backdrop-filter: blur(7px);
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  justify-content: center;
  margin-bottom: 1.5rem;
}

.brand .logo { 
  width: 80px; 
  height: 80px; 
  border-radius: 16px; 
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
  border: 2px solid rgba(139, 180, 222, 0.3);
}

.brand-text h1 { 
  margin: 0; 
  font-size: 2.2rem; 
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-text .caption { 
  margin: 8px 0 0; 
  color: #8bb4de; 
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.lead { 
  color: #b8ccda; 
  font-size: 1.1rem; 
  margin: 24px 0 28px;
  font-weight: 500;
  line-height: 1.6;
}

.actions-row { 
  display: flex; 
  gap: 18px; 
  justify-content: center; 
  flex-wrap: wrap;
}

.actions-wrapper { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 28px;
  margin-top: 12px;
}

.actions-row-top { 
  display: flex; 
  justify-content: center;
}

.button.big { 
  padding: 1rem 2rem; 
  font-size: 1rem; 
  border-radius: 12px; 
  display: inline-flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  text-align: center; 
  letter-spacing: 1px; 
  font-weight: 700; 
  box-sizing: border-box; 
  min-width: 220px; 
  text-transform: uppercase; 
  line-height: 1 !important; 
  height: auto; 
  margin: 0;
  border: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.button.big::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.button.big:hover::before {
  left: 100%;
}

.button.primary.big { 
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important; 
  color: #fff !important; 
  box-shadow: 
    0 8px 24px rgba(25, 118, 210, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; 
  display: inline-flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  text-align: center !important;
}

.button.primary.big.btn-guest { 
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important; 
  box-shadow:
    0 8px 24px rgba(255, 107, 107, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.button.primary.big:hover { 
  transform: translateY(-4px); 
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%) !important; 
  box-shadow: 
    0 14px 32px rgba(25, 118, 210, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.button.primary.big.btn-guest:hover { 
  background: linear-gradient(135deg, #ee5a52 0%, #d64230 100%) !important; 
  box-shadow: 
    0 14px 32px rgba(255, 107, 107, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-4px);
}

.button.disabled { 
  opacity: 0.45; 
  pointer-events: none; 
  filter: grayscale(50%); 
  box-shadow: none !important;
}

.button.big:active {
  transform: translateY(-2px);
}

/* Button Supplier - Orange Color */
.button.primary.big.btn-supplier { 
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%) !important; 
  box-shadow:
    0 8px 24px rgba(255, 165, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.button.primary.big.btn-supplier:hover { 
  background: linear-gradient(135deg, #FF8C00 0%, #FF6347 100%) !important; 
  box-shadow: 
    0 14px 32px rgba(255, 165, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-4px);
}

/* Button Internal - Blue Color (Original) */
.button.primary.big.btn-internal { 
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important; 
  box-shadow:
    0 8px 24px rgba(25, 118, 210, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.button.primary.big.btn-internal:hover { 
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%) !important; 
  box-shadow: 
    0 14px 32px rgba(25, 118, 210, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-4px);
}

/* Footer tweaks */
#footer { 
  margin-top: 0;
  background: rgba(10, 25, 43, 0.5);
  padding: 1rem 2rem;
  border-top: 1px solid rgba(139, 180, 222, 0.2);
  flex-shrink: 0;
}

#footer .copyright {
  color: #8bb4de !important;
}

#footer .copyright li {
  color: #8bb4de !important;
}

#footer a {
  color: #4dabf7 !important;
  transition: color 0.3s ease;
}

#footer a:hover {
  color: #74c0fc !important;
}

@media (max-width: 768px) {
  body.landing {
    background-attachment: scroll;
  }

  body.landing #page-wrapper {
    background-attachment: scroll !important;
  }

  .brand { 
    flex-direction: column;
    gap: 12px;
  }
  
  .brand .logo {
    width: 64px;
    height: 64px;
  }
  
  .brand-text h1 { 
    font-size: 1.8rem;
  }
  
  .hero-card { 
    padding: 2rem 1.6rem;
  }
  
  .actions-row { 
    gap: 12px;
    margin-bottom: 8px;
  }
  
  .button.big { 
    min-width: 180px;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  #banner {
    padding: 2rem 0.5rem;
    min-height: auto;
    flex: 0 0 auto;
  }
  
  .hero-card { 
    padding: 1.8rem 1.2rem;
    border-radius: 16px;
  }
  
  .brand-text h1 { 
    font-size: 1.5rem;
  }
  
  .lead { 
    font-size: 0.95rem;
    margin: 16px 0 20px;
  }
  
  .actions-row { 
    gap: 10px;
    flex-direction: column;
  }
  
  .button.big { 
    min-width: 0; 
    width: 100%;
    max-width: 100%;
  }
  
  .brand .logo {
    width: 56px;
    height: 56px;
  }
}
