/* Base Styles */
:root {
  --font-primary: 'Orbitron', sans-serif;
  --font-secondary: 'Share Tech Mono', monospace;
  /* Dark Theme (default) */
  --color-background-dark: #0a0a12;
  --color-primary-dark: #00f0ff;
  --color-secondary-dark: #ff00a0;
  --color-accent-dark: #ffff00;
  --color-text-dark: #ffffff;
  --color-text-dim-dark: #a0a0a0;
  --color-panel-dark: rgba(16, 16, 32, 0.8);
  --color-dark-dark: #0a0a12; /* Renamed for clarity */
  --color-darker-dark: #050508; /* Renamed for clarity */
  --glow-primary-dark: 0 0 10px rgba(0, 240, 255, 0.7);
  --glow-secondary-dark: 0 0 10px rgba(255, 0, 160, 0.7);

  /* Light Theme Variables (to be overridden by [data-theme="light"] from theme-toggle.css) */
  /* These can serve as fallbacks if theme-toggle.css is not loaded, but ideally it always is. */
  --color-background-light: #f0f2f5;
  --color-primary-light: #007bff;
  --color-secondary-light: #6f42c1;
  --color-accent-light: #fd7e14;
  --color-text-light: #212529;
  --color-text-dim-light: #6c757d;
  --color-panel-light: rgba(255, 255, 255, 0.9);
  --color-dark-light: #dee2e6; /* Lighter shade for borders/backgrounds in light mode */
  --color-darker-light: #ced4da; /* Even lighter shade */
  --glow-primary-light: 0 0 10px rgba(0, 123, 255, 0.5);
  --glow-secondary-light: 0 0 10px rgba(111, 66, 193, 0.5);

  /* Default to Dark Theme Variables */
  --color-background: var(--color-background-dark);
  --color-primary: var(--color-primary-dark);
  --color-secondary: var(--color-secondary-dark);
  --color-accent: var(--color-accent-dark);
  --color-text: var(--color-text-dark);
  --color-text-dim: var(--color-text-dim-dark);
  --color-panel: var(--color-panel-dark);
  --color-dark: var(--color-dark-dark);
  --color-darker: var(--color-darker-dark);
  --glow-primary: var(--glow-primary-dark);
  --glow-secondary: var(--glow-secondary-dark);

  --color-error: #ff3030; /* Common for both themes */
  --color-success: #30ff30; /* Common for both themes */
  --gradient-cyber: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  --primary-color: var(--color-primary); /* Legacy, ensure it maps to current theme */
  --secondary-color: var(--color-secondary); /* Legacy, ensure it maps to current theme */
  --background-color: var(--color-background); /* Legacy, ensure it maps to current theme */
  --text-color: var(--color-text); /* Legacy, ensure it maps to current theme */
  --card-bg: var(--color-panel); /* Legacy, ensure it maps to current theme */

  /* For body::before to access light theme primary color components if needed */
  --color-primary-rgb-light: 0, 123, 255;
}

/* Remove body.light-mode as theme switching is handled by [data-theme] in theme-toggle.css */
/* Styles previously under body.light-mode will now be under [data-theme="light"] in theme-toggle.css or here if general */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fix body scroll issues - from layout-fix.css */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  /* Properties like overflow-x, position, min-height, width, height, overflow-y
     are now primarily controlled by the 'html, body' rule above due to !important.
     The 'html {}' rule added in the previous step is effectively replaced by this. */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Default to dark theme gradient */
  background-image: 
    repeating-linear-gradient(rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px),
    radial-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px);
  background-size: 100% 2px, 30px 30px;
  pointer-events: none;
  z-index: -1;
}

/* Light mode specific body::before is handled in theme-toggle.css using [data-theme="light"] body::before */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
  text-shadow: var(--glow-secondary);
}

button {
  cursor: pointer;
  font-family: var(--font-primary);
}

input, select, textarea {
  font-family: var(--font-secondary);
  background-color: var(--color-darker);
  color: var(--color-text);
  border: 1px solid var(--color-primary);
  outline: none;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  box-shadow: var(--glow-primary);
  border-color: var(--color-primary);
}

/* Layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

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

.cyber-sidebar {
  width: 280px;
  background-color: var(--color-darker);
  border-right: 1px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  box-shadow: var(--glow-primary);
}

.cyber-main {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Components */
.cyber-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-primary);
}

.cyber-logo svg {
  margin-right: 10px;
}

.cyber-logo h2 {
  color: var(--color-primary);
  font-size: 1.6rem;
  text-shadow: var(--glow-primary);
}

.cyber-nav ul {
  list-style: none;
}

.cyber-nav li {
  padding: 12px 15px;
  margin-bottom: 10px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.cyber-nav li:hover {
  background-color: rgba(0, 240, 255, 0.1);
  border-left-color: var(--color-primary);
}

.cyber-nav li.active {
  background-color: rgba(0, 240, 255, 0.2);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: bold;
}

.cyber-nav .nav-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.cyber-user {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-primary);
}

.user-avatar {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-cyber);
  border: 2px solid var(--color-primary);
  box-shadow: var(--glow-primary);
}

.user-info {
  text-align: center;
  margin-bottom: 10px;
}

.user-info p:first-child {
  font-weight: bold;
  color: var(--color-primary);
}

.user-info p:last-child {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

.cyber-panel {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  box-shadow: var(--glow-primary);
  max-width: 500px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.cyber-panel-header {
  background-color: var(--color-primary);
  color: var(--color-background); /* Ensure contrast with primary (light or dark) */
  padding: 15px 20px;
  font-family: var(--font-primary);
  position: relative;
}

.cyber-panel-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 15px 15px;
  border-color: transparent transparent var(--color-panel) transparent; /* Ensure this uses the panel color */
}

.cyber-panel-body {
  padding: 25px;
}

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

.cyber-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-primary);
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

.cyber-input, .cyber-select, .cyber-textarea {
  width: 100%;
  border: 1px solid var(--color-primary);
  background-color: var(--color-darker);
  color: var(--color-text);
  padding: 12px 15px;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
}

.cyber-input:focus, .cyber-select:focus, .cyber-textarea:focus {
  box-shadow: var(--glow-primary);
}

.cyber-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.cyber-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-primary);
  background-color: var(--color-darker);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
}

