/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: "Arial", sans-serif;
  background-color: #5490cd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Container Layout */
.container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  border-radius: 10px;
  overflow: hidden;
  padding: 60px;
}

/* Sidebar Styling */
.sidebar {
  width: 300px;
  background-color: #2c3e50;
  color: #fff;
  padding: 20px;
}

.sidebar h2 {
  margin-bottom: 20px;
}

#feedback {
  width: 100%;
  border: none;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.sidebar button {
  width: 100%;
  background-color: #3498db;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.sidebar button:hover {
  background-color: #2980b9;
}

.feedback-display {
  margin-top: 20px;
}

.feedback-display h3 {
  margin-bottom: 10px;
}

.feedback-display p {
  background: #34495e;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  color: #ecf0f1;
}

.feedback-list {
  max-height: 150px;
  overflow-y: auto; 
  background-color: #2c3e50; 
  padding: 10px;
  border-radius: 5px; 
  border: 1px solid #2980b9; 
  color: white; 
  margin-top: 10px; 
}

.feedback-list p {
  margin: 5px 0; /* Space between feedback items */
}

/* Content Styling */
.content {
  flex: 1;
  background-color: #fff;
  padding: 20px;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#search {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

.weather {
  text-align: center;
}

.weather-icon img {
  max-width: 100px;
}

.weather-info h3 {
  font-size: 2rem;
  color: #3498db;
}

.weather-info h4 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: #2c3e50;
}

.weather-info p {
  font-size: 1rem;
  color: #555;
}

.weather-recommendations {
  margin-top: 20px;
  padding: 15px;
  /* background: rgba(255, 255, 255, 0.9); */
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.weather-recommendations h3 {
  color: #333;
  margin-bottom: 10px;
}

.weather-recommendations ul {
  list-style-type: none;
  padding-left: 0;
}

.weather-recommendations li {
  margin-bottom: 8px;
}

.recommendations-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recommendation-section {
  margin-bottom: 25px;
  padding: 15px;
  border-left: 4px solid #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.recommendation-section h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.recommendation-section h3 {
  color: #34495e;
  margin: 15px 0 10px;
  font-size: 1.2em;
}

.recommendation-list {
  list-style: none;
  padding-left: 0;
}

.recommendation-list li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.recommendation-list li:before {
  content: "•";
  color: #3498db;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.important-note {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
}

.weather-icon {
  font-size: 24px;
  margin-right: 10px;
}

.category-clothing { border-left-color: #e74c3c; }
.category-activities { border-left-color: #2ecc71; }
.category-safety { border-left-color: #f39c12; }

.weather-display {
  max-width: 800px;
  margin: 20px auto;
  /* padding: 20px; */
  /* background: rgba(255, 255, 255, 0.95); */
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.current-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  /* border-bottom: 1px solid #eee; */
}

.weather-icon img {
  width: 100px;
  height: 100px;
}

.weather-info {
  margin-left: 20px;
}

.temperature {
  font-size: 2.5em;
  margin: 10px 0;
  color: #2c3e50;
}

.weather-main {
  color: #7f8c8d;
  margin-bottom: 10px;
}

.weather-details {
  color: #34495e;
}

.recommendations-container {
  margin-top: 20px;
}

.recommendation-section {
  margin: 15px 0;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid;
}

.recommendation-section.clothing { border-left-color: #e74c3c; }
.recommendation-section.activities { border-left-color: #2ecc71; }
.recommendation-section.health { border-left-color: #f39c12; }

.recommendation-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.recommendation-section ul {
  list-style: none;
  padding-left: 0;
}

.recommendation-section li {
  margin: 8px 0;
  padding-left: 25px;
  position: relative;
}

.recommendation-section li:before {
  content: "•";
  position: absolute;
  left: 10px;
  color: #3498db;
}

.weather-details p {
  margin: 5px 0;
}

#recommendations-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Add these styles */
.user-profile {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-profile span {
    color: white;
    flex-grow: 1;
    font-weight: bold;
}

.feedback-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-name {
    color: white;
    font-weight: bold;
}

.timestamp {
    color: #bdc3c7;
    font-size: 0.8em;
    margin-left: auto;
    margin-right: 10px;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.feedback-text {
    color: white;
    word-break: break-word;
}

#signOutBtn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#signOutBtn:hover {
    background-color: #c0392b;
}

/* Add these media queries at the end of your CSS file */

/* For tablets and smaller screens */
@media screen and (max-width: 1024px) {
  .container {
    width: 95%;
    padding: 30px;
  }

  .recommendations-container {
    max-width: 100%;
  }
}

/* For mobile devices */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 15px;
    width: 100%;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .content {
    width: 100%;
    border-radius: 10px;
  }

  .current-weather {
    flex-direction: column;
    text-align: center;
  }

  .weather-info {
    margin-left: 0;
    margin-top: 15px;
  }

  .weather-icon img {
    width: 80px;
    height: 80px;
  }

  .temperature {
    font-size: 2em;
  }

  .recommendation-section {
    padding: 10px;
  }

  .feedback-header {
    flex-wrap: wrap;
  }

  .timestamp {
    width: 100%;
    margin: 5px 0;
    text-align: left;
  }

  .search-container {
    padding: 0 10px;
  }

  #search {
    font-size: 16px; /* Better for mobile input */
  }
}

/* For very small devices */
@media screen and (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .weather-display {
    margin: 10px auto;
  }

  .recommendation-section h2 {
    font-size: 1.2em;
  }

  .recommendation-section h3 {
    font-size: 1em;
  }

  .feedback-item {
    padding: 10px;
  }

  .user-profile {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .user-profile img {
    margin-bottom: 5px;
  }

  .user-profile span {
    width: 100%;
    text-align: center;
  }

  #signOutBtn {
    width: auto;
    margin-top: 5px;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}
