/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI, sans-serif;
}

body{
background:linear-gradient(135deg,#0f172a,#1e293b);
color:white;
min-height:100vh;
}


/* NAVBAR */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 40px;
background:rgba(15,23,42,.92);
backdrop-filter:blur(12px);
border-bottom:1px solid rgba(255,255,255,.1);
position:relative;
z-index:100;
}

.nav-brand{
text-decoration:none;
color:inherit;
width:100%;
display:flex;
justify-content:center;
}

.nav-brand-glass{
display:inline-flex;
align-items:center;
gap:10px;
padding:10px 14px;
border-radius:16px;
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.12);
box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

.nav-brand-icon{
width:22px;
height:22px;
border-radius:8px;
}

.nav-brand-text{
font-weight:800;
font-size:16px;
letter-spacing:0.2px;
color:#e2e8f0;
}

.nav-logo{
font-weight:700;
font-size:18px;
color:#fff;
}

.nav-links a{
margin-left:20px;
text-decoration:none;
color:#cbd5e1;
font-size:14px;
transition:.3s;
}

.nav-links a:hover{
color:#7cff6b;
}

.nav-links .active{
color:#7cff6b;
font-weight:600;
}

@media(min-width:900px){
.navbar{
flex-direction:column;
justify-content:center;
align-items:center;
gap:12px;
}

.nav-links{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px 18px;
padding:10px 14px;
border-radius:18px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.10);
backdrop-filter:blur(12px);
}

.nav-links a{
margin-left:0;
white-space:nowrap;
}
}

@media(max-width:768px){
.navbar{
flex-direction:column;
align-items:stretch;
gap:12px;
padding:14px 14px;
}

.nav-brand{
width:100%;
display:flex;
justify-content:center;
}

.nav-brand-glass{
width:100%;
justify-content:center;
}

.nav-links{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px 14px;
padding:8px 10px;
border-radius:16px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.10);
backdrop-filter:blur(12px);
}

.nav-links a{
margin-left:0;
font-size:13px;
color:#cbd5e1;
white-space:nowrap;
}
}


/* HERO */