.cyber-checkbox:checked::before {
  content: "✓";
  position: absolute;
  color: var(--color-primary);
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.cyber-button {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 10px 20px;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.cyber-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

.cyber-button:hover {
  box-shadow: var(--glow-primary);
  text-shadow: var(--glow-primary);
}

.cyber-button:hover::before {
  left: 100%;
}

.cyber-button-text {
  position: relative;
  z-index: 1;
}

.cyber-button-glitch {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.2;
  z-index: 0;
}

.cyber-button:hover .cyber-button-glitch {
  display: block;
  animation: glitch 0.3s infinite;
}

.cyber-button-primary {
  background-color: var(--color-primary);
  color: var(--color-background); /* Ensure contrast */
}

.cyber-button-success {
  border-color: var(--color-success);
  color: var(--color-success);
}

.cyber-button-success:hover {
  box-shadow: 0 0 10px rgba(48, 255, 48, 0.7);
  text-shadow: 0 0 5px rgba(48, 255, 48, 0.7);
}

.cyber-button-secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.cyber-button-secondary:hover {
  box-shadow: var(--glow-secondary);
  text-shadow: var(--glow-secondary);
}

.cyber-button-small {
  padding: 5px 10px;
  font-size: 0.8rem;
}

/* Chat Page Specific Styles */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-primary);
  width: 100%;
  flex-wrap: wrap;
}

.model-selector {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.model-selector label {
  margin-right: 10px;
  color: var(--color-primary);
}

.chat-controls {
  display: flex;
  gap: 10px;
}

/* Chat container improvements */
.chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: calc(100vh - 80px);
  background-color: rgba(10, 14, 20, 0.8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 180, 220, 0.5);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-height: calc(100vh - 200px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 180, 220, 0.5) rgba(10, 14, 20, 0.4);
}

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

.chat-messages::-webkit-scrollbar-track {
  background: rgba(10, 14, 20, 0.4);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 180, 220, 0.5);
  border-radius: 4px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  animation: fadeIn 0.3s ease-in-out;
}

.message-content {
  padding: 12px 16px;
  border-radius: 8px;
  word-break: break-word;
  width: fit-content;
  max-width: 85%;
  overflow-wrap: break-word;
}

.message-content pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.message-content code {
  font-family: 'Courier New', monospace;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
}

.user-message {
  align-self: flex-end;
}

.user-message .message-content {
  background-color: rgba(0, 120, 215, 0.6); /* Specific for dark, consider var if used elsewhere */
  color: #ffffff; /* Explicitly white for this background */
  align-self: flex-end;
  margin-left: auto;
}

.assistant-message {
  align-self: flex-start;
}

.assistant-message .message-content {
  background-color: rgba(30, 35, 40, 0.8); /* Specific for dark, consider var if used elsewhere */
  color: #e0e0e0; /* Light gray for dark backgrounds */
}

.system-message {
  text-align: center;
  padding: 10px;
  margin: 10px 0;
  background-color: rgba(255, 255, 0, 0.1);
  border: 1px dashed var(--color-accent);
  border-radius: 4px;
  font-style: italic;
}

/* Chat input area improvements */
.chat-input-container {
  display: flex;
  padding: 15px;
  background-color: rgba(15, 20, 25, 0.9);
  border-top: 1px solid rgba(0, 180, 220, 0.3);
  width: 100%;
}

.chat-input-area {
  display: flex;
  width: 100%;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid rgba(0, 180, 220, 0.5);
  background-color: rgba(10, 15, 20, 0.8);
  color: #e0e0e0;
  font-size: 16px;
  resize: none;
  min-height: 50px;
  max-height: 150px;
  overflow-y: auto;
}

.chat-send-button {
  padding: 0 20px;
  height: 50px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #0088cc, #00aaff); /* Dark theme specific gradient */
  color: white; /* Explicit white for this dark gradient */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send-button:hover {
  background: linear-gradient(135deg, #00aaff, #0088cc);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.5); /* Dark theme glow */
}

.chat-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-primary);
  background-color: var(--color-panel);
  box-shadow: var(--glow-primary);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-height: calc(100vh - 200px);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-darker);
}

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

.chat-messages::-webkit-scrollbar-track {
  background: var(--color-darker);
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 4px;
}

.message {
  display: flex;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
}

.message-user {
  justify-content: flex-end;
}

