:root {
  --neon-blue: #00f3ff;
  --neon-purple: #9d00ff;
  --dark-bg: #0a0a0f;
  --mars-red: #c1440e;
  --mars-orange: #ff6b1a;
  --mars-dust: #8b4513;
  --mars-night: #1a0f0f;
  --mars-glow: #ff3e0066;
  --sidebar-width: 300px;
  --sidebar-collapsed-width: 50px;
}

body {
  background-color: #000000;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.layout-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(to right, #2d1414, #3d1a1a);
  padding: 20px;
  position: relative;
  transition: width 0.3s ease;
  overflow: visible;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-toggle {
  position: absolute;
  right: -15px;
  top: 20px;
  background: var(--mars-red);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 100;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle .toggle-icon {
  transform: rotate(180deg);
}

.sidebar-content {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-content {
  opacity: 0;
  pointer-events: none;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 20px;
  max-width: calc(100% - var(--sidebar-width));
  transition: max-width 0.3s ease;
}

.sidebar.collapsed + .main-content {
  max-width: calc(100% - var(--sidebar-collapsed-width));
}

/* Chat Container Styles */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(26, 15, 15, 0.9);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-box {
  height: 500px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow-y: auto;
  padding: 20px;
}

.message {
  max-width: 80%;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.4;
}

.user-message {
  background: var(--mars-red);
  margin-left: auto;
  border-radius: 12px 12px 0 12px;
}

.bot-message {
  background: #2d1414;
  margin-right: auto;
  border-radius: 12px 12px 12px 0;
}

.input-container {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

#user-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--mars-red);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
}

#send-button {
  padding: 12px 24px;
  background: var(--mars-red);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

#send-button:hover {
  background: var(--mars-orange);
}

.disclaimer {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update existing widget styles */
.widget {
  margin-bottom: 20px;
}

.main-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-family: 'Chivo', sans-serif;
  font-size: 2.5em;
  color: var(--mars-orange);
  text-align: center;
  margin: 15px 0;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 
    0 0 10px var(--mars-glow),
    0 0 20px var(--mars-glow);
}

.mars-info-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.mars-photo {
  width: 250px;
  text-align: center;
}

.mars-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--mars-red);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mars-photo img:hover {
  transform: scale(1.05);
}

.photo-date {
  font-size: 12px;
  color: #ccc;
  margin: 5px 0;
}

.mars-weather {
  width: 250px;
  height: 250px;
  background: rgba(26, 15, 15, 0.95);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--mars-red);
}

.mars-weather h3 {
  color: var(--mars-orange);
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
}

.mars-weather p {
  font-size: 12px;
  margin: 8px 0;
  color: #ddd;
}

.update-date {
  font-size: 10px;
  color: #999;
  margin-top: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
  .title {
    font-size: 2em;
  }
  
  .chat-container {
    padding: 15px;
  }
  
  .mars-info-container {
    flex-direction: column;
    align-items: center;
  }
}

.message-box {
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(16, 16, 24, 0.9);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  border: 1px solid rgba(0, 243, 255, 0.1);
  transition: all 0.3s ease;
}

.message-box:hover {
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
  transform: translateY(-2px);
}

.chat-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  background: rgba(16, 16, 24, 0.9);
  color: #fff;
  font-family: inherit;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.chat-input:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Update loading animation styles */
.loading-animation {
    max-width: 80%;
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 12px 12px 12px 0;
    background: rgba(45, 20, 20, 0.8);
    align-self: flex-start;
    animation: fadeIn 0.3s ease;
}

