/* ================================================
   NSecurity - Main Styles
   Ministry of National Security of Ghana
   Professional Command Center UI
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-gold-light);
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* ========== App Layout ========== */
.app-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-base);
}

/* ========== Sidebar ========== */
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 300;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.sidebar-logo img {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.sidebar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
}

.sidebar-title span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-top: 2px;
}

.sidebar.collapsed .sidebar-title {
  display: none;
}

/* ========== Sidebar Navigation ========== */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 2px;
}

.nav-section {
  margin-bottom: 1.25rem;
}

.nav-section-title {
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar.collapsed .nav-section-title {
  text-align: center;
  padding: 0.5rem;
}

.sidebar.collapsed .nav-section-title::after {
  content: '•••';
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

/* Nav Item Base */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  margin: 0 0.5rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background: transparent;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(252, 209, 22, 0.15), rgba(252, 209, 22, 0.05));
  color: var(--accent-gold);
  box-shadow: inset 0 0 0 1px rgba(252, 209, 22, 0.2);
}

.nav-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
  opacity: 1;
}

.nav-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0.75rem;
  margin: 0.25rem 0.5rem;
}

.sidebar.collapsed .nav-item-text,
.sidebar.collapsed .nav-item-arrow,
.sidebar.collapsed .nav-item-badge {
  display: none;
}

.nav-item-badge {
  background: var(--danger);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Expandable Nav Items */
.nav-item-expandable {
  display: flex;
  flex-direction: column;
  margin: 0 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.nav-item-expandable .nav-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0;
}

.nav-item-expandable .nav-item-header:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item-expandable.expanded .nav-item-header {
  color: var(--text-primary);
}

.nav-item-arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.nav-item-expandable.expanded .nav-item-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

.nav-subitems {
  display: none;
  padding: 0.25rem 0 0.5rem 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}

.nav-item-expandable.expanded .nav-subitems {
  display: block;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
  text-decoration: none;
  position: relative;
}

.nav-subitem::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.15s ease;
}

.nav-subitem:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-subitem:hover::before {
  background: var(--text-primary);
}

.nav-subitem.active {
  color: var(--accent-gold);
}

.nav-subitem.active::before {
  background: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-default);
  background: var(--bg-card);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ========== Main Content ========== */
.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-base);
}

.sidebar.collapsed + .main-content {
  margin-left: 72px;
}

/* ========== Header ========== */
.main-header {
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 240px;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.header-search input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.1);
  width: 300px;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-action-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-action-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.header-action-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 0.5rem;
}

.user-menu:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ghana-gold), var(--ghana-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: #000;
}

.user-info {
  text-align: left;
}

.user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ========== Page Content ========== */
.page-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0; /* Critical for flex children */
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.main-content {
  overflow-x: hidden;
  min-width: 0;
}

/* Ensure tables don't overflow */
.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  min-width: 100%;
}

/* Ensure cards and their contents don't overflow */
.card-body {
  min-width: 0;
  overflow-x: auto;
}

/* Ensure flex containers don't overflow */
.flex {
  min-width: 0;
}

.flex > * {
  min-width: 0;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ========== Header Controls ========== */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.75rem;
  margin-right: 0.5rem;
  border-right: 1px solid var(--border-default);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.hidden { display: none; }

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px currentColor; }
  50% { box-shadow: 0 0 15px currentColor; }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-in-up { animation: slideInUp 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }

/* ========== Grid System ========== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Prevent grid children from overflowing */
.grid > * { min-width: 0; }

@media (max-width: 1400px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: 1fr; }
}

/* ========== Dropdown Menu ========== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 500;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-default);
  margin: 0.5rem 0;
}

/* ========== Toast Notifications ========== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 900;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.3s ease-out;
}

.toast-info { border-left: 3px solid var(--info); }
.toast-success { border-left: 3px solid var(--success); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-error { border-left: 3px solid var(--danger); }

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.toast-close:hover {
  opacity: 1;
}

.toast.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to { 
    opacity: 0; 
    transform: translateX(100%);
  }
}

/* ========== AI Panel ========== */
.ai-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  z-index: 400;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.ai-panel.active {
  right: 0;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
}

.ai-panel-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.ai-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--intel-cyan), var(--intel-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.ai-icon svg {
  width: 16px;
  height: 16px;
}

.ai-panel-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-panel-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.ai-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.ai-welcome {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ai-welcome h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--intel-cyan), var(--intel-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-welcome p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.ai-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ai-suggestion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.ai-suggestion:hover {
  background: var(--bg-card-hover);
  border-color: var(--intel-cyan);
  color: var(--text-primary);
}

.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message {
  display: flex;
  gap: 0.75rem;
}

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

.ai-message.user .ai-message-content {
  background: var(--intel-cyan);
  color: white;
  border-radius: 12px 12px 4px 12px;
}

.ai-message-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--intel-cyan), var(--intel-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ai-message-avatar svg {
  width: 14px;
  height: 14px;
}

.ai-message-content {
  max-width: 85%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-radius: 12px 12px 12px 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ai-panel-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-default);
  background: var(--bg-card);
}

.ai-input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.ai-input:focus {
  outline: none;
  border-color: var(--intel-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.ai-input::placeholder {
  color: var(--text-muted);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--intel-cyan), var(--intel-purple));
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Horizontal layout removed - vertical only */

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .ai-panel {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  
  .page-content {
    padding: 1rem;
  }
}
