/* Somantix — Common Component Styles */
/* PAGE HEADER */
.page-header {
  margin-bottom: 2rem;
}
.page-title {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
/* SEARCH BAR */
.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.search-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.filter-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  min-width: 160px;
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* FILE LIST */
.file-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.file-list-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background 0.15s;
}
.file-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.file-ext {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
}
.file-details {
  flex: 1;
  min-width: 0;
}
.file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
}
.file-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.file-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.file-status.approved { color: var(--accent); }
.file-status.flagged { color: var(--warning); }
.status-icon {
  width: 16px;
  height: 16px;
}
/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
/* UPGRADE CTA */
.upgrade-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.upgrade-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.upgrade-content {
  flex: 1;
}
.upgrade-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.upgrade-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
/* VENDOR ATTRIBUTION */
.vendor-group {
  margin-bottom: 1.5rem;
}
.vendor-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.vendor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.vendor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.vendor-stats {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
/* SETTINGS SECTION */
.settings-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* RECOVERY KEY */
.recovery-key-display {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 0.75rem;
}
.recovery-key-display:hover {
  border-color: var(--accent);
}
.recovery-key-display.revealed {
  color: var(--text);
  line-height: 1.8;
  word-break: break-word;
}

/* ENCRYPTION BANNER */
.encryption-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.banner-content {
  flex: 1;
}
.banner-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.375rem;
}
.banner-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
}
.toast.show {
  display: flex;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(59,130,246,0.15); }
  50% { border-color: rgba(59,130,246,0.4); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
