:root{
  --bg: #000000;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --primary: #0b5cff;
  --primary-light: #3b82f6;
  --ok: #10b981;
  --warn: #f59e0b;
  --no: #ef4444;
  --chip: rgba(255, 255, 255, 0.1);
  --chip-hover: rgba(255, 255, 255, 0.15);
  --slider-track: rgba(255, 255, 255, 0.1);
  --slider-thumb: #ffffff;
  --backdrop: rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f5f5f7;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text: #1d1d1f;
    --text-secondary: rgba(29, 29, 31, 0.8);
    --text-muted: rgba(29, 29, 31, 0.6);
    --chip: rgba(0, 0, 0, 0.05);
    --chip-hover: rgba(0, 0, 0, 0.1);
    --slider-track: rgba(0, 0, 0, 0.1);
    --slider-thumb: #1d1d1f;
    --backdrop: rgba(255, 255, 255, 0.3);
  }
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}
body{
  margin:0; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); 
  color: var(--text);
  overflow-x: hidden;
}

/* Scroll offset for fixed header */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* Liquid glass background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(11, 92, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: -1;
  will-change: transform;
}

.glass-container {
  min-height: 100vh;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.app-header{
  position: sticky; 
  top: 0; 
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 10; 
  padding: 20px 20px 16px;
}

.title-row{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(11, 92, 255, 0.2));
  transition: all 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(11, 92, 255, 0.3));
}

