/* Shared Layout Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0e27;
  color: #e4e4e7;
  min-height: 100vh;
}

.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 190px;
  background: linear-gradient(180deg, #1a1d3a 0%, #0f1123 100%);
  border-right: 1px solid #1e2139;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid #1e2139;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f4f4f5;
}

.logo-text p {
  font-size: 0.7rem;
  color: #71717a;
  margin-top: 2px;
}

.sidebar-search {
  margin-top: 15px;
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 15px 10px 38px;
  background: #0a0e27;
  border: 1px solid #27293d;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 0.875rem;
}

.sidebar-search input:focus {
  outline: none;
  border-color: #6366f1;
}

.sidebar-search::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.neural-network-animation {
  padding: 20px 15px;
  border-bottom: 1px solid #1e2139;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.neural-network-animation svg {
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.menu-section {
  margin-bottom: 25px;
  padding: 0 12px;
}

.menu-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 12px 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #a1a1aa;
  margin-bottom: 4px;
}

.menu-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #e4e4e7;
}

.menu-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #f4f4f5;
  border-left: 3px solid #6366f1;
}

.menu-item-icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.menu-item-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #1e2139;
}

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-stats-label {
  font-size: 0.75rem;
  color: #71717a;
}

.sidebar-stats-value {
  font-size: 0.75rem;
  color: #22c55e;
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: #0a0e27;
}

.content-header {
  background: linear-gradient(135deg, #1a1d3a 0%, #0f1123 100%);
  border-bottom: 1px solid #1e2139;
  padding: 25px 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.header-top h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f4f4f5;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-btn {
  padding: 10px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: #e4e4e7;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.header-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.header-metrics {
  display: flex;
  gap: 30px;
}

.header-metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-metric-label {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.header-metric-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e4e4e7;
}

.page-content {
  padding: 30px;
  min-height: calc(100vh - 200px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1d3a 0%, #0f1123 100%);
  border-top: 1px solid #1e2139;
  padding: 40px 30px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  width: 280px;
  height: auto;
}

.footer-text {
  flex: 1;
  color: #a1a1aa;
  font-size: 0.813rem;
  line-height: 1.6;
}

.footer-text h3 {
  color: #f4f4f5;
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-text p {
  margin-bottom: 8px;
  color: #a1a1aa;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.813rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #6366f1;
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #71717a;
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-copyright p {
  margin-bottom: 4px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid #6366f1;
  color: #a5b4fc;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  margin-right: 15px;
}

.mobile-menu-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 100;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-content {
    width: 100%;
  }

  .header-top h2 {
    font-size: 1.3rem;
  }

  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .header-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
  }

  .header-metrics {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
  }

  .page-content {
    padding: 15px;
  }

  .content-header {
    padding: 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-logo img {
    width: 200px;
  }

  footer {
    padding: 30px 15px;
  }
}