.hero {
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(circle at top left, #1e3c72, #0f2027);
  color: white;
}

.hero h1{
font-size:32px;
margin-bottom:10px;
}

.hero p{
opacity:0.7;
}


/* CONTAINER */

.container{
max-width:600px;
margin:auto;
padding:20px;
}


/* CARD */

.card{
background:rgba(255,255,255,0.04);
backdrop-filter:blur(8px);
padding:25px;
border-radius:16px;
box-shadow:0 0 25px rgba(0,0,0,0.5);
}


/* FORM */

.card label{
display:block;
margin-top:18px;
font-size:14px;
opacity:0.9;
}

.card select,
.card input{
width:100%;
margin-top:6px;
padding:12px;

border-radius:10px;
border:none;

background:#020617;
color:white;
}


/* BUTTON */

.card button{
margin-top:20px;
width:100%;

padding:14px;

border:none;
border-radius:12px;

background:linear-gradient(135deg,#22c55e,#16a34a);

font-weight:600;
color:white;

cursor:pointer;

transition:0.25s;
}

.card button:hover{
transform:scale(1.03);
}


/* RESULT */

.result-card{
margin-top:25px;

padding:20px;

background:#020617;

border-radius:14px;

min-height:80px;

line-height:1.6;
}


/* MOBILE */

@media(max-width:768px){

.navbar{
padding:15px 20px;
}

.hero h1{
font-size:26px;
}

.container{
padding:15px;
}

}

.iddah-info{
margin-top:15px;
line-height:1.8;
}

.fiqh-note{
margin-top:20px;
padding:15px;
background:#020617;
border-radius:12px;
}

.fiqh-note h4{
margin-bottom:8px;
color:#22c55e;
}

.dalil{
margin-top:10px;
opacity:0.7;
font-size:14px;
}

.timeline{

display:grid;

grid-template-columns:repeat(7,1fr);

gap:6px;

margin-top:10px;

}

.timeline-day{

background:#020617;

padding:8px;

border-radius:6px;

text-align:center;

font-size:12px;

}

.kitab{

opacity:.8;

font-size:14px;

line-height:1.6;

}

.data-haid{

max-width:560px;
margin:20px auto 60px auto;

padding:18px 22px;

background:linear-gradient(
135deg,
rgba(30,40,55,.7),
rgba(20,30,45,.7)
);

backdrop-filter:blur(8px);

border-radius:16px;

border:1px solid rgba(255,255,255,.06);

box-shadow:
0 15px 35px rgba(0,0,0,.5),
inset 0 0 0 1px rgba(255,255,255,.05);

font-size:14px;
line-height:1.8;

color:#d6eaff;

}

.data-haid span{

font-weight:bold;

color:#7fd6ff;

font-size:15px;

margin-left:4px;

}

.data-haid:hover{

box-shadow:
0 10px 30px rgba(0,170,255,.2),
inset 0 0 0 1px rgba(255,255,255,.07);

transform:translateY(-2px);

transition:.3s;

}

.today{
border:2px solid #fff;
box-shadow:
0 0 10px white,
0 0 20px rgba(255,255,255,.6);
}

.quru1{
background:linear-gradient(135deg,#2563eb,#1e40af);
}

.quru2{
background:linear-gradient(135deg,#0ea5e9,#0369a1);
}

.quru3{
background:linear-gradient(135deg,#22c55e,#15803d);
}

.timeline-day{

padding:8px 6px;

border-radius:10px;

font-size:13px;

font-weight:600;

text-align:center;

transition:0.2s;

}

.timeline-day:hover{
transform:scale(1.05);
}

.legend-quru{
margin-top:12px;
display:flex;
gap:15px;
font-size:13px;
opacity:.8;
}

.legend-quru span{
width:14px;
height:14px;
border-radius:4px;
display:inline-block;
margin-right:4px;
}

.quru1-box{background:#1e40af;}
.quru2-box{background:#0284c7;}
.quru3-box{background:#16a34a;}

.iddah-progress{
height:8px;
background:#1f2937;
border-radius:20px;
overflow:hidden;
margin:10px 0 15px;
}

#iddahBar{
height:100%;
background:linear-gradient(90deg,#22c55e,#4ade80);
width:0%;
}

.result-card{
animation:fadeUp .4s ease;
}

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

.quru-info{
font-size:14px;
opacity:.8;
margin-top:6px;
}

.footer{

box-shadow:0 -5px 30px rgba(0,255,150,.05);

margin-top:80px;

background:#020617;

border-top:1px solid rgba(255,255,255,.1);

padding:30px 20px;

}

.footer-container{

max-width:900px;
margin:auto;

display:flex;
flex-direction:column;
align-items:center;
gap:12px;

}

.footer-left{

font-weight:600;
color:#fff;
font-size:16px;

}

.footer-menu a{

margin:0 10px;
color:#94a3b8;
text-decoration:none;
font-size:14px;

}

.footer-menu a:hover{

color:#7cff6b;

}

.footer-copy{

color:#64748b;
font-size:13px;

}

input[type="date"]::-webkit-calendar-picker-indicator{
filter: invert(1) brightness(2);
opacity:1;
}

@media (max-width:768px){

.timeline{
display:grid;
grid-template-columns:repeat(7,1fr);
gap:4px;
}

.timeline-day{
display:flex;
align-items:center;
justify-content:center;
height:30px;
font-size:11px;
border-radius:8px;
padding:0;
}

}

/* ===== BALIKIN STYLE PILIHAN BAHASA BIAR BAGUS ===== */
.fiqh-lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.fiqh-lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff;
  border-radius: 999px;
  padding: 6px 30px 6px 12px;
  font-size: 12px;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 1px), calc(100% - 11px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.fiqh-lang-switch select:hover,
.fiqh-lang-switch select:focus {
  border-color: rgba(255,255,255,.45);
  background-color: rgba(255,255,255,.14);
}

@media (max-width: 768px) {
  .fiqh-lang-switch {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .fiqh-lang-switch select {
    font-size: 12px;
    padding: 6px 28px 6px 12px;
  }
}

.scroll-to-top{
  position: fixed;

  left: 18px;
  bottom: 26px;

  width: 42px;
  height: 36px;

  border: none;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  background: linear-gradient(135deg,#ef4444,#dc2626);

  color: white;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.25),
    0 3px 8px rgba(239,68,68,0.35);

  opacity: 0;
  visibility: hidden;

  transform: translateY(14px);
  transition: all 0.28s ease;

  z-index: 999;
  pointer-events: none;
}

.scroll-to-top svg{
  width: 16px;
  height: 16px;
}

.scroll-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.3),
    0 6px 14px rgba(239,68,68,0.45);
}

.scroll-to-top:active{
  transform: scale(0.95);
}