/* ==========================================================================
   Kwikezee Studio - Briefing Form & Admin Dashboard Styles (Dark Luxury)
   ========================================================================== */

/* Styling khas untuk Halaman Briefing */
body {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
}

.brief-page-header {
  margin-bottom: 36px;
}

.brief-main-title {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
  margin: 0 0 10px 0;
}

.brief-main-sub {
  color: #94A3B8;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.brief-main {
  flex: 1;
  padding: 40px 0 80px 0;
}

.form-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Step Tracker */
.step-tracker {
  margin-bottom: 32px;
}

.step-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-secondary), #60a5fa);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.steps-indicators {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #18181B;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  color: #94A3B8;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  z-index: 2;
}

.step-label {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  transition: all 0.3s ease;
}

.step-indicator.active .step-num {
  border-color: var(--gold-secondary);
  background: var(--gold-secondary);
  color: #000000;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

.step-indicator.active .step-label {
  color: var(--gold-secondary);
  font-weight: 700;
}

.step-indicator.completed .step-num {
  border-color: #10B981;
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.step-indicator.completed .step-label {
  color: #10B981;
}

/* Form Card */
.form-card {
  background: #0B0B0E !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 40px 32px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

@media (max-width: 768px) {
  .form-card {
    padding: 26px 18px !important;
    border-radius: 20px !important;
  }
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.step-title {
  font-size: 1.55rem;
  margin-bottom: 8px;
  color: #FFFFFF;
  font-family: var(--font-headings);
  font-weight: 800;
}

.step-desc {
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
  color: #94A3B8;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #F1F5F9;
}

.form-group label .required {
  color: #F87171;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #18181B;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #52525B;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-secondary);
  background: #111113;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-group textarea {
  resize: vertical;
}

.error-msg {
  display: none;
  color: #F87171;
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .file-upload-zone {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-group.has-error .error-msg {
  display: block;
}

/* Checkbox group styling */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-secondary);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.block-error {
  width: 100%;
}

/* File Upload Zone */
.file-upload-zone {
  border: 2px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.04);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--gold-secondary);
  background: rgba(212, 175, 55, 0.1);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-zone-content svg {
  color: var(--gold-secondary);
  margin-bottom: 10px;
}

.upload-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.upload-title span {
  color: var(--gold-secondary);
  text-decoration: underline;
}

.upload-info {
  font-size: 0.8rem;
  color: #94A3B8;
}

/* File Preview Container */
.file-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  background: #18181B;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .file-icon {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #18181B;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px;
  text-align: center;
}

.preview-item .btn-remove-file {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.preview-item .btn-remove-file:hover {
  background: #EF4444;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  gap: 15px;
}

/* Progress Overlay */
.upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.upload-overlay.active {
  display: flex;
}

.upload-modal {
  background: #0B0B0E;
  padding: 40px 30px;
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-secondary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 20px;
}

.upload-status-title {
  margin-bottom: 10px;
  color: #FFFFFF;
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 800;
}

.upload-status-desc {
  font-size: 0.9rem;
  margin-bottom: 24px;
  color: #94A3B8;
  line-height: 1.5;
}

.modal-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-secondary), #60a5fa);
  width: 0%;
  transition: width 0.1s linear;
}

.upload-percentage {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold-secondary);
}

/* Success Screen */
.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-screen.active {
  display: flex;
  animation: fadeIn 0.4s ease-out;
}

.success-content {
  max-width: 500px;
  text-align: center;
}

.success-content h2 {
  font-size: 2rem;
  margin: 20px 0 10px;
  color: #FFFFFF;
  font-family: var(--font-headings);
}

.success-content p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #E2E8F0;
}

.success-content .sub-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 35px;
}

