/* style.css */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #1976D2;      /* Blue primary color */
  --secondary-color: #03A9F4;    /* Lighter blue for accents */
  --success-color: #4CAF50;      /* Green for positive actions */
  --danger-color: #F44336;       /* Red for warnings/errors */
  --background-color: #f8f9fa;   /* Light background */
  --text-color: #333333;         /* Dark text for contrast */
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: var(--text-color);
}

/* iPhone frame styling */
.iphone-frame {
  width: 375px;
  height: 812px;
  background-color: white;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  margin: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 10px solid #1a1a1a;
}

/* Status bar styling */
.status-bar {
  height: 44px;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.status-bar .left {
  display: flex;
  align-items: center;
}

.status-bar .right {
  display: flex;
  align-items: center;
}

.status-bar .right i {
  margin-left: 5px;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 30px;
  background-color: #000;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 101;
}

/* App content */
.app-content {
  height: calc(812px - 44px - 83px);
  overflow-y: auto;
  position: relative;
}

/* Navigation bar styling */
.tab-bar {
  height: 83px;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  padding-bottom: 20px;
  position: sticky;
  bottom: 0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8e8e93;
  font-size: 10px;
  padding-top: 8px;
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item i {
  font-size: 22px;
  margin-bottom: 3px;
}

/* Common button styles */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  font-size: 16px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 100px;
  padding: 11px 23px;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

/* Card styles */
.toilet-card {
  background-color: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toilet-card .title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.toilet-card .distance {
  color: #8e8e93;
  font-size: 14px;
  margin-bottom: 10px;
}

.toilet-card .rating {
  color: #ff9500;
  font-size: 14px;
  font-weight: 500;
}

/* Map styles */
.map-container {
  width: 100%;
  height: 100%;
  background-color: #e9f5f9;
  position: relative;
}

/* Marker styles */
.marker {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.marker.occupied {
  background-color: var(--danger-color);
}

.marker.available {
  background-color: var(--success-color);
}

/* Search bar styles */
.search-bar {
  background-color: white;
  border-radius: 100px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 16px;
}

.search-bar input {
  border: none;
  flex-grow: 1;
  margin-left: 8px;
  font-size: 16px;
  outline: none;
}

/* Filter chip styles */
.filter-chips {
  display: flex;
  padding: 0 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.filter-chips::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.chip {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 100px;
  margin-right: 8px;
  font-size: 14px;
  white-space: nowrap;
  color: #666;
}

.chip.active {
  background-color: var(--primary-color);
  color: white;
}

/* Detail page styles */
.detail-header {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.detail-header .back-button {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-content {
  margin-top: -40px;
  background-color: white;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 16px;
  position: relative;
}

/* Profile page styles */
.profile-header {
  background-color: var(--primary-color);
  height: 150px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: white;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
  border: 3px solid white;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #666;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
}

/* Store list for index.html */
.store-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.store-item {
  width: 400px;
  height: 900px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.store-title {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}

.store-iframe {
  width: 100%;
  height: calc(100% - 40px);
  border: none;
}