* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: #faf8f5; color: #333; }

/* NAVBAR */
nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: #c0392b; cursor: pointer; }
.nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn-primary { background: #c0392b; color: white; border: none; padding: 10px 20px; border-radius: 25px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-outline { background: white; color: #333; border: 2px solid #ddd; padding: 10px 20px; border-radius: 25px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; }

/* HERO */
.hero { text-align: center; padding: 60px 20px 40px; }
.hero h1 { font-size: 52px; font-weight: 800; color: #1a1a1a; line-height: 1.1; }
.hero h1 span { font-family: 'Playfair Display', serif; font-style: italic; color: #c0392b; }
.hero p { font-size: 16px; color: #888; margin-top: 16px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* SEARCH */
.search-bar { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.search-bar input { padding: 14px 24px; border-radius: 30px; border: 2px solid #eee; font-family: 'Nunito', sans-serif; font-size: 15px; width: 380px; outline: none; }
.search-bar input:focus { border-color: #c0392b; }
.btn-near-me { background: #c0392b; color: white; border: none; padding: 14px 24px; border-radius: 30px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; }
/* SEARCH DROPDOWN */
.search-wrapper { position: relative; display: inline-block; }
.search-wrapper input { width: 380px; }
.search-dropdown { position: absolute; top: 100%; left: 0; width: 100%; background: white; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); margin-top: 8px; z-index: 50; overflow: hidden; display: none; }
.search-dropdown.open { display: block; }
.dropdown-item { padding: 14px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: #faf8f5; }
.dropdown-item h4 { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.dropdown-item p { font-size: 12px; color: #888; margin-top: 2px; }

/* FILTERS */
.filters { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.filter-btn { padding: 8px 20px; border-radius: 25px; border: 2px solid #ddd; background: white; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; color: #333; }
.filter-btn.active { background: #c0392b; color: white; border-color: #c0392b; }

/* BUILDINGS LIST */
.buildings-list { max-width: 800px; margin: 30px auto 60px; padding: 0 20px; }
.building-card { background: white; border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; transition: box-shadow 0.2s; }
.building-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.building-card-header { display: flex; justify-content: space-between; align-items: center; }
.building-info h4 { font-size: 16px; font-weight: 800; color: #1a1a1a; }
.building-info p { font-size: 13px; color: #888; margin-top: 4px; }
.building-status { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 20px; }
.building-status.available { background: #e8f8f0; color: #27ae60; }
.building-status.empty { background: #fde8e8; color: #c0392b; }
.building-details { display: none; margin-top: 16px; padding-top: 16px; border-top: 2px solid #f0f0f0; }
.building-details.open { display: block; }
.building-details p { font-size: 14px; color: #555; margin-bottom: 6px; }
.building-details .big-status { font-size: 20px; font-weight: 800; margin-top: 10px; }
.no-results { text-align: center; color: #888; font-size: 15px; margin-top: 20px; }

/* ADMIN POPUP */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center; }
.overlay.active { display: flex; }
.admin-popup { background: white; border-radius: 30px; padding: 40px; width: 90%; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.admin-popup .emoji { font-size: 50px; margin-bottom: 16px; }
.admin-popup h2 { font-size: 26px; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.admin-popup p { font-size: 14px; color: #888; margin-bottom: 24px; }
.input-group { text-align: left; margin-bottom: 16px; }
.input-group label { font-size: 13px; font-weight: 700; color: #333; display: block; margin-bottom: 6px; }
.input-group input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid #eee; font-family: 'Nunito', sans-serif; font-size: 14px; outline: none; background: #faf8f5; }
.input-group input:focus { border-color: #c0392b; }
.btn-signin { width: 100%; background: #c0392b; color: white; border: none; padding: 14px; border-radius: 30px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; margin-top: 8px; }
.btn-cancel { background: none; border: none; color: #888; font-family: 'Nunito', sans-serif; font-size: 14px; cursor: pointer; margin-top: 12px; text-decoration: underline; }

/* ADMIN DASHBOARD */
.admin-dashboard { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #faf8f5; z-index: 200; font-family: 'Nunito', sans-serif; overflow-y: auto; }
.dashboard-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 10; }
.dashboard-nav .nav-logo { font-size: 20px; font-weight: 800; color: #c0392b; cursor: pointer; }
.btn-logout { background: white; color: #c0392b; border: 2px solid #c0392b; padding: 10px 20px; border-radius: 25px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; }
.dashboard-content { max-width: 600px; margin: 60px auto; padding: 0 20px 60px; text-align: center; }
.dashboard-content > h2 { font-size: 32px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.dashboard-content > p { color: #888; font-size: 15px; margin-bottom: 40px; }

/* DISPENSER STATUS CARD */
.dispenser-status-card { background: white; border-radius: 24px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 24px; }
.dispenser-status-card .status-emoji { font-size: 50px; margin-bottom: 16px; }
.dispenser-status-card h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.dispenser-status-card .current-status { font-size: 18px; font-weight: 700; padding: 8px 20px; border-radius: 20px; display: inline-block; margin-bottom: 24px; }
.current-status.available { background: #e8f8f0; color: #27ae60; }
.current-status.empty { background: #fde8e8; color: #c0392b; }
.btn-restock { background: #27ae60; color: white; border: none; padding: 14px 32px; border-radius: 30px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; width: 100%; }

/* ADD BUILDING CARD */
.add-building-card { background: white; border-radius: 24px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 24px; text-align: left; }
.add-building-card h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; text-align: center; }
.add-building-card > p { text-align: center; color: #888; font-size: 14px; margin-bottom: 24px; }

/* MOBILE */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .hero h1 { font-size: 36px; }
  .search-bar { flex-direction: column; align-items: center; }
  .search-wrapper input { width: 100%; }
  .btn-near-me { width: 90%; }
  .filters { flex-wrap: wrap; }
  .buildings-list { padding: 0 12px; }
  .dashboard-content { padding: 0 12px 60px; }
  .dashboard-nav { padding: 16px 20px; }
  .dispenser-status-card { padding: 24px; }
  .add-building-card { padding: 24px; }

}