.message-assistant {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 4px;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.message-user .message-content {
  background-color: rgba(0, 240, 255, 0.2); /* var(--color-primary) with alpha for dark */
  border: 1px solid var(--color-primary);
  /* text color will be var(--color-text) by default */
}

.message-assistant .message-content {
  background-color: rgba(255, 0, 160, 0.2); /* var(--color-secondary) with alpha for dark */
  border: 1px solid var(--color-secondary);
  /* text color will be var(--color-text) by default */
}

.system-message {
  text-align: center;
  padding: 10px;
  margin: 10px 0;
  background-color: rgba(255, 255, 0, 0.1);
  border: 1px dashed var(--color-accent);
  border-radius: 4px;
  font-style: italic;
}

.chat-input-container {
  display: flex;
  padding: 1rem;
  gap: 10px;
  background-color: var(--color-darker);
  border-top: 1px solid var(--color-primary);
}

.chat-input-container .cyber-textarea {
  flex-grow: 1;
  min-height: 40px;
  max-height: 150px;
}

.model-settings {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.model-settings.closed {
  max-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  opacity: 0;
}

.model-settings h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.settings-group {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.settings-group label {
  flex: 1;
  min-width: 100px;
  color: var(--color-primary);
}

.settings-group input[type="range"] {
  flex: 2;
  min-width: 150px;
}

.settings-group span {
  flex: 0 0 50px;
  text-align: right;
}

/* Models Page Specific Styles */
.models-page {
  padding: 1rem 0;
}

.model-search {
  margin-bottom: 1.5rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.model-card {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.model-card:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-5px);
}

.model-card-header {
  background-color: var(--color-primary);
  color: var(--color-background); /* Ensure contrast */
  padding: 10px 15px;
  font-family: var(--font-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-card-body {
  padding: 15px;
}

.model-stats {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.model-stat {
  flex: 1 0 50%;
  margin-bottom: 5px;
}

.model-stat-label {
  color: var(--color-text-dim);
  font-size: 0.8rem;
}

.model-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

/* History Page Specific Styles */
.history-page {
  padding: 1rem 0;
}

.history-filter {
  margin-bottom: 1.5rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.history-item:hover {
  box-shadow: var(--glow-primary);
}

.history-item-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid var(--color-primary);
}

.history-item-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
}

.history-item-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.history-item-body {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-preview {
  color: var(--color-text-dim);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.history-actions {
  display: flex;
  gap: 10px;
}

/* Settings Page Specific Styles */
.settings-page {
  padding: 1rem 0;
}

.settings-section {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.settings-section h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

/* Loader */
.fullscreen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cyber-spinner {
  width: 60px;
  height: 60px;
  position: relative;
  margin-bottom: 1rem;
}

.cyber-spinner-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.cyber-spinner-inner::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 3px solid transparent;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loading-text {
  font-family: var(--font-primary);
  color: var(--color-primary);
  animation: pulse 1.5s infinite alternate;
}

.model-loading, .history-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes glitch {
  0% { clip-path: polygon(0 0, 100% 0, 100% 2%, 0 2%); }
  20% { clip-path: polygon(0 70%, 100% 70%, 100% 72%, 0 72%); }
  40% { clip-path: polygon(0 45%, 100% 45%, 100% 47%, 0 47%); }
  60% { clip-path: polygon(0 25%, 100% 25%, 100% 27%, 0 27%); }
  80% { clip-path: polygon(0 85%, 100% 85%, 100% 87%, 0 87%); }
  100% { clip-path: polygon(0 60%, 100% 60%, 100% 62%, 0 62%); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .cyber-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-primary);
    padding: 1rem;
  }
  
  .cyber-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cyber-nav li {
    margin-right: 10px;
  }
  
  .cyber-user {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .user-avatar {
    margin-bottom: 0;
  }
  
  .user-info {
    text-align: left;
    margin-bottom: 0;
    margin-left: 10px;
  }
  
  .chat-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .model-selector {
    margin-bottom: 10px;
    width: 100%;
  }
  
  .chat-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .models-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-section {
    padding: 1rem;
  }
}

/* Main styles for Vigthoria Neural Nexus */

/* Layout components */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--grid-color);
    z-index: 100;
}

main {
    grid-area: main;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.sidebar {
    grid-area: sidebar;
    background-color: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--grid-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--grid-color);
}

.sidebar-content {
    padding: 20px;
    flex: 1;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--grid-color);
}

/* Chat interface */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 40px);
    position: relative;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid var(--grid-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 15px;
    border-radius: 4px;
    max-width: 80%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.message.user {
    background-color: rgba(0, 255, 255, 0.1); /* var(--color-primary) with alpha for dark */
    border-left: 3px solid var(--primary-color); /* Uses themed variable */
    align-self: flex-end;
    /* text color will be var(--color-text) by default */
}

.message.ai {
    background-color: rgba(255, 0, 255, 0.1); /* var(--color-secondary) with alpha for dark */
    border-left: 3px solid var(--secondary-color); /* Uses themed variable */
    align-self: flex-start;
    /* text color will be var(--color-text) by default */
}

.message-metadata {
    font-size: 0.8em;
    color: var(--color-text-dim); /* Use themed dim text color */
    margin-top: 5px;
}

.chat-input-container {
    padding: 15px;
    border-top: 1px solid var(--grid-color);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    resize: none;
    min-height: 60px;
    max-height: 150px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 10px;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 10px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
}

.nav-menu a.active {
    background-color: rgba(0, 255, 255, 0.2);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.nav-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color); /* Use themed text color */
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

/* Card component */
.card {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--grid-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid var(--grid-color);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 15px;
}

.card-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--grid-color);
}

/* Mobile menu button that appears on smaller screens */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color); /* Use themed primary color */
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1001;
}

/* Overlay for when mobile menu is open */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: var(--header-height) 1fr;
        grid-template-areas:
            "header"
            "main";
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .overlay.active {
        display: block;
    }
    
    .container {
        padding: 15px;
    }
    
    header {
        padding: 0 15px;
    }
    
    main {
        padding: 15px;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 0 10px;
    }
    
    main {
        padding: 10px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .chat-header {
        padding: 10px;
    }
    
    .chat-messages {
        padding: 8px;
        gap: 10px;
    }
    
    .message {
        padding: 10px;
        max-width: 95%;
    }
    
    .chat-input-container {
        padding: 10px;
    }
    
    .chat-input {
        min-height: 50px;
    }
    
    .btn-group {
        gap: 5px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-footer {
        padding: 8px 12px;
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .cyber-panel {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .cyber-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-primary);
    padding: 1rem;
  }
  
  .cyber-main {
    padding: 1rem;
  }
  
  .models-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
  
  .history-item-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .chat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .chat-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .model-selector {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .settings-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .settings-group input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  /* Fix for body grid layout on mobile */
  body {
    display: block;
    overflow-x: hidden;
    min-height: 100vh;
  }
  
  /* Fix for sidebar on mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  /* Fix for main content on mobile */
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
  }
  
  /* Fix for chat container on mobile */
  .chat-container {
    height: calc(100vh - 100px);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .cyber-logo h2 {
    font-size: 1.2rem;
  }
  
  .cyber-panel-body {
    padding: 15px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cyber-button {
    width: 100%;
  }
  
  .message-content {
    max-width: 90%;
  }
  
  .chat-input-container {
    flex-direction: column;
  }
  
  .model-settings .settings-group label {
    min-width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .history-item-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .history-item-preview {
    max-width: 100%;
  }
  
  .history-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Additional mobile fixes */
  .header, .header-title {
    font-size: 16px;
    padding: 0 10px;
  }
  
  .message {
    max-width: 95%;
    padding: 8px;
  }
  
  .user-controls button {
    padding: 5px 10px;
    font-size: 10px;
  }
  
  /* Fix scrolling */
  .chat-messages {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1200px) {
  .container {
    width: 90%;
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 10px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .logo {
    margin-right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  
  .button {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .card {
    padding: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-control {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  .button {
    width: 100%;
    text-align: center;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
}

/* styles.css - Adding layout fixes */
/* LAYOUT FIXES - Added after removal of layout-fix.css */
/* These styles ensure proper alignment and prevent overlapping */

/* Header Navigation Fix */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-primary);
  position: relative;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-nav-left, .header-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 1.5rem;
  text-shadow: var(--glow-primary);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-item {
  color: var(--color-text);
  padding: 5px 10px;
  position: relative;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--color-primary);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

/* Hero Section Fix */
.hero-section {
  position: relative;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 1000px;
  padding: 0 20px;
}

.hero-text-container {
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-shadow: var(--glow-primary);
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-text-dim);
  max-width: 700px;
}

.hero-visual {
  margin: 30px auto;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections Fix */
section {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-shadow: var(--glow-primary);
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  max-width: 800px;
  margin: 0 auto;
}

/* Grid Layouts Fix */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px auto;
}

.feature-card {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  padding: 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-5px);
}

.feature-icon {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.feature-desc {
  color: var(--color-text-dim);
  flex-grow: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px auto;
}

.product-card {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-5px);
}

.product-header {
  padding: 15px;
  background-color: rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid var(--color-primary);
}

.product-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 1.2rem;
}

.product-body {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-desc {
  color: var(--color-text-dim);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-align: center;
}

.product-button {
  margin-top: auto;
  align-self: center;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 40px auto;
}

.model-card {
  background-color: var(--color-panel);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 15px;
  transition: all 0.3s ease;
}

.model-card:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-5px);
}

.model-name {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 5px;
}

.model-details {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

/* Footer Fix */
.landing-footer {
  background-color: var(--color-darker);
  border-top: 1px solid var(--color-primary);
  padding: 20px 0;
  width: 100%;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  margin-bottom: 20px;
  min-width: 200px;
}

.footer-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 5px;
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 992px) {
  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    flex-direction: column;
    padding: 10px;
  }
  
  .header-nav-left,
  .header-nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .header-nav-left {
    margin-bottom: 10px;
  }
  
  .features-grid,
  .products-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .hero-cta .cyber-button {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-section {
    width: 100%;
    text-align: center;
  }
}

/* Critical layout fixes from layout-fix.css (April 2025) - Applied as overrides */

/* Force main container to full width */
.container,
.main-container,
.content-container,
main,
.main-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Fix section centering */
section {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 60px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
}

/* Center hero content */
.hero-section,
.landing-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 40px 20px !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hero-content {
  margin: 0 auto !important;
  max-width: 1200px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Fix grid layouts */
.grid,
.features-grid,
.products-grid,
.models-grid {
  display: grid !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 20px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Fixed header positioning */
.header-nav {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 20px !important;
  box-sizing: border-box !important;
  z-index: 1000 !important;
}

/* Footer fixes */
.landing-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Mobile responsive fixes from layout-fix.css */
@media (max-width: 992px) {
  .header-nav {
    flex-direction: column !important;
    padding: 10px !important;
  }

  .header-nav-left,
  .header-nav-right {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 5px !important;
  }

  .grid,
  .features-grid,
  .products-grid,
  .models-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .grid,
  .features-grid,
  .products-grid,
  .models-grid {
    grid-template-columns: 1fr !important;
  }
}
/* End of critical layout fixes from layout-fix.css */

/* Added from light-mode-fixes.css */
/* Light Mode Fixes - Comprehensive Version
   Fix various elements that have readability issues in light mode
   PRIORITY: Fixing white text in model cards that's unreadable in light mode
*/

/*==========================================
  MODEL CARD FIXES - HIGHEST PRIORITY
==========================================*/

/* Direct fix for model-glow and other white text in light mode */
[data-theme="light"] .model-glow { /* .parameter-value etc. are handled by more specific rules below */
  color: #0a1e3a !important; /* Dark blue for maximum readability */
  text-shadow: none !important; /* Remove light text shadows that reduce contrast */
  background-color: rgba(0, 85, 170, 0.1) !important;
  border: 1px solid rgba(0, 85, 170, 0.3) !important;
}

/* Direct targeting of specific model text elements */
[data-theme="light"] .model-card h3,
[data-theme="light"] .model-card p,
[data-theme="light"] .model-card div,
[data-theme="light"] .model-card span { /* This is a general rule, more specific ones follow */
  color: #0a1e3a !important;
}

/* Explicitly target model card sections */
[data-theme="light"] .model-details,
[data-theme="light"] .model-details div,
[data-theme="light"] .model-details span {
  color: #0a1e3a !important;
  background-color: rgba(0, 85, 170, 0.1) !important; 
  border: 1px solid rgba(0, 85, 170, 0.3) !important;
}

/* Special attention to model badges and stats */
[data-theme="light"] .model-badge,
[data-theme="light"] .model-type,
[data-theme="light"] .model-family,
[data-theme="light"] .model-size,
[data-theme="light"] .model-stats span {
  color: #0a1e3a !important;
  background-color: rgba(0, 85, 170, 0.1) !important;
  border: 1px solid rgba(0, 85, 170, 0.3) !important;
}

/* Target specific architecture and parameter elements */
[data-theme="light"] .model-card .parameter-value,
[data-theme="light"] .model-card .architecture-value,
[data-theme="light"] .model-card .specialization-value {
  color: #0a1e3a !important;
  font-weight: 600 !important;
  background-color: rgba(0, 85, 170, 0.1) !important;
  border: 1px solid rgba(0, 85, 170, 0.3) !important;
}

/* Card background for light mode */
[data-theme="light"] .model-card {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 85, 170, 0.5) !important;
  box-shadow: 0 0 15px rgba(0, 85, 170, 0.3) !important;
}

/*==========================================
  DROPDOWN FIXES
==========================================*/

/* Fix for template-select dropdown in light mode */
[data-theme="light"] #template-select,
[data-theme="light"] .cyber-select {
  color: #0a1e3a !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] #template-select option,
[data-theme="light"] .cyber-select option {
  color: #0a1e3a !important;
  background-color: #ffffff !important;
}

/* Fix for dropdown arrow color in light mode */
[data-theme="light"] .cyber-select::after {
  border-top-color: #0a1e3a !important;
}

/*==========================================
  LOGIN FORM FIXES
==========================================*/

/* Fix for login form input placeholders in light mode */
[data-theme="light"] .cyber-input::placeholder {
  color: #2a2a2a !important;
  opacity: 0;  /* Hide placeholder when icon is present */
}

[data-theme="light"] .input-container .cyber-input:focus::placeholder {
  opacity: 0.7; /* Show placeholder on focus */
  transform: translateY(0); /* Ensure text aligns properly when visible */
}

/* Reposition icons in input fields for better alignment */
.input-container {
  position: relative;
}

.input-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--icon-color, #1a73e8);
}

/* Adjust padding to ensure text doesn't overlap with icons */
.input-container .cyber-input {
  padding-left: 40px !important;
}

/* Fix for login-options display after successful login */
.login-options {
  display: block !important;
  transition: opacity 0.3s ease;
}

.login-success .login-options {
  opacity: 1 !important;
}

/* Additional styling for the authorized message */
.authorized-message {
  color: #00cc66;
  font-weight: bold;
  margin-top: 10px;
  display: block;
  text-align: center;
}

/* FIX: Improve readability of hero description text in light mode */
[data-theme="light"] .hero-description {
  color: #0a1e3a !important;
  font-weight: 500 !important;
}

[data-theme="light"] .hero-description .highlight {
  color: #1a5fb4 !important;
  font-weight: 700 !important;
  text-shadow: none !important; 
}

[data-theme="light"] .hero-description .pink-highlight {
  color: #a6246e !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* FIX: Product cards icon and image styling */
.product-card .product-logo {
  display: block;
  max-width: 100px;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.8));
}

/* FIX: Improve product card description text readability in light mode */
[data-theme="light"] .product-card {
  background: rgba(240, 245, 250, 0.85) !important;
  border: 1px solid rgba(165, 0, 100, 0.6) !important;
}

/* Fix for model card text in light mode - comprehensive fix for all elements */
[data-theme="light"] .model-glow,
[data-theme="light"] .model-card,
[data-theme="light"] .model-card h3,
[data-theme="light"] .model-card p,
[data-theme="light"] .model-card .model-details,
[data-theme="light"] .model-card .model-stats,
[data-theme="light"] .model-card .model-info,
[data-theme="light"] .model-card .model-tags,
[data-theme="light"] .model-card .tag {
  color: #0a1e3a !important; /* Dark blue text for better contrast */
}

/* Ensure model card background has enough contrast in light mode */
[data-theme="light"] .model-card {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 85, 170, 0.5) !important;
  box-shadow: 0 0 15px rgba(0, 85, 170, 0.3) !important;
}

/* Fix parameter architecture and tags */
/* This section is revised as other rules now cover .parameter-value, .architecture-value, .specialization-value, .model-badge, .model-family more specifically or have been updated. */
[data-theme="light"] .tag {
  color: #0a1e3a !important;
  background-color: rgba(0, 85, 170, 0.1) !important;
  border: 1px solid rgba(0, 85, 170, 0.3) !important;
}

[data-theme="light"] .model-tags span { /* Ensuring .model-tags span is explicitly covered */
  color: #0a1e3a !important;
  background-color: rgba(0, 85, 170, 0.1) !important;
  border: 1px solid rgba(0, 85, 170, 0.3) !important;
}

/* Fix model stats values in light mode */
/* This rule for .model-stats span is now covered by the "Special attention to model badges and stats" section update.
   If it had unique properties, they would be merged. The current properties are identical.
[data-theme="light"] .model-stats span {
  color: #0a1e3a !important;
  background-color: rgba(0, 85, 170, 0.1) !important;
  border-color: rgba(0, 85, 170, 0.3) !important; 
}
*/

[data-theme="light"] .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(165, 0, 100, 0.4) !important;
  border-color: rgba(165, 0, 100, 0.9) !important;
  background: rgba(245, 250, 255, 0.95) !important;
}

[data-theme="light"] .product-description {
  color: #0a1e3a !important;
  font-weight: 500 !important;
}

[data-theme="light"] .product-title {
  color: #a6246e !important;
}

/* FIX: Enhance feature card hover effect and readability */
[data-theme="light"] .feature-card {
  background: rgba(240, 245, 250, 0.8) !important;
  border: 1px solid rgba(26, 95, 180, 0.4) !important;
}

[data-theme="light"] .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(26, 95, 180, 0.4) !important;
  border-color: rgba(26, 95, 180, 0.8) !important;
  background: rgba(245, 250, 255, 0.9) !important;
}

[data-theme="light"] .feature-title {
  color: #1a5fb4 !important;
}

[data-theme="light"] .feature-desc {
  color: #0a1e3a !important;
}

[data-theme="light"] .feature-icon {
  color: #1a5fb4 !important;
}

/* FIX: Improve model specs readability in light mode */
[data-theme="light"] .model-card {
  background: rgba(240, 245, 250, 0.8) !important;
  border: 1px solid rgba(165, 0, 100, 0.4) !important;
}

[data-theme="light"] .model-name {
  color: #a6246e !important;
}

[data-theme="light"] .spec-label {
  color: #1a5fb4 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .spec-value {
  color: #0a1e3a !important;
  font-weight: 600 !important;
}

/* FIX: Enhancing model card glow effect */
[data-theme="light"] .model-glow {
  background: radial-gradient(circle, rgba(165, 0, 100, 0.2) 0%, transparent 70%) !important;
}

/* FIX: Improve buttons in light mode */
[data-theme="light"] .product-button,
[data-theme="light"] .cyber-button {
  background: rgba(165, 0, 100, 0.2) !important;
  border: 1px solid rgba(165, 0, 100, 0.6) !important;
  color: #a6246e !important;
}

[data-theme="light"] .product-button:hover,
[data-theme="light"] .cyber-button:hover {
  background: rgba(165, 0, 100, 0.3) !important;
  box-shadow: 0 0 15px rgba(165, 0, 100, 0.4) !important;
}

/* FIX: Ensure section titles are readable in light mode */
[data-theme="light"] .cyber-section-title {
  color: #a6246e !important;
  text-shadow: none !important;
}

/* ===== END OF layout-fix.css STYLES ===== */

/* ===== START OF landing-login-enhancements.css STYLES ===== */
/* Enhanced Landing Page & Login Page Styles - April 2025 Update */

/* ===== COMMON ELEMENTS ===== */
:root {
  --cyber-primary: #00f0ff;
  --cyber-primary-glow: rgba(0, 240, 255, 0.7);
  --cyber-secondary: #ff00a0;
  --cyber-secondary-glow: rgba(255, 0, 160, 0.7);
  --cyber-accent: #ffff00;
  --cyber-accent-glow: rgba(255, 255, 0, 0.5);
  --cyber-dark: #0a0a1a;
  --cyber-darker: #05050f;
  --cyber-panel: rgba(10, 10, 30, 0.8);
  --cyber-text: #ffffff;
  --cyber-text-dim: #aaaaaa;
}

/* ===== NAVBAR STYLES ===== */
.cyber-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem; /* Reduced padding for a more compact header */
  background: rgba(0, 0, 0, 0.7); /* Slightly darker background */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--cyber-primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 0 10px var(--cyber-primary-glow);
  height: 50px; /* Fixed height for more compact navbar */
}

.cyber-logo-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cyber-logo-nav span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--cyber-primary);
  text-shadow: 0 0 5px var(--cyber-primary-glow);
  letter-spacing: 1px;
  font-size: 0.9rem; /* Smaller font size */
}

.cyber-nav-links {
  display: flex;
  gap: 1.5rem; /* Reduced gap between navigation links */
  margin-right: 1rem; /* Add margin to separate from any buttons on the right */
}

.cyber-nav-link {
  color: var(--cyber-text);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.8rem; /* Slightly smaller font size */
  letter-spacing: 1px;
  position: relative;
  padding: 0.25rem 0.5rem; /* Added horizontal padding */
  transition: all 0.3s ease;
  border-radius: 2px; /* Subtle radius */
}

.cyber-nav-link:hover {
  color: var(--cyber-primary);
  text-shadow: 0 0 5px var(--cyber-primary-glow);
  background: rgba(0, 240, 255, 0.05); /* Subtle background on hover */
}

.cyber-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--cyber-primary);
  transition: right 0.3s ease;
}

