/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px; /* adjust size as needed */
  height: 50px;
  margin-right: 10px;
}

.header {
  background: #198754;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 0.3s;
}
.header h1 {
  font-size: 24px;
  font-weight: 700;
}
.header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}
.header nav a:hover {
  background: #145c32;
}

/* Page Sections */
main {
  flex: 1;
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
  animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pages */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* Headings */
h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

/* Cards */
.info-card, .card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.info-card:hover, .card:hover {
  transform: translateY(-5px);
}

/* Forms */
form input, form select {
  width: 100%;
  padding: 12px;
  margin: 10px 0 15px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}
.btn {
  background: #198754;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.btn:hover {
  background: #145c32;
}

/* Results */
#results {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 999;
  overflow: hidden;
  font-size: 14px;
}
.chat-header {
  background: #198754;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.chat-body {
  padding: 10px;
  height: 200px;
  overflow-y: auto;
}
.bot-msg, .user-msg {
  background: #e9ecef;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  max-width: 80%;
  word-wrap: break-word;
}
.user-msg {
  background: #d1e7dd;
  align-self: flex-end;
}
.chat-footer {
  display: flex;
  border-top: 1px solid #ddd;
}
.chat-footer input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}
.chat-footer button {
  background: #198754;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #198754;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 998;
}

/* Footer */
.footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Animations */
.fade {
  animation: fadeIn 0.6s ease-in-out;
}

/* Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  background: #198754;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 0.3s;
}
.header h1 {
  font-size: 24px;
  font-weight: 700;
}
.header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}
.header nav a:hover {
  background: #145c32;
}

/* Main */
main {
  flex: 1;
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Cards */
.info-card, .card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.info-card:hover, .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 999;
  overflow: hidden;
  font-size: 14px;
}
.chat-header {
  background: #198754;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.chat-body {
  padding: 10px;
  height: 200px;
  overflow-y: auto;
}
.bot-msg, .user-msg {
  background: #e9ecef;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  max-width: 80%;
  word-wrap: break-word;
}
.user-msg {
  background: #d1e7dd;
  align-self: flex-end;
}
.chat-footer {
  display: flex;
  border-top: 1px solid #ddd;
}
.chat-footer input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}
.chat-footer button {
  background: #198754;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #198754;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 998;
}

/* Footer */
.footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Animations */
.fade-slide {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s forwards;
}
@keyframes fadeSlideIn {
  to { opacity: 1; transform: translateY(0); }
}
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-toggle img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  display: none; /* Hidden by default */
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 999;
  overflow: hidden;
}
.services {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.services-title {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #333;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  width: 250px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.service-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2e7d32; /* green color */
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body {
  font-family: 'Segoe UI', sans-serif;
}
.footer {
  background: linear-gradient(135deg, #4CAF50, #81C784);
  color: #fff;
  padding: 40px 20px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-section {
  flex: 1 1 200px;
}
.footer-section h3, .footer-section h4 {
  margin-bottom: 15px;
}
.footer-logo, .govt-logo {
  width: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin: 8px 0;
}
.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-section ul li a:hover {
  color: #FFEB3B;
}
.social-icons a {
  color: #fff;
  margin-right: 15px;
  font-size: 1.3rem;
  transition: transform 0.3s;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: #FFEB3B;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.8;
}
