/* Common styles for all pages */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 800px;
  width: 100%;
}

h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

/* Common button styles */
.btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #45a049;
}

.btn.secondary {
  background: #666;
}

.btn.secondary:hover {
  background: #555;
}

/* Home button */
.homebtn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #333;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.homebtn:hover {
  background: #444;
}

/* Card styles */
.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

/* Form elements */
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 1em;
}

/* Responsive design */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn {
    width: 100%;
  }
}

/* Food ordering helper specific styles */
.chinese-display {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.chinese-text {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.option-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.option-btn:hover {
  background: #e0e0e0;
}

.option-btn.selected {
  background: #4CAF50;
  color: white;
  border-color: #45a049;
}

/* Calculator specific styles */
.calculator {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calc-display {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: right;
  font-size: 1.5em;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* YouTube player specific styles */
.player-container {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.playlist {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
}

.playlist-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.playlist-item:hover {
  background: #f5f5f5;
}

.playlist-item.active {
  background: #e3f2fd;
}

/* Calendar specific styles */
.calendar {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.calendar-cell {
  padding: 10px;
  text-align: center;
  border: 1px solid #eee;
}

.calendar-cell.weekend {
  color: #e74c3c;
}

.calendar-cell.holiday {
  background: #e3f2fd;
  color: #1976d2;
} 