.cyber-nav-link:hover::after {
  right: 0;
}

.cyber-button-small {
  background: linear-gradient(45deg, var(--cyber-secondary), var(--cyber-primary));
  color: var(--cyber-dark);
  border: none;
  padding: 0.3rem 0.8rem; /* Reduced padding */
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.75rem; /* Smaller font size */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 2px;
  letter-spacing: 0.5px; /* Tighter letter spacing */
}

.cyber-button-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--cyber-primary-glow);
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 5.5rem 2rem 3rem; /* Reduced top padding */
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-title-enhanced {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cyber-title-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); /* Added base shadow for better readability */
}

.vigthoria-main {
  color: var(--cyber-primary);
  text-shadow: 0 0 15px var(--cyber-primary-glow), 0 0 30px var(--cyber-primary-glow), 0 0 5px #000; /* Enhanced glow effect */
  position: relative;
  animation: pulsate-text 3s infinite alternate; /* Added pulsating animation */
}

.llm-chat-text {
  color: var(--cyber-secondary);
  text-shadow: 0 0 15px var(--cyber-secondary-glow), 0 0 30px var(--cyber-secondary-glow), 0 0 5px #000; /* Enhanced glow effect */
  position: relative;
  animation: pulsate-text 3s infinite alternate-reverse; /* Added pulsating animation in reverse */
}

