

/* Motex Template Integration - HealthAware Custom Styles */
@import url('https://fonts.googleapis.com/css?family=Inter:400,600,700&display=swap');

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f7f7fa;
  color: #222;
  margin: 0;
  padding: 0;
  font-size: 17px;
}

header, .motex-header {
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px #e3e3e3;
  border-radius: 0 0 16px 16px;
  padding: 0;
}
.motex-navbar {
  background: #007bff;
  color: #fff;
  font-size: 1.1em;
  border-radius: 0 0 12px 12px;
}
.motex-navbar a {
  color: #fff;
  font-weight: 600;
  margin-right: 1em;
  text-decoration: none;
}
.motex-navbar a.active, .motex-navbar a:hover {
  color: #ffe066;
}

main, .motex-main {
  padding: 2em 0.5em;
  background: #f7f7fa;
}

/* Motex card style for advisories/news/chatbot */
.motex-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #e3e3e3;
  padding: 1.5em;
  margin-bottom: 2em;
  transition: box-shadow 0.2s;
}
.motex-card:hover {
  box-shadow: 0 4px 24px #b3b3b3;
}

/* Accessibility controls */
#accessibility-controls {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
}
.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

.lang-btn {
  color: #007bff;
  background: #fff;
  border: 1px solid #007bff;
  border-radius: 4px;
  padding: 0.3em 0.8em;
  margin-right: 0.5em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:focus {
  outline: 2px solid #ffe066;
  background: #e3f2fd;
}
.lang-btn.active, .lang-btn:hover {
  background: #007bff;
  color: #fff;
}

/* Alerts ticker */
#alerts-ticker {
  background: #ffe066;
  color: #222;
  padding: 0.7em 1em;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 1px 4px #e3e3e3;
  overflow-x: auto;
  margin-bottom: 1em;
}

/* Listen button */
.listen-btn {
  background: #2196f3;
  color: #fff;
  border: none;
  padding: 0.3em 0.7em;
  margin-left: 0.5em;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 4px #e3e3e3;
}
.listen-btn:focus {
  outline: 2px solid #ffe066;
}

/* Chatbot container */
#chatbot-container {
  background: #fff;
  padding: 1.5em;
  border-radius: 12px;
  max-width: 400px;
  margin: 1em auto;
  box-shadow: 0 2px 12px #e3e3e3;
}
#chat-window {
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5em;
  margin-bottom: 0.5em;
}
.user-msg {
  text-align: right;
  color: #007bff;
  margin-bottom: 0.3em;
}
.bot-msg {
  text-align: left;
  color: #222;
  margin-bottom: 0.3em;
}

/* Motex button style */
.motex-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1.2em;
  font-weight: 600;
  box-shadow: 0 1px 4px #e3e3e3;
  transition: background 0.2s;
}
.motex-btn:hover, .motex-btn:focus {
  background: #2196f3;
  color: #fff;
}

/* Motex section titles */
.motex-section-title {
  font-size: 2em;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  main, .motex-main, header, .motex-header, footer, .motex-footer {
    padding: 0.5em;
    font-size: 1em;
  }
  #accessibility-controls {
    top: 5px;
    right: 5px;
  }
  #chatbot-container {
    max-width: 100%;
    padding: 0.5em;
  }
  .motex-card {
    padding: 1em;
  }
}

body.dark-mode {
  background: #181a1b;
  color: #e0e0e0;
}
body.dark-mode header, body.dark-mode .motex-header, body.dark-mode footer, body.dark-mode .motex-footer {
  background: #222;
  color: #e0e0e0;
}
body.dark-mode main, body.dark-mode .motex-main {
  background: #222;
  color: #e0e0e0;
}
body.dark-mode #welcome-banner {
  background: #263238;
  color: #e0e0e0;
}
body.dark-mode #alerts-ticker {
  background: #333;
  color: #ffcdd2;
}
body.dark-mode .alert-item a {
  color: #ffcdd2 !important;
}
body.dark-mode .motex-card, body.dark-mode #chatbot-container {
  background: #222;
  color: #e0e0e0;
  box-shadow: 0 2px 12px #111;
}
