/* ==========================================================================
   Patent Search Portal Stylesheet
   Sailesh Bharathwaaj Krishnamurthy — Patent Archive & Deep Search
   Clean, high-density, professional technical data table and search engine
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: #111622;
  --bg-card-hover: #161d2d;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-purple: #c084fc;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0d14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Table Utilities */
.patent-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.patent-table th {
  position: sticky;
  top: 0;
  background-color: #0e131f;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  white-space: nowrap;
}

.patent-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  vertical-align: middle;
}

.patent-table tbody tr {
  transition: background-color 0.15s ease;
}

.patent-table tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.04);
}

/* Highlight search match */
mark.search-hit {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 1px 3px;
  border-radius: 2px;
}

/* Category Badges */
.badge-vision {
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.badge-tracking {
  background-color: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}

.badge-sensors {
  background-color: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.badge-retail-ml {
  background-color: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.25);
  color: #c084fc;
}

/* Modal styling */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.75);
}

/* Drag drop area */
.dropzone-active {
  border-color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.08) !important;
}

/* Animation for table updates */
@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.patent-row-animate {
  animation: fadeInRow 0.2s ease-out forwards;
}