/* New animation for pulsating text */
@keyframes pulsate-text {
  0% {
    text-shadow: 0 0 15px var(--cyber-primary-glow), 0 0 30px var(--cyber-primary-glow), 0 0 5px #000;
  }
  100% {
    text-shadow: 0 0 20px var(--cyber-primary-glow), 0 0 40px var(--cyber-primary-glow), 0 0 60px var(--cyber-primary-glow), 0 0 5px #000;
  }
}

.landing-subtitle-enhanced {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--cyber-text);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.version-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--cyber-dark), rgba(10, 10, 50, 0.8));
  color: var(--cyber-accent);
  font-family: 'Share Tech Mono', monospace;
  padding: 0.25rem 1rem;
  border: 1px solid var(--cyber-accent);
  border-radius: 2px;
  font-size: 0.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 8px var(--cyber-accent-glow);
}

.landing-description-enhanced {
  font-family: 'Rajdhani', sans-serif;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--cyber-text-dim);
  line-height: 1.6;
  font-size: 1.2rem;
}

.landing-buttons-enhanced {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cyber-button-enhanced {
  background: linear-gradient(45deg, var(--cyber-primary), var(--cyber-dark));
  color: var(--cyber-text);
  border: 1px solid var(--cyber-primary);
  padding: 0.8rem 2rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cyber-button-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--cyber-primary-glow);
}

