:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #0a0a0a;
  --primary-foreground: #ffffff;
  --radius: 0.5rem;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

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

.search {
  position: relative;
  width: 300px;
}

.search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
}

.search input:focus {
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  color: currentColor;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat-header {
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.stat-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stat-progress-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-progress-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.progress-bar {
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
}

/* Main Content */
.main {
  padding: 1rem 0;
}

.content {
  display: flex;
  gap: 1.5rem;
}

/* Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: sticky;
  top: 5rem; /* Account for header height + some spacing */
  height: fit-content;
  max-height: calc(100vh - 7rem); /* Account for header and footer */
  overflow-y: auto;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.filter-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
}

.filter-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.filter-section-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-section-content {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.filter-search {
  position: relative;
  margin-bottom: 0.75rem;
}

.filter-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: visible;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.filter-option label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.875rem;
  cursor: pointer;
}

.filter-option .count {
  color: var(--muted-foreground);
}

/* Main Content */
.main-content {
  flex: 1;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.content-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Tabs */
.tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
}

.tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.tab.active {
  color: var(--foreground);
  border-bottom: 2px solid var(--primary);
}

/* Data Table */
.table-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-header {
  display: flex;
  background: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.table-header > div {
  padding: 0.75rem 1rem;
  flex: 1;
}

.table-header > div:nth-child(1),
.table-header > div:nth-child(2),
.table-header > div:nth-child(3) {
  width: 13rem;
  flex: none;
}

.table-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row > div {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-row > div:nth-child(1),
.table-row > div:nth-child(2),
.table-row > div:nth-child(3) {
  width: 13rem;
  flex: none;
}

.sortable {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sortable i {
  opacity: 0.5;
  font-size: 0.75rem;
}

.sortable:hover i {
  opacity: 1;
}

.sort-asc i {
  transform: rotate(180deg);
}

.company-link {
  color: var(--foreground);
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.company-link[href="#"] {
  text-decoration: none;
}

.company-link[href="#"]:hover {
  text-decoration: none;
}

.company-link .fa-linkedin {
  opacity: 0;
}

.company-link:hover .fa-linkedin {
  opacity: 0.5;
}

.action-icons {
  display: flex;
  gap: 0.75rem;
}

.action-icons a {
  color: var(--muted-foreground);
  display: flex;
  text-decoration: none;
}

.action-icons a:hover {
  color: var(--foreground);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hidden-md {
    display: none;
  }

  .search {
    width: 200px;
  }

  .content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.founder-link {
  color: var(--foreground);
  text-decoration: underline;
}

.founder-link[href="#"],
span.founder-link {
  text-decoration: none;
}
