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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

h5 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

h6 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.app-container {
  display: flex;
  height: 100vh;
  background-color: #f1f5f9;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background-color: #0f172a;
  border-right: 1px solid #1e293b;
  transition: width 0.3s ease-in-out;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar:not(.collapsed) {
  width: 240px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid #1e293b;
  padding: 0 24px;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0 16px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.sidebar-logo-icon {
  color: #FF8A34;
  width: 32px;
  height: 32px;
}

.sidebar-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.sidebar-logo-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.sidebar-toggle {
  padding: 6px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-toggle:hover {
  background-color: #1e293b;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
}

.nav-item:hover {
  background-color: #1e293b;
  color: #f1f5f9;
}

.nav-item.active {
  background-color: #FF8A34;
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.sidebar-footer {
  border-top: 1px solid #1e293b;
  padding: 16px;
}

.sidebar-footer-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background-color: #1e293b;
  border: 1px solid #334155;
}

.sidebar-footer-icon {
  width: 20px;
  height: 20px;
  color: #FF8A34;
}

.sidebar-footer-title {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.sidebar-footer-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.main-content {
  flex: 1;
  overflow: auto;
  background-color: #f1f5f9;
}

.top-bar {
  background-color: white;
  border-bottom: 1px solid: #e2e8f0;
  padding: 12px 32px;
}

.top-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A34 0%, #F0731E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  display: none;
}

@media (min-width: 640px) {
  .user-info {
    display: block;
  }
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.user-role {
  font-size: 12px;
  color: #64748b;
}

.content-area {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
}

.breadcrumb-item {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb-item:hover {
  color: #0f172a;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.card-header {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.card-content {
  padding: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #FF8A34;
  color: white;
}

.btn-primary:hover {
  background-color: #F0731E;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  background-color: white;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-outline:hover {
  background-color: #f1f5f9;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-critical {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-high {
  background-color: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.badge-medium {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-low {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-confidence-high {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-confidence-medium {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-confidence-low {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background-color: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
}

.table th {
  padding: 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #1e293b;
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  font-size: 14px;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: #FF8A34;
  box-shadow: 0 0 0 3px rgba(255, 138, 52, 0.1);
}

.select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.select:focus {
  outline: none;
  border-color: #FF8A34;
  box-shadow: 0 0 0 3px rgba(255, 138, 52, 0.1);
}

.info-banner {
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #075985;
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mobile-menu-button {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  padding: 8px;
  background-color: #FF8A34;
  color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.mobile-menu-button:hover {
  background-color: #F0731E;
}

@media (max-width: 1024px) {
  .mobile-menu-button {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
  }

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

.relevance-bar {
  height: 6px;
  width: 64px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.relevance-fill {
  height: 100%;
  background-color: #FF8A34;
  border-radius: 9999px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}