.cyber-button-pink {
  background: linear-gradient(45deg, var(--cyber-secondary), var(--cyber-dark));
  border: 1px solid var(--cyber-secondary);
  box-shadow: 0 0 10px rgba(255, 0, 160, 0.3);
}

.cyber-button-pink:hover {
  box-shadow: 0 0 20px var(--cyber-secondary-glow);
}

.button-icon {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyber-primary);
  text-shadow: 0 0 10px var(--cyber-primary-glow);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyber-text-dim);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.cyber-section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--cyber-primary);
  text-shadow: 0 0 8px var(--cyber-primary-glow);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-line {
  height: 1px;
  width: 150px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--cyber-primary), 
    var(--cyber-primary), 
    transparent
  );
  margin: 0 auto;
  position: relative;
}

.section-line::before,
.section-line::after {
  content: '';
  position: absolute;
  top: -2px;
  height: 5px;
  width: 5px;
  background: var(--cyber-primary);
  box-shadow: 0 0 8px var(--cyber-primary-glow);
}

.section-line::before {
  left: 50px;
}

.section-line::after {
  right: 50px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 4rem 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--cyber-panel);
  border: 1px solid var(--cyber-primary);
  padding: 2rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cyber-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  font-family: 'Rajdhani', sans-serif;
  color: var(--cyber-text-dim);
  line-height: 1.6;
}

/* ===== MODELS SECTION ===== */
.models-section {
  padding: 4rem 2rem;
  background: linear-gradient(0deg, transparent, rgba(0, 0, 0, 0.7), transparent);
}

.models-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.model-card {
  background: var(--cyber-panel);
  border: 1px solid var(--cyber-primary);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.model-card.premium {
  border: 1px solid var(--cyber-secondary);
  box-shadow: 0 0 15px rgba(255, 0, 160, 0.2);
}

.model-card.premium:hover {
  box-shadow: 0 0 25px rgba(255, 0, 160, 0.3);
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--cyber-primary);
}

.model-card.premium .model-header {
  border-bottom: 1px solid var(--cyber-secondary);
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(255, 0, 160, 0.1));
}

.model-header h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cyber-primary);
  margin: 0;
}

.model-card.premium .model-header h4 {
  color: var(--cyber-secondary);
  text-shadow: 0 0 5px var(--cyber-secondary-glow);
}

