* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #090d16; color: #f1f5f9; height: 100vh; display: flex; flex-direction: column; }

/* Top Ad Banner */
.ad-banner {
  background: #1e1b4b;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #312e81;
  font-size: 0.9rem;
  color: #fde047;
  letter-spacing: 0.025em;
}

/* Header */
header {
  background: #0f172a;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
}

.status-badge.ready {
  background: #064e3b;
  color: #34d399;
  border-color: #047857;
}

/* Main Container */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Panel: Search Controls & Sidebar Ad */
.search-panel {
  width: 280px;
  background: #111827;
  border-right: 1px solid #1f2937;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.search-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-panel h2 {
  font-size: 1.1rem;
  color: #f3f4f6;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
}

.input-group input {
  padding: 0.65rem;
  background: #0f172a;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #f9fafb;
  outline: none;
}

.input-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.btn-search {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-search:hover:not(:disabled) {
  background: #1d4ed8;
}

.btn-search:disabled {
  background: #374151;
  color: #6b7280;
  cursor: not-allowed;
}

/* Sidebar Ad Area */
.sidebar-ad {
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  letter-spacing: 0.025em;
}

/* Right Panel: Report Viewer Frame */
.viewer-container {
  flex: 1;
  background: #0b0f19;
}

.viewer-frame {
  width: 100%;
  height: 100%;
  border: none;
}