/* ====================================================
🎨 BRISTLELAB CSS - MONOCHROME MAROON THEME
==================================================== */

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

:root {
  --bg: #f8f4f4;
  --text: #2b2b2b;
  --maroon: #800000;
  --maroon-light: #a94442;
  --maroon-bg: #fbeeee;
  --border: #d6bcbc;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

/* ========== WRAPPER ========== */
.lab-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ========== HEADER ========== */
.lab-header {
  text-align: center;
  margin-bottom: 50px;
}

.lab-header h1 {
  font-size: 2rem;
  color: var(--maroon);
  font-weight: 600;
}

.lab-header span {
  font-weight: 300;
  color: #444;
}

.tagline {
  font-size: 0.9rem;
  color: #666;
}

/* ========== FOOTER ========== */
.lab-footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.8rem;
  color: #999;
}

/* ========== MAIN CONTENT ========== */
.lab-main {
  background-color: white;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(128, 0, 0, 0.05);
}

/* ====================================================
📤 FORM UPLOAD
==================================================== */

.intel-box h2 {
  margin-bottom: 20px;
  color: var(--maroon);
  font-size: 1.4rem;
  font-weight: 600;
}

.upload-line {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.file-select-btn {
  background-color: var(--maroon);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.file-name-display {
  font-size: 0.9rem;
  color: #555;
}

.submit-btn {
  margin-top: 20px;
  background-color: var(--maroon-light);
  color: white;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ALERT */
.intel-alert {
  margin-top: 10px;
  padding: 10px 14px;
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #721c24;
  border-radius: 6px;
  font-size: 0.85rem;
}

.hidden {
  display: none;
}

/* ====================================================
📶 PROGRESS BAR
==================================================== */
.progress-container {
  margin-top: 30px;
}

.progress-label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--maroon);
}

.progress-bar {
  background-color: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
  height: 14px;
}

.progress-fill {
  height: 100%;
  background-color: var(--maroon);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-percent {
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: right;
  color: var(--maroon);
}

/* ====================================================
📄 HASIL EKSTRAKSI - 2 COLUMN LAYOUT
==================================================== */

.hasil-flex {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.hasil-left {
  flex: 1;
  min-width: 300px;
}

.hasil-right {
  flex: 2;
  min-width: 400px;
}

.pdf-preview {
  width: 100%;
  max-width: 700px;
  height: 475px;
  border: none;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.pdf-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ====================================================
📊 TABEL EKSTRAKSI
==================================================== */

.intel-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.intel-table thead {
  background-color: var(--maroon);
  color: white;
}

.intel-table th,
.intel-table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.85rem;
  word-wrap: break-word;
  white-space: normal;
}

.intel-table td:nth-child(2) {
  width: 100%;
}

.intel-table tbody tr:nth-child(even) {
  background-color: var(--maroon-bg);
}

.empty-msg {
  font-size: 0.95rem;
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 6px;
  color: #555;
  border-left: 4px solid var(--maroon-light);
  margin-top: 10px;
}

.teks-mentah {
  background-color: #fff4f4;
  color: #400000;
  border-radius: 6px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1;
  white-space: pre-wrap;
  box-shadow: 0 0 8px rgba(128, 0, 0, 0.1);
  overflow-x: auto;
}