.model-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyber-primary);
  color: var(--cyber-primary);
}

.model-card.premium .model-badge {
  background: rgba(255, 0, 160, 0.1);
  border: 1px solid var(--cyber-secondary);
  color: var(--cyber-secondary);
}

.model-specs {
  padding: 1rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  color: var(--cyber-text-dim);
  font-size: 0.9rem;
}

.spec-label {
  color: var(--cyber-text);
  font-weight: 600;
}

.model-actions {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.model-info-link {
  font-family: 'Rajdhani', sans-serif;
  color: var(--cyber-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.model-info-link:hover {
  text-shadow: 0 0 5px var(--cyber-primary-glow);
}

.models-note {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyber-text-dim);
  font-size: 0.9rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 4rem 2rem;
  background: linear-gradient(0deg, transparent, rgba(0, 0, 0, 0.7));
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  font-family: 'Orbitron', sans-serif;
  color: var(--cyber-primary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.question-icon {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyber-secondary);
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 25px;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  color: var(--cyber-text-dim);
  line-height: 1.6;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.answer-icon {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyber-primary);
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 25px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(0deg, rgba(10, 10, 40, 0.7), transparent);
}

.cta-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--cyber-secondary);
  text-shadow: 0 0 10px var(--cyber-secondary-glow);
  margin-bottom: 1rem;
}

.cta-section p {
  font-family: 'Rajdhani', sans-serif;
  color: var(--cyber-text);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.cyber-footer {
  padding: 3rem 2rem;
  background: rgba(5, 5, 15, 0.8);
  border-top: 1px solid var(--cyber-primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.footer-logo span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  color: var(--cyber-primary);
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: 'Rajdhani', sans-serif;
  color: var(--cyber-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--cyber-primary);
  text-shadow: 0 0 5px var(--cyber-primary-glow);
}

.footer-info {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyber-text-dim);
  font-size: 0.8rem;
}

/* ===== FLOATING ELEMENTS ANIMATION ===== */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.floating-cube,
.floating-sphere,
.floating-pyramid,
.data-flow {
  position: absolute;
  opacity: 0.1;
}

.floating-cube {
  width: 150px;
  height: 150px;
  border: 2px solid var(--cyber-primary);
  animation: floatAnimation 15s infinite linear, rotateAnimation 30s infinite linear;
  top: 20%;
  left: 10%;
}

.floating-sphere {
  width: 100px;
  height: 100px;
  border: 2px solid var(--cyber-secondary);
  border-radius: 50%;
  animation: floatAnimation 20s infinite linear reverse;
  top: 60%;
  right: 15%;
}

.floating-pyramid {
  width: 0;
  height: 0;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 150px solid var(--cyber-accent);
  opacity: 0.05;
  animation: floatAnimation 25s infinite linear, rotateAnimation 40s infinite linear reverse;
  top: 30%;
  right: 30%;
}

.data-flow {
  width: 2px;
  height: 70%;
  background: linear-gradient(to bottom, transparent, var(--cyber-primary), transparent);
  animation: dataFlowAnimation 8s infinite linear;
  top: 15%;
  left: 35%;
}

@keyframes floatAnimation {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, 20px);
  }
  50% {
    transform: translate(0, 40px);
  }
  75% {
    transform: translate(-20px, 20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes rotateAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dataFlowAnimation {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* ===== LOGIN PAGE ENHANCEMENTS ===== */
.login-container-enhanced {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-form-enhanced {
  background: var(--cyber-panel);
  border: 1px solid var(--cyber-primary);
  box-shadow: 0 0 30px var(--cyber-primary-glow);
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  z-index: 10;
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  backdrop-filter: blur(10px);
}

.cyber-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.cyber-logo-glow {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--cyber-primary);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
  animation: pulsate 3s infinite;
}

.login-logo {
  position: relative;
  z-index: 1;
  margin-right: 1rem;
}

.login-title-enhanced {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--cyber-primary);
  text-shadow: 0 0 10px var(--cyber-primary-glow);
  text-align: center;
  position: relative;
}

.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--cyber-secondary);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: 1px 0 var(--cyber-accent);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(0% 0% 98% 0%);
  }
  10% {
    clip-path: inset(15% 0% 49% 0%);
  }
  20% {
    clip-path: inset(95% 0% 59% 0%);
  }
  30% {
    clip-path: inset(43% 0% 4% 0%);
  }
  40% {
    clip-path: inset(0% 0% 45% 0%);
  }
  50% {
    clip-path: inset(14% 0% 96% 0%);
  }
  60% {
    clip-path: inset(1% 0% 28% 0%);
  }
  70% {
    clip-path: inset(64% 0% 91% 0%);
  }
  80% {
    clip-path: inset(41% 0% 10% 0%);
  }
  90% {
    clip-path: inset(87% 0% 66% 0%);
  }
  100% {
    clip-path: inset(19% 0% 39% 0%);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(1% 0% 94% 0%);
  }
  10% {
    clip-path: inset(33% 0% 40% 0%);
  }
  20% {
    clip-path: inset(15% 0% 22% 0%);
  }
  30% {
    clip-path: inset(57% 0% 9% 0%);
  }
  40% {
    clip-path: inset(5% 0% 41% 0%);
  }
  50% {
    clip-path: inset(63% 0% 26% 0%);
  }
  60% {
    clip-path: inset(15% 0% 83% 0%);
  }
  70% {
    clip-path: inset(99% 0% 16% 0%);
  }
  80% {
    clip-path: inset(23% 0% 35% 0%);
  }
  90% {
    clip-path: inset(67% 0% 9% 0%);
  }
  100% {
    clip-path: inset(30% 0% 79% 0%);
  }
}

.security-badge {
  background: linear-gradient(45deg, var(--cyber-dark), rgba(10, 10, 50, 0.8));
  color: var(--cyber-accent);
  font-family: 'Share Tech Mono', monospace;
  padding: 0.5rem 1rem;
  border: 1px solid var(--cyber-accent);
  border-radius: 2px;
  font-size: 0.9rem;
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.pulse-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 0, 0.3), transparent);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.security-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
}

.security-line {
  display: flex;
  justify-content: space-between;
}

.security-label {
  color: var(--cyber-text);
}

.security-value {
  color: var(--cyber-text-dim);
}

