.daily-gemini-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.date-selector {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-selector label {
  font-weight: 600;
  color: #555;
}

.date-selector input[type="date"] {
  padding: 8px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
}

.date-selector button {
  padding: 8px 16px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.date-selector button:hover {
  background-color: #3367d6;
}

.chat-history {
  max-height: 500px;
  overflow-y: auto;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  background-color: #fafafa;
}

.message {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  max-width: 80%;
  position: relative;
}

.message.user {
  margin-left: auto;
  background-color: #4285f4;
  color: white;
}

.message.model {
  margin-right: auto;
  background-color: white;
  color: #333;
  border: 1px solid #e1e5e9;
}

.message-header {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.message-content {
  line-height: 1.5;
  white-space: pre-wrap;
}

.message-time {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
  text-align: right;
}

.no-messages {
  text-align: center;
  color: #666;
  padding: 40px 20px;
}

.chat-input-section {
  margin-bottom: 30px;
}

.chat-input-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
}

.input-group input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.input-group button {
  padding: 12px 24px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.input-group button:hover:not(:disabled) {
  background-color: #3367d6;
}

.system-instruction-display {
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  background-color: #f8f9fa;
}

.system-instruction-display h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

.instruction-content {
  line-height: 1.6;
  color: #555;
  font-size: 14px;
  white-space: pre-wrap;
}

.recommendation-display {
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0;
}

.recommendation-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.recommendation-header .mode {
  background-color: #007bff;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.recommendation-header .battery-reserve {
  background-color: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.recommendation-display .rationale,
.recommendation-display .excess-solar,
.recommendation-display .next-checkin {
  margin-bottom: 8px;
  line-height: 1.4;
}

.recommendation-display strong {
  color: #495057;
}

@media (max-width: 768px) {
  .daily-gemini-container {
    padding: 15px;
  }
  
  .date-selector {
    flex-direction: column;
    align-items: stretch;
  }
  
  .message {
    max-width: 90%;
  }
}
