/* ================================================================
   INVENTORYHUB — upload.css (Light Mode)
   Menggunakan tema Royal Blue dan latar belakang cerah
   ================================================================ */

:root {
  --primary:       #1d4ed8;  /* Royal Blue */
  --primary-dim:   #eff6ff;
  --primary-border:#bfdbfe;
  --cyan:          #3b82f6;  /* Lighter Blue */
  
  --red:           #ef4444;
  --red-dim:       #fef2f2;
  --red-border:    #fecaca;
  
  --green:         #16a34a;
  --green-dim:     #f0fdf4;
  --green-border:  #bbf7d0;

  --text-primary:  #0f172a;
  --text-soft:     #475569;
  --text-muted:    #94a3b8;

  --bg-card:       #ffffff;
  --border:        #e2e8f0;
  
  --radius:        12px;
  --radius-lg:     16px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Logo Bulat (Khusus untuk Sidebar Light Mode) */
.sidebar-logo-image-box {
  width: 32px; height: 32px;
  background: var(--primary-dim);
  border: 1.5px solid var(--primary-border);
  border-radius: 50%; /* Membuat jadi lingkaran */
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.sidebar-logo-image-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder { font-size: 0.5rem; font-weight: 700; color: var(--primary); }

/* ── Page content wrapper ─────────────────────────────────────── */
.page-content {
  flex: 1; padding: 36px 26px 3rem;
  max-width: 860px; margin: 0 auto; width: 100%;
}

/* ── Page heading ─────────────────────────────────────────────── */
.page-heading { margin-bottom: 2rem; }
.page-tag {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px; font-family: 'Syne', sans-serif; font-weight: 700;
}
.page-title {
  font-family: 'Syne', sans-serif; font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 10px;
}
.title-accent {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-subtitle { color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }

/* ── Flash messages ───────────────────────────────────────────── */
.flash-msg {
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1.25rem;
  font-size: 0.85rem; display: flex; align-items: center; gap: 10px; font-weight: 500;
}
.flash-success { background: var(--green-dim);   border: 1px solid var(--green-border);   color: var(--green); }
.flash-error   { background: var(--red-dim);     border: 1px solid var(--red-border);     color: var(--red); }
.flash-info    { background: var(--primary-dim); border: 1px solid var(--primary-border); color: var(--primary); }

/* ── Upload card ──────────────────────────────────────────────── */
.upload-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}
.upload-card-body { padding: 32px; }

/* ── Drop zone ────────────────────────────────────────────────── */
#drop-zone {
  border: 2px dashed #cbd5e1; border-radius: var(--radius);
  padding: 52px 24px; text-align: center; cursor: pointer;
  position: relative; transition: all 0.28s var(--ease); margin-bottom: 1.25rem;
  background: #f8fafc; overflow: hidden;
}
#drop-zone:hover, #drop-zone.drag-over {
  border-color: var(--primary); background: var(--primary-dim);
}

/* Scan line animation */
.scan-line {
  position: absolute; top: 0; left: -100%; right: auto;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
}
#drop-zone:hover .scan-line, #drop-zone.drag-over .scan-line {
  animation: scanning 1.8s linear infinite; opacity: 1;
}
@keyframes scanning { 0% { top: 0%; } 100% { top: 102%; } }

.corner {
  position: absolute; width: 16px; height: 16px; opacity: 0;
  transition: opacity 0.25s; border-color: var(--primary); border-style: solid;
}
#drop-zone:hover .corner, #drop-zone.drag-over .corner { opacity: 1; }
.corner-tl { top: 10px; left: 10px;  border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.corner-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.corner-bl { bottom: 10px; left: 10px;  border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.corner-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.drop-icon-wrap {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--primary-border); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; transition: transform 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(29,78,216,0.1);
}
#drop-zone:hover .drop-icon-wrap { transform: scale(1.08); background: var(--primary); color: white; }

.drop-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; font-family: 'Syne', sans-serif; }
.drop-sub   { color: var(--text-soft); font-size: 0.85rem; margin-bottom: 1rem; }
.drop-limit {
  font-size: 0.72rem; color: var(--primary); font-weight: 600;
  background: #ffffff; padding: 4px 12px; border-radius: 99px;
  border: 1px solid var(--primary-border); display: inline-block;
}

/* ── File badge ───────────────────────── */
.file-badge {
  display: none; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--primary-dim); border: 1px solid var(--primary-border);
  border-radius: var(--radius); margin-bottom: 1.25rem;
}
.file-badge-icon { flex-shrink: 0; color: var(--primary); }
.file-badge-info { flex: 1; min-width: 0; }
.file-badge-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-badge-meta { font-size: 0.72rem; color: var(--text-soft); margin-top: 2px; }
.file-badge-clear {
  color: var(--text-muted); padding: 6px; border-radius: 6px; flex-shrink: 0; cursor: pointer;
  background: transparent; border: none; transition: all 0.2s;
}
.file-badge-clear:hover { color: var(--red); background: var(--red-dim); }

/* ── Progress bar ─────────────────────────────────────────────── */
.progress-wrap { display: none; margin-bottom: 1.25rem; }
.progress-header { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 8px; }
.progress-label { color: var(--text-soft); font-weight: 500;}
.progress-pct   { color: var(--primary); font-weight: 700; font-family: 'Syne', sans-serif; }
.progress-track { height: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill  {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 99px; transition: width 0.3s var(--ease);
}

/* ── Submit button ────────────────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 15px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff; border-radius: var(--radius); cursor: pointer;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 0.9rem; font-family: 'Syne', sans-serif;
  transition: all 0.25s var(--ease); margin-top: 4px;
  box-shadow: 0 4px 14px rgba(29,78,216,0.3);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(29,78,216,0.4);
  transform: translateY(-2px);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); box-shadow: none; transform: none; }

/* ── Info box (format guide) ──────────────────────────────────── */
.info-box {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-top: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.info-box-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; font-family: 'Syne', sans-serif; }
.info-col-list  { display: flex; flex-wrap: wrap; gap: 8px; }
.info-col-item  {
  font-size: 0.75rem; font-family: 'DM Sans', sans-serif; font-weight: 600;
  background: var(--primary-dim); color: var(--primary);
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--primary-border);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-content    { padding: 24px 14px 2rem; }
  .upload-card-body{ padding: 20px; }
  #drop-zone       { padding: 38px 16px; }
}