.security-active {
  color: var(--cyber-primary);
}

.access-terminal-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: var(--cyber-text-dim);
  background: var(--cyber-darker);
  padding: 1rem;
  border-left: 3px solid var(--cyber-primary);
  margin-bottom: 1.5rem;
}

.terminal-line {
  margin-bottom: 0.3rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.terminal-line.typed {
  opacity: 1;
}

.status-ok {
  color: #0f0;
}

.form-group-enhanced {
  margin-bottom: 1.5rem;
}

.form-group-enhanced label {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--cyber-primary);
  margin-bottom: 0.5rem;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyber-primary);
  font-size: 1.2rem;
}

.form-control-enhanced {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 2.5rem;
  background: rgba(0, 0, 20, 0.7);
  border: none;
  color: var(--cyber-text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyber-primary);
  transition: width 0.3s ease;
}

.form-control-enhanced:focus + .input-line {
  width: 100%;
}

.cyber-button-login {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(45deg, var(--cyber-primary), var(--cyber-secondary));
  color: var(--cyber-dark);
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 2px;
  letter-spacing: 1px;
}

.cyber-button-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--cyber-primary-glow), 0 0 10px var(--cyber-secondary-glow);
}

.login-options {
  margin-top: 1.5rem;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
}

.login-options a {
  color: var(--cyber-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-options a:hover {
  color: var (--cyber-secondary);
  text-shadow: 0 0 5px var(--cyber-secondary-glow);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
  .cyber-navbar {
    padding: 0.5rem 1rem;
  }
  .cyber-nav-links {
    gap: 1rem;
  }
  .hero-section {
    padding: 4rem 1rem 2rem;
  }
  .cyber-title-text {
    font-size: 2.8rem;
  }
  .landing-subtitle-enhanced {
    font-size: 1.2rem;
  }
  .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  .stat-value {
    font-size: 2rem;
  }
  .features-grid,
  .models-showcase {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .cyber-navbar {
    flex-direction: column;
    height: auto;
    padding: 0.5rem;
  }
  .cyber-logo-nav {
    margin-bottom: 0.5rem;
  }
  .cyber-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .cyber-nav-link {
    font-size: 0.75rem;
  }
  .cyber-button-small {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .cyber-title-text {
    font-size: 2.2rem;
  }
  .landing-buttons-enhanced {
    flex-direction: column;
    gap: 1rem;
  }
  .cyber-button-enhanced {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .cyber-section-title {
    font-size: 1.5rem;
  }
  .login-form-enhanced {
    padding: 1.5rem;
  }
  .login-title-enhanced {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cyber-title-text {
    font-size: 1.8rem;
  }
  .landing-subtitle-enhanced {
    font-size: 1rem;
  }
  .version-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
  }
  .landing-description-enhanced {
    font-size: 1rem;
  }
  .stat-item {
    flex-basis: 100%;
  }
  .feature-card,
  .model-card {
    padding: 1.5rem;
  }
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  .cta-section h3 {
    font-size: 1.5rem;
  }
  .cta-section p {
    font-size: 1rem;
  }
  .cyber-footer {
    padding: 2rem 1rem;
  }
}
/* ===== END OF landing-login-enhancements.css STYLES ===== */

/* ===== START OF LANDING PAGE LIGHT MODE ENHANCEMENTS (MAY 2025) ===== */
[data-theme="light"] {
  /* Updated base text colors for a more serious look in light mode */
  --color-text-light: #2c3e50; /* Dark grayish blue */
  --color-text-dim-light: #556678; /* Medium grayish blue */
  
  /* Override general text color variable for light theme */
  --color-text: var(--color-text-light);
  --color-text-dim: var(--color-text-dim-light);

  /* Hero section title adjustments for light mode */
  .hero-title {
    color: #334E68 !important; /* A deep, serious blue */
    animation: none !important; /* Disable textFlicker animation */
    text-shadow: none !important; /* Remove any text shadows */
  }

  .hero-title.glitch-text::before,
  .hero-title.glitch-text::after {
    display: none !important; /* Disable glitch pseudo-elements */
    animation: none !important;
  }

  /* Brand title in header */
  .brand-title {
    color: #7c1f58 !important; /* Darker, less vibrant magenta, slightly different from main-title for variance */
    text-shadow: none !important;
    animation: none !important; /* Disable titlePulse animation */
  }

  /* Main headline (NEURAL NEXUS INTERFACE - if different from hero-title) */
  .main-headline { /* As per inline styles in landing.html */
    color: #1071E0 !important; /* A more serious blue than the default cyan glow */
    text-shadow: none !important; /* Remove glow for a cleaner look */
    animation: none !important; /* Stop glow animation */
  }

  /* Enhanced main titles (e.g., ACCESS THE NEURAL FRONTIER) */
  .main-title-enhanced { /* As per inline styles in landing.html */
     color: #8B1A5F !important; /* Darker, less vibrant pink/magenta */
     text-shadow: none !important;
     animation: none !important; /* Disable titlePulse animation */
  }

  /* Section titles */
  .cyber-section-title {
    color: #581C87 !important; /* Darker purple for section titles */
    text-shadow: none !important;
    animation: none !important; /* Stop titlePulse animation */
  }
  .cyber-section-title:after { /* Adjust underline */
    background: linear-gradient(90deg, transparent, #7E22CE, transparent) !important;
  }

  /* Hero description text */
  .hero-description {
    color: var(--color-text-light) !important; /* Use the new serious text color */
  }

  /* Highlight colors within text */
  .highlight {
    color: #005ea2 !important; /* A more subdued, serious blue */
    font-weight: 600 !important;
    text-shadow: none !important;
  }

  .pink-highlight {
    color: #a31565 !important; /* A more subdued, serious pink/magenta */
    font-weight: 600 !important;
    text-shadow: none !important;
  }

  /* Ensure general body text uses the new variable correctly */
  body {
    color: var(--color-text);
    background-color: var(--color-background);
  }

  /* Ensure panel backgrounds are light and not transparent if they were before */
  .cyber-panel,
  .feature-card,
  .product-card,
  .model-card {
    background-color: var(--color-panel-light, rgba(255, 255, 255, 0.9)) !important;
    border-color: var(--color-dark-light, #dee2e6) !important;
  }

}
/* ===== END OF LANDING PAGE LIGHT MODE ENHANCEMENTS (MAY 2025) ===== */
