/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

h1, h2, h3 {
  color: #004d40;
  font-weight: 700;
}

.logo {
  height: 60px;
  vertical-align: middle;
}

/* Header */
header {
  background-color: #004d40;
  color: white;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
}

nav a:hover {
  color: #ff9800;
}

/* Login Dropdown */
.login-dropdown {
  position: relative;
}

.login-btn {
  color: white;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid #fff;
  border-radius: 3px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #004d40;
  min-width: 120px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  right: 0;
  top: 100%;
  border-radius: 3px;
}

.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #00796b;
}

.login-dropdown:hover .dropdown-content {
  display: block;
}

/* Login Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.login-form {
  margin-top: 20px;
}

/* Hero Section with Slideshow */
.hero {
  background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 77, 64, 0.7)), url('hero-image.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: left;
  padding: 120px 20px 60px;
  min-height: 500px;
  position: relative;
  margin-top: 70px;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.slideshow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.slide.active {
  display: block;
  opacity: 1;
}

.cta-button {
  background-color: #ff9800;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
}

.cta-button:hover {
  background-color: #e68a00;
}

/* Dashboard Section */
#dashboard {
  padding: 60px 20px;
  background-color: white;
  text-align: center;
}

#energy-usage, #analytics, #reports, #recommendations, #alerts, #smart-home {
  margin-top: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.usage-item {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.usage-item h4 {
  margin: 0 0 10px;
  color: #004d40;
}

.usage-item p {
  margin: 0;
  font-size: 1.2em;
  color: #ff9800;
}

.refresh-btn {
  margin-top: 10px;
  background-color: #00796b;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.refresh-btn:hover {
  background-color: #004d40;
}

.analytics-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.analytics-controls label {
  font-weight: bold;
}

.analytics-controls select {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#report-period {
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#report-data, #recommendation-list, #alert-list {
  margin-top: 10px;
}

#recommendation-list p, #alert-list p {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  margin: 5px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.appliance-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  margin: 5px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00796b;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Sections */
.section {
  padding: 60px 20px;
  background-color: white;
  text-align: center;
}

.service-grid, .benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.service-item, .benefit-item {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

ul.solution-list {
  list-style-type: none;
  padding: 0;
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

ul.solution-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

ul.solution-list li:before {
  content: "•";
  color: #004d40;
  position: absolute;
  left: 0;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.chatbot-header {
  background-color: #004d40;
  color: white;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: pointer;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: white;
}

.chatbot-body {
  display: none;
  padding: 10px;
}

#chat-messages {
  height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 10px;
  background: #f1f1f1;
  border-radius: 5px;
}

#chat-input {
  width: 70%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#chat-form button {
  width: 25%;
  margin-left: 5%;
  padding: 8px;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

label {
  margin-top: 10px;
  text-align: left;
  width: 100%;
}

input, textarea, button {
  margin-top: 5px;
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #00796b;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: #004d40;
}

/* Map Section */
.map-container {
  margin-top: 20px;
  border-radius: 5px;
  overflow: hidden;
}

/* Footer */
footer {
  background-color: #004d40;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

footer a {
  color: #ff9800;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}