h1{
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge{
  border-radius: 20px;
  padding: 6px 12px;
  background: var(--chip);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.controls-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-toggle{
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chip{
  border: none;
  border-radius: 20px;
  background: var(--chip);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 32px;
  text-align: center;
}

.chip:hover {
  background: var(--chip-hover);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"], 
.chip.active{
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 92, 255, 0.3);
}

.install-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 92, 255, 0.3);
}

.container{
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Time control section */
.time-control {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}

.time-display {
  margin-bottom: 24px;
}

.time-large {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.date-small {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.slider-container {
  position: relative;
}

#time-slider {
  width: 100%;
  height: 6px;
  background: var(--slider-track);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--slider-thumb);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#time-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--slider-thumb);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Waste status section */
.waste-status {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
}

.waste-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waste-item{
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--chip);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  min-height: 60px;
  overflow: hidden;
}

.waste-item:hover {
  background: var(--chip-hover);
  transform: translateY(-1px);
}

.item-left{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.icon{
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.waste-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-status{
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.details-link{
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  opacity: 0.9;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.details-link:hover{
  text-decoration: underline;
  opacity: 1;
}

.s-ok{
  background: rgba(16, 185, 129, 0.2);
  color: var(--ok);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.s-no{
  background: rgba(239, 68, 68, 0.2);
  color: var(--no);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.s-check{
  background: rgba(245, 158, 11, 0.2);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.s-always{
  background: rgba(11, 92, 255, 0.2);
  color: var(--primary);
  border: 1px solid rgba(11, 92, 255, 0.3);
}

/* Ad Container Styling */
.ad-container {
  margin: 24px 0;
  padding: 16px;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

.ad-container::before {
  content: 'Advertisement';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.ad-container ins {
  display: block;
  text-align: center;
  min-height: 90px;
}

/* Product Recommendations Styling */
.product-recommendations {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 24px;
}

.product-recommendations h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.product-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.product-card img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
}

.product-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.product-info p {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-btn {
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.product-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Info Icon Styling */
.info-icon-container {
  margin-top: 16px;
  text-align: center;
}

.info-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
}

.info-icon-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.info-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.info-text {
  font-weight: 500;
}

/* Hero Information Section */
.hero-info {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 32px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quick-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn.primary {
  background: var(--primary);
  color: white;
}

.nav-btn.primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.nav-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.info-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.waste-types-info {
  margin-bottom: 32px;
}

.waste-types-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text);
  text-align: center;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-header span {
  flex: 1;
}

.accordion-arrow {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.accordion-item.active .accordion-content {
  max-height: 100px;
  padding: 0 16px 16px 16px;
}

.accordion-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.waste-type-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.location-info {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
}

.location-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.location-info p {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.location-info p:last-child {
  margin-bottom: 0;
}

.show-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  color: var(--primary-light);
}

.show-more-arrow {
  transition: transform 0.3s ease;
}

.location-info.expanded .show-more-arrow {
  transform: rotate(180deg);
}

.location-expanded {
  margin-top: 12px;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

.app-footer{
  padding: 32px 20px;
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.app-footer a{
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.app-footer a:hover {
  text-decoration: underline;
}

.designer-credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  opacity: 0.8;
}

.designer-credit a {
  font-weight: 600;
  transition: all 0.2s ease;
}

.designer-credit a:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--primary-light);
}

/* iOS Install Prompt */
.ios-install-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-install-prompt.show {
  transform: translateY(0);
}

.ios-install-content {
  background: var(--glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 24px 24px 0 0;
  margin: 0 16px 16px 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ios-install-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
}

.ios-install-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.ios-install-content p {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.4;
}

.share-icon {
  display: inline-block;
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 4px;
  padding: 2px;
}

.ios-install-close {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ios-install-close:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 92, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .container {
    padding: 16px;
    gap: 20px;
  }
  
  .time-control,
  .waste-status {
    padding: 20px;
  }
  
  .time-large {
    font-size: 40px;
  }
  
  .waste-item {
    padding: 14px 16px;
    min-height: 56px;
  }
  
  .waste-name {
    font-size: 15px;
  }
  
  .badge-status {
    padding: 6px 12px;
    font-size: 10px;
    min-width: 80px;
    max-width: 90px;
  }
  
  .details-link {
    font-size: 11px;
    margin-left: 8px;
    max-width: 100px;
  }
  
  .app-icon {
    width: 28px;
    height: 28px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .title-with-icon {
    gap: 10px;
  }
  
  .lang-toggle {
    gap: 2px;
  }
  
  .chip {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 28px;
  }
  
  .controls-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .install-btn {
    justify-content: center;
  }
  
  /* Responsive hero section */
  .hero-info {
    padding: 24px;
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .info-cards {
    gap: 12px;
  }
  
  .info-card {
    padding: 16px;
  }
  
  .info-card h3 {
    font-size: 16px;
  }
  
  .info-card p {
    font-size: 13px;
  }
  
  .waste-type-item {
    padding: 12px;
    gap: 12px;
  }
  
  .waste-type-icon {
    width: 28px;
    height: 28px;
  }
  
  .waste-type-text h4 {
    font-size: 15px;
  }
  
  .waste-type-text p {
    font-size: 13px;
  }
  
  .location-info {
    padding: 20px;
  }
  
  .location-info h3 {
    font-size: 18px;
  }
  
  .location-info p {
    font-size: 14px;
  }
  
  /* Responsive navigation */
  .quick-nav {
    flex-direction: column;
    gap: 8px;
  }
  
  .nav-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  /* Responsive accordion */
  .accordion-header {
    padding: 12px;
    font-size: 15px;
  }
  
  .accordion-content p {
    font-size: 13px;
  }
  
  

/* Responsive ad sizing */
.ad-container {
  margin: 16px 0;
  padding: 12px;
}

.ad-container ins {
  min-height: 60px;
}

/* Hide ads on very small screens */
@media (max-width: 320px) {
  .ad-container {
    display: none;
  }
}
}

/* Responsive adjustments for iOS prompt */
@media (max-width: 480px) {
  .ios-install-content {
    margin: 0 12px 12px 12px;
    padding: 20px;
  }
  
  .ios-install-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }
  
  .ios-install-content h3 {
    font-size: 18px;
  }
  
  .ios-install-content p {
    font-size: 15px;
  }
}