.loading-text {
    color: var(--mars-orange);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9em;
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Add to your existing CSS */
.mars-data-container {
    background: rgba(16, 16, 24, 0.9);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    border: 1px solid var(--neon-purple);
}

.error-message {
    color: #ff4444;
    padding: 1rem;
    border: 1px solid #ff4444;
    border-radius: 4px;
}

.suggested-prompts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.prompt-button {
  background: var(--mars-dust);
  color: #fff;
  border: 1px solid var(--mars-red);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.prompt-button:hover {
  background: var(--mars-red);
  box-shadow: 0 0 10px var(--mars-glow);
}

/* Add to your existing CSS */
.content-wrapper {
    display: flex;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.chat-section {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.info-section {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-left: 50px;
}

.mars-photo, 
.mars-weather {
    width: 100%;
    background: rgba(26, 15, 15, 0.95);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--mars-red);
}

.mars-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--mars-red);
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Update responsive design */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .info-section {
        width: 100%;
        padding-left: 0;
        gap: 20px;
    }
    
    .mars-photo, 
    .mars-weather {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Add Google Font import at the top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* Update widget styles */
.widget {
    background: rgba(26, 15, 15, 0.95);
    border-radius: 8px;
    border: 1px solid var(--mars-red);
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(193, 68, 14, 0.1);
    border-bottom: 1px solid var(--mars-red);
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--mars-orange);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.toggle-widget {
    background: none;
    border: none;
    color: var(--mars-orange);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-widget:hover {
    color: #fff;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.widget-content {
    padding: 15px;
    transition: all 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.widget.collapsed .widget-content {
    max-height: 0;
    padding: 0 15px;
    opacity: 0;
    overflow: hidden;
}

.widget.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Update text styles inside widgets */
.widget p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

.widget strong {
    color: var(--mars-orange);
    font-weight: 500;
}

.photo-date, .update-date {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Add animation for widget content */
.widget-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

/* Update the Mars photo widget */
.mars-photo-widget .widget-content {
    max-height: 300px;
    overflow: hidden;
}

.mars-photo-widget img {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover; /* This will maintain aspect ratio while filling the space */
    border-radius: 6px;
}

/* Update logo styles */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    
}

.sidebar-logo {
    margin: 0 auto;
    transition: all 0.3s ease;
}

.full-logo {
    width: 150px;
    height: auto;
    display: block;
}

.small-logo {
    width: 30px;
    height: auto;
    display: none;
}

/* Collapsed state */
.sidebar.collapsed .full-logo {
    display: none;
}

.sidebar.collapsed .small-logo {
    display: block;
}

.sidebar.collapsed .logo-container {
    padding: 5px;
    margin-bottom: 15px;
    width: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* Add Zubrin button styles */
.zubrin-button {
    padding: 12px 24px;
    background: var(--mars-dust);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.zubrin-button:hover {
    background: var(--mars-red);
    box-shadow: 0 0 10px var(--mars-glow);
}

/* Check and adjust these logo styles */
.logo {
    max-width: 300px;  /* Adjust this value */
    height: auto;
    margin: 20px auto;
    display: block;
}

/* Or if it's using this class */
#logo {
    max-width: 300px;  /* Adjust this value */
    height: auto;
    margin: 20px auto;
    display: block;
}

/* Custom scrollbar styles */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #666 #333;
}

#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
    transition: background 0.2s ease;  /* Smooth transition for hover */
}

#chat-messages::-webkit-scrollbar-thumb:hover,
#chat-messages::-webkit-scrollbar-thumb:active {
    background: #444;  /* Darker on hover, more subtle */
    cursor: pointer;
}

/* If you want to hide scrollbar when not in use */
#chat-messages::-webkit-scrollbar {
    display: block;  /* Changed from none to block to show scrollbar */
}

#chat-messages {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    #sidebar {
        display: none;  /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;  /* Full width when shown */
        height: 100vh;
        z-index: 1000;
        background: var(--background-color);
    }

    #sidebar.active {
        display: block;  /* Show when active */
    }

    /* Add hamburger menu button */
    .mobile-menu-button {
        display: block;  /* Only show on mobile */
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        padding: 10px;
        background: var(--accent-color);
        border: none;
        border-radius: 5px;
    }
}

/* Hide menu button on desktop */
@media screen and (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }
}

.response-container {
    /* Ensure container handles overflow properly */
    overflow-y: auto;
    max-height: 500px;  /* adjust as needed */
}

.response-timer {
    font-size: 0.75rem;
    color: #666;
    margin-left: 10px;
    font-style: italic;
}

.model-selector-container {
    margin-bottom: 10px;
    padding: 0 20px;
}

.model-selector {
    font-size: 9pt;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #2c2c2c;
    background-color: #1a1a1a;
    color: #c0c0c0;
    width: 150px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c0c0c0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px auto;
    box-shadow: none;
}

.model-selector:hover {
    border-color: #3a3a3a;
    background-color: #1f1f1f;
}

.model-selector:focus {
    outline: none;
    border-color: #4a4a4a;
    background-color: #1f1f1f;
}

/* Style the dropdown options */
.model-selector option {
    background-color: #1a1a1a;
    color: #824141;
    padding: 8px;
    border: none;
}

/* Remove any system highlighting */
.model-selector option:checked {
    background-color: #2c2c2c;
    color: #c0c0c0;
}

#response {
    /* Keep consistent font */
    font-family: inherit;
    /* Proper list spacing */
    padding-left: 20px;
}

#response ul {
    /* Fix bullet points */
    list-style-type: disc;
    margin-left: 20px;
}

#response p {
    /* Keep consistent text style */
    font-family: inherit;
    margin-bottom: 10px;
}

/* Fix indented text */
#response pre, #response code {
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
}



