
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #111;
  color: #fff;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.sidebar {
  width: 220px;
  background: #1c1c1c;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    padding: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    order: 2;
  }
  
  .sidebar h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
  }
  
  .nav-link {
    padding: 8px 12px;
    margin: 2px;
    background: #333;
    border-radius: 4px;
    text-align: center;
    min-width: 80px;
  }
}

.sidebar h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: #a5d610;
  margin-bottom: 30px;
}

.nav-link {
  padding: 10px 0;
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.nav-link:hover {
  color: #fff;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  min-height: 0; /* Allow flex item to shrink */
}

/* Mobile Main Content */
@media (max-width: 768px) {
  .main {
    padding: 15px;
    order: 1;
  }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Mobile Top Bar */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .top-bar h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}

.top-bar h1 {
  font-size: 2rem;
  font-family: 'Orbitron', sans-serif;
}

.content {
  display: flex;
  gap: 20px;
  flex: 1;
}

/* Mobile Content Layout */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: 15px;
  }
}

.form-section, .prediction-section {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
}

/* Mobile Form Sections */
@media (max-width: 768px) {
  .form-section, .prediction-section {
    padding: 15px;
    margin-bottom: 10px;
  }
}

.form-section h3, .prediction-section h3 {
  color: #a5d610;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input, select {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 14px;
}

input:focus, select:focus {
  outline: 2px solid #a5d610;
  background: #444;
}

/* Mobile Input Fields */
@media (max-width: 768px) {
  input, select {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

small {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 0.8em;
  line-height: 1.3;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #fff;
}

button {
  padding: 10px 20px;
  background: #a5d610;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #c0ef2b;
}

/* Mobile Buttons */
@media (max-width: 768px) {
  button {
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
  }
}

.chatbox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: #222;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 10px #a5d610;
}

/* Mobile Chatbox */
@media (max-width: 768px) {
  .chatbox {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 10px 10px 0 0;
    max-height: 50vh;
    z-index: 1000;
  }
  
  .chat-messages {
    max-height: 200px;
  }
}

.chat-header {
  background: #3a4d00;
  color: white;
  padding: 10px;
  font-weight: bold;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 200px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #444;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  background: #111;
  color: white;
  border: none;
}

.chat-input button {
  padding: 10px;
  background: #a5d610;
  color: black;
  border: none;
  cursor: pointer;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.message {
  transition: all 0.3s ease;
}

.message:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(165, 214, 16, 0.2);
}

.suggestions {
  border-left: 3px solid #a5d610;
  margin-top: 8px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #a5d610;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #c0ef2b;
}

/* Mobile Quick Test Scenarios */
@media (max-width: 768px) {
  .quick-scenarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
  }
  
  .quick-scenarios button {
    padding: 8px 12px;
    font-size: 14px;
    margin: 0;
    width: auto;
  }
}

