/* ========= GLOBAL ========= */
:root {
  --bg-deep:#0b3d2e;
  --bg-deeper:#083025;
  --accent:#9ad3b4;
  --card:#0f4937;
  --text:#fff;
  --muted:#cfe7dc;
  --chip:#135d47;
  --chip-active:#19765a;
}
html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Inter", sans-serif;
}
h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", serif;
}
a { color: var(--accent); }
.muted { color: var(--muted); }
.divider { border-top: 1px dashed rgba(255,255,255,.15); margin: 1rem 0; }

/* ========= BANNER ========= */
.banner {
  position: relative;
  background: var(--bg-deeper) center/cover no-repeat;
  min-height: 280px;
}
.banner::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(11,61,46,.9),rgba(11,61,46,.45));
}
.banner-inner { 
  position:relative; 
  z-index:2; 
}
.brand-logo {
  width:90px; height:72px;
  background:rgba(255,255,255,.08);
  border-radius:25px;
  margin-bottom: 3.5rem;
  display:grid; 
  place-items:center;
}
.brand-logo i { 
  font-size:36px; 
  color:var(--accent); 
}
.title { 
  text-shadow:0 2px 20px rgba(0,0,0,.35); 
}

/* ========= TEA CARDS ========= */
.tea-card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid #2a5c44;
  transition: .2s;
  overflow: hidden;
}
.tea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.tea-thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.icon-link {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.pill {
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--chip);
  font-size: .75rem;
  color: var(--muted);
}

.icon-link i {
  font-size: 1.5rem;
}

.view-details {
  background-color: rgba(255,255,255,.08);
  color: white;
  border: 0;
  border-radius: 10px;
}

/* ========= NAV / TABS ========= */
.nav-pills .nav-link {
  background: var(--chip);
  color: var(--muted);
  margin: .25rem;
}
.nav-pills .nav-link.active {
  background: var(--chip-active);
  color: #fff;
}
.category-scroller { overflow:auto; white-space:nowrap; }
.category-scroller .nav { flex-wrap:nowrap; }

/* 
 * ========================================
 * ===== NEW BREWING CALCULATOR STYLES ====
 * ========================================
 */

.timer-card {
  background: var(--card);
  border-radius: 16px;
}

/* Tea Type Tabs */
.tea-tabs {
  display: flex;
  flex-wrap: wrap; /* Allows tabs to wrap on small screens */
  gap: 0.5rem;
}
.tea-tab {
  border: 1px solid var(--chip);
  background-color: transparent;
  color: var(--muted);
  padding: 0.375rem 1.3rem;
  border-radius: 10px; /* Pill shape */
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
}
.tea-tab:hover {
  background-color: var(--chip);
  color: var(--text);
}
.tea-tab.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deeper);
  font-weight: bold;
}

/* Water Volume Slider */
.form-range {
  padding: 0; /* remove default padding */
}
.form-range::-webkit-slider-thumb {
  background-color: var(--accent);
}
.form-range::-moz-range-thumb {
  background-color: var(--accent);
}

/* Spec Cards (Leaf, Temp, Time) */
.spec-heading {
  color: var(--muted);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(0,0,0,0.15);
  padding: 0.75rem;
  border-radius: 12px;
}
.spec-card i {
  font-size: 1.25rem;
  color: var(--accent);
}
.spec-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.spec-value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Timer Display and Controls */
.timer-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 2.8rem;
  font-weight: 300;
}
.timer-controls {
  display: flex;
  gap: 0.5rem;
}
.timer-btn {
  min-width: 100px;
  border-radius: 10px;
}

.form-control {
    color: var(--muted);
    background-color: rgba(255,255,255,.08);
}

.pagination .page-link {
  background-color: var(--card); 
  color: var(--text);             
  border: 1px solid var(--chip);  
  transition: all 0.2s ease-in-out;
}
.pagination .page-link:hover,
.pagination .page-link:focus {
  background-color: var(--chip-active); 
  color: var(--text);
  border-color: var(--chip-active);
}
.pagination .page-item.active .page-link {
  background-color: var(--accent);  
  border-color: var(--accent);
  color: var(--bg-deeper);          
  font-weight: bold;
}
.pagination .page-item.disabled .page-link {
  background-color: var(--card);
  color: var(--muted);      
  border-color: var(--chip);
  opacity: 0.6;             
}

/* ========= MODAL ========= */
.modal-content {
  background: var(--bg-deeper);
  color: var(--text);
}
.detail-label {
  font-weight: bolder;
  color: var(--muted);
  font-size: .85rem;
}
.detail-box {
  background: var(--card);
  border-radius: 12px;
  padding: .75rem;
}

footer {
    background-color: var(--card);
}
footer a {
    text-decoration: none;
    font-weight: bold;
    color: var(--muted);
    background: rgba(255,255,255,.08);
    padding: 1rem 2rem 1rem 2rem;
    border-radius: 10px;
}

/* ========= ADMIN ========= */
.admin-body {
    background:var(--bg-deeper); 
    color:white; 
}
.login-box {
  background:#133f30;
  padding:2rem;
  border-radius:12px;
  width:100%;
  max-width:400px;
  box-shadow:0 0 15px rgba(0,0,0,.4);
}
.login-box h2 { margin-bottom:1rem; text-align:center; }
.card { background:#333; color:white; }
.list-group-item { background:#444; color:white; }

/* ========= RESPONSIVE ========= */
@media (max-width:992px) {
  .timer-card-inner {
    flex-direction: row; /* Place timer and controls side-by-side on tablets */
    justify-content: space-around;
    width: 100%;
  }
}

@media (max-width:768px){
  .banner { min-height:200px; }
  .title { font-size:1.8rem; }
  .timer-card-inner {
    flex-direction: column; /* Stack timer and controls again on mobile */
  }
  
  .pagination .page-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }
}