/* Checkmark Animation */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--emerald-primary);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: var(--emerald-primary);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Footer brief */
.brief-footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Responsive adjustment */
@media (max-width: 600px) {
  .brief-header {
    height: auto;
    padding: 16px 0;
  }
  .header-inner {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
  .nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .logo-text {
    white-space: nowrap;
  }
  .header-badge {
    font-size: 0.78rem;
    padding: 4px 12px;
  }
  .steps-indicators {
    display: none; /* Hide labels on mobile to prevent clutter */
  }
  .step-progress-bar {
    margin-bottom: 10px;
  }
  .form-card {
    padding: 24px;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions button {
    width: 100%;
  }
}

/* ==========================================
   ADMIN PANEL STYLING
   ========================================== */
.admin-header {
  background: #0F0F12;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-header .nav-logo {
  color: #FFFFFF;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-title-row h1 {
  font-size: 1.8rem;
  color: #09090B;
}

/* Passcode Gateway Overlay */
.passcode-gateway {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0A0A0C;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.passcode-card {
  background: #121216;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.passcode-card .logo-icon {
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}

.passcode-card h2 {
  color: #FFFFFF;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.passcode-card p {
  color: #A1A1AA;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.passcode-card input[type="password"] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #18181B;
  color: #FFFFFF;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.passcode-card input[type="password"]:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
}

/* Dashboard List */
.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.submission-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  transition: transform 0.2s, box-shadow 0.2s;
}

.submission-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.submission-header {
  padding: 20px 24px;
  background: #FAFAF9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.sub-client-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #09090B;
}

.sub-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.submission-actions {
  display: flex;
  gap: 10px;
}

.btn-danger {
  background: #DC2626;
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #B91C1C;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Submission Body Details */
.submission-body {
  padding: 24px;
}

.sub-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .sub-section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.detail-block {
  margin-bottom: 15px;
}

.detail-block h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-block p {
  color: var(--text-main);
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Admin File Previews */
.admin-files-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.admin-file-card {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.2s;
}

.admin-file-card:hover {
  transform: scale(1.05);
}

.admin-file-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-file-card .pdf-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FEE2E2;
  color: #991B1B;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}

.admin-file-card .file-overlay-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-submissions {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.no-submissions svg {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.no-submissions h3 {
  margin-bottom: 5px;
}

/* Lightbox overlay for full image view */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #FFFFFF;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Action Buttons in Dashboard (WhatsApp & Delete) */
.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1.5px solid transparent;
  padding: 0;
  outline: none;
}

.wa-btn {
  border-color: rgba(37, 211, 102, 0.2);
  background: rgba(37, 211, 102, 0.05);
  color: #25D366;
}

.wa-btn:hover {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transform: translateY(-1px);
}

.delete-btn {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.05);
  color: #F87171;
}

.delete-btn:hover {
  background: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

/* 100% EDGE-TO-EDGE FULL BLEED MOBILE LAYOUT */
@media screen and (max-width: 850px) {
  html, body.admin-body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  .brief-main,
  main.brief-main {
    padding: 4px 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .brief-main .container,
  body.brief-body .container,
  body.admin-body .container,
  .form-container,
  .brief-container,
  .admin-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 2px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .form-card,
  .brief-card,
  .card,
  .history-item-card,
  .submission-card,
  .admin-tab-content {
    padding: 8px 4px !important;
    border-radius: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .qb-item-row,
  .scope-item-card {
    padding: 8px 6px !important;
    margin: 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }
  .form-group,
  .form-group-pay {
    margin-bottom: 10px !important;
    width: 100% !important;
  }
  .form-control,
  .qb-input-title,
  .qb-input-desc,
  .qb-input-price,
  input,
  select,
  textarea {
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
  }
  .admin-nav-tabs {
    display: flex !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    gap: 4px !important;
  }
  .admin-tab-btn {
    flex: 1 !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    text-align: center !important;
  }
}

/* History Card Actions Responsive Layout */
.hic-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 12px !important;
}

@media screen and (max-width: 600px) {
  .hic-actions {
    justify-content: space-between !important;
    gap: 6px !important;
  }
  .hic-actions .btn-history-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
}

/* Arkib CRM Toolbar & Responsive Polish */
.arkib-toolbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.arkib-toolbar-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.arkib-search-wrap {
  flex: 1 1 auto !important;
  position: relative !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.arkib-search-wrap input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 42px !important;
  padding: 8px 12px 8px 36px !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  box-sizing: border-box !important;
}

.arkib-search-wrap input:focus {
  border-color: #2563EB !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}

.arkib-search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 11px;
  top: 11px;
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
}

.arkib-sort-wrap {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.arkib-sort-wrap select {
  height: 42px !important;
  padding: 6px 12px !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.arkib-pills-scroll-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 4px 2px 6px 2px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  border-top: 1px dashed #CBD5E1 !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.arkib-pills-scroll-container::-webkit-scrollbar {
  display: none !important;
}

.arkib-filter-pill {
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #475569 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.arkib-filter-pill:hover {
  filter: brightness(0.96) !important;
  transform: translateY(-1px) !important;
}

.arkib-filter-pill.active {
  background: #0F172A !important;
  border-color: #0F172A !important;
  color: #FFFFFF !important;
}

@media (max-width: 680px) {
  .arkib-toolbar {
    padding: 10px 10px !important;
    gap: 10px !important;
  }
  .arkib-toolbar-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .arkib-sort-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .arkib-sort-wrap select {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* History Grid & Cards Container */
.history-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 680px) {
  .history-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.history-item-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
  word-break: break-word !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.history-item-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

.qb-item-row {
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s ease, opacity 0.15s ease !important;
}

.qb-item-row.dragging {
  opacity: 0.3 !important;
  border: 2px dashed #F59E0B !important;
  background: #FEF3C7 !important;
  transform: scale(0.98) !important;
}

.qb-drag-handle:hover {
  opacity: 1 !important;
  background: #E2E8F0 !important;
  border-radius: 4px;
}

