/* === MakeEazy Tax Profiler — Brand Theme === */
:root {
  /* MakeEazy Brand Colors */
  --navy: #32509F;
  --navy-dark: #243B78;
  --navy-deeper: #1A2D5E;
  --orange: #F77F00;
  --orange-hover: #E57200;
  --orange-light: #FFF3E0;
  --tint: #DDE6FF;
  --tint-light: #EEF2FF;

  /* Semantic */
  --bg: #0F1629;
  --bg2: #141C33;
  --bg3: #1B2542;
  --card: rgba(27, 37, 66, 0.85);
  --border: #2A3A62;
  --accent: #32509F;
  --accent2: #5B7FD6;
  --green: #22C55E;
  --red: #EF4444;
  --warn: #F77F00;
  --blue: #5B7FD6;
  --text: #E8ECF4;
  --text2: #8B9BC0;
  --glass: rgba(50, 80, 159, 0.1);
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(50,80,159,0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(247,127,0,0.04) 0%, transparent 50%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }

/* Header */
header { text-align: center; padding: 30px 0 20px; }
.logo { display: flex; align-items: center; justify-content: center; gap: 12px; }
.logo-icon { font-size: 32px; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: white; }
h1 span { color: var(--orange); }
header p { color: var(--text2); font-size: 14px; margin-top: 4px; }

/* Login */
.login-section { display: flex; justify-content: center; margin-top: 30px; }
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.login-card h2 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: var(--text2); font-size: 13px; margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.8px; }
.form-group input, #askInput, #modalInput {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, #askInput:focus, #modalInput:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,127,0,0.15); }

.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px;
  opacity: 0.5; transition: opacity 0.2s; padding: 4px 6px;
}
.pwd-toggle:hover { opacity: 1; }

.login-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--navy), var(--accent2));
  color: white;
  box-shadow: 0 4px 16px rgba(50,80,159,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(50,80,159,0.4); }
.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  color: white;
  box-shadow: 0 4px 16px rgba(247,127,0,0.3);
}
.btn-orange:hover { transform: translateY(-1px); }
.btn-secondary {
  flex: 0 0 auto;
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--text); }
.btn-green {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,0.4); }
.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent2); color: var(--text); }
.security-note { display: flex; gap: 8px; background: var(--glass); padding: 12px; border-radius: 10px; font-size: 12px; color: var(--text2); margin-top: 16px; }

/* Progress */
.progress-section { display: none; }
.progress-card {
  max-width: 500px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.progress-ring-wrap { position: relative; display: inline-block; margin-bottom: 20px; }
.progress-ring { transform: rotate(-90deg); }
.ring-bg { stroke: var(--bg3); }
.ring-fill { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.progress-percent {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--orange);
}
.progress-card h3 { font-size: 16px; color: var(--text); margin-bottom: 16px; }
.fact-carousel {
  background: var(--glass);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  min-height: 60px;
  transition: opacity 0.3s;
}
.fact-icon { font-size: 22px; flex-shrink: 0; }
.fact-text { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* Inline status message (replaces log toggle) */
.status-msg { font-size: 12px; color: var(--text2); text-align: center; margin-top: 10px; min-height: 16px; transition: color 0.3s; }
.status-msg.error { color: var(--red); }
.status-msg.warn { color: var(--warn); }

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Sidebar */
.sidebar-toggle {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 100; background: var(--card); border: 1px solid var(--border);
  border-left: none; border-radius: 0 10px 10px 0;
  padding: 12px 8px; cursor: pointer; transition: all 0.3s;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}
.sidebar-toggle:hover { background: var(--bg3); padding-left: 12px; }
.toggle-icon { font-size: 16px; }
.sidebar {
  position: fixed; left: -320px; top: 0; bottom: 0; width: 300px;
  background: var(--bg2); border-right: 1px solid var(--border);
  z-index: 200; transition: left 0.3s ease; overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}
.sidebar.open { left: 0; }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 12px; border-bottom: 1px solid var(--border);
}
.sidebar-header h3 { font-size: 15px; font-weight: 700; }
.sidebar-close {
  background: none; border: none; color: var(--text2); font-size: 18px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.sidebar-close:hover { background: var(--glass); color: var(--text); }
.sidebar-content { padding: 12px; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 150; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }
.history-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
  margin-bottom: 4px;
}
.history-item:hover { background: var(--glass); }
.hi-pan { font-weight: 600; color: var(--accent2); font-size: 13px; min-width: 105px; }
.hi-name { flex: 1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-date { font-size: 10px; color: var(--text2); }

/* Report Top Bar */
.report-top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.report-actions-inline { display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.report-actions { margin-top: 20px; padding-bottom: 20px; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text2); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.btn-outline:hover { background: var(--glass); border-color: var(--accent2); color: var(--text); }

/* Side-by-side Computation */
.comp-side { width: 100%; }
.comp-side th { white-space: nowrap; }
.comp-side .comp-tag { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 4px; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; place-items: center; backdrop-filter: blur(4px); }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; width: 400px; max-width: 90vw; }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text2); margin-bottom: 16px; font-size: 14px; }
.modal img { max-width: 100%; border-radius: 8px; margin-bottom: 12px; }
#modalInput { margin-bottom: 14px; }
.modal .btn { width: 100%; }

/* ===== REPORT ===== */
.report-section { display: none; }

/* Hero Summary */
.ai-hero {
  background: linear-gradient(135deg, rgba(50,80,159,0.15), rgba(247,127,0,0.08));
  border: 1px solid rgba(50,80,159,0.3);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.ai-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(247,127,0,0.1), transparent 70%);
  pointer-events: none;
}
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy), var(--orange));
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.ai-summary { font-size: 15px; line-height: 1.7; color: var(--text); }
.ai-meta { margin-top: 10px; font-size: 12px; color: var(--text2); }

/* Profile Cards */
.profile-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.profile-card .label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.profile-card .value { font-size: 20px; font-weight: 700; }
.profile-card .sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.value.green { color: var(--green); }
.value.red { color: var(--red); }
.value.orange { color: var(--orange); }
.value.blue { color: var(--blue); }
.value.accent { color: var(--accent2); }

/* Dual Panel */
.dual-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 700px) { .dual-panel { grid-template-columns: 1fr; } }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.panel h4 { font-size: 15px; margin-bottom: 12px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.check-item:last-child { border-bottom: none; }
.check-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.check-dot.pass { background: var(--green); }
.check-dot.warning { background: var(--warn); }
.check-dot.fail { background: var(--red); }
.check-info { flex: 1; }
.check-name { font-size: 13px; font-weight: 600; }
.check-detail { font-size: 11px; color: var(--text2); }
.risk-item { padding: 10px; background: var(--bg); border-radius: 8px; margin-bottom: 8px; }
.risk-flag { font-weight: 600; font-size: 13px; }
.risk-detail { font-size: 12px; color: var(--text2); margin-top: 4px; }
.risk-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.risk-badge.low { background: rgba(34,197,94,0.15); color: var(--green); }
.risk-badge.medium { background: rgba(247,127,0,0.15); color: var(--warn); }
.risk-badge.high { background: rgba(239,68,68,0.15); color: var(--red); }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; gap: 2px; overflow-x: auto; }
.tab {
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Data tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; color: var(--text2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(42,58,98,0.5); }
.data-table tr:hover td { background: rgba(50,80,159,0.06); }

/* Computation Tab */
.computation-year {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.comp-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.comp-year-header h4 { font-size: 18px; font-weight: 700; }
.comp-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.comp-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(50,80,159,0.15);
  color: var(--accent2);
}
.comp-tag.regime-new { background: rgba(34,197,94,0.12); color: var(--green); }
.comp-tag.regime-old { background: rgba(247,127,0,0.12); color: var(--orange); }
.comp-section { margin-bottom: 18px; }
.comp-section h5 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.comp-total td { border-top: 2px solid var(--border); background: rgba(50,80,159,0.06) !important; }
.comp-subtotal td { background: rgba(42,58,98,0.3) !important; }

/* Optimization cards */
.opt-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.opt-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.opt-desc { font-size: 13px; color: var(--text2); }
.opt-saving { color: var(--green); font-weight: 700; font-size: 13px; margin-top: 6px; }
.opt-section { font-size: 11px; color: var(--accent2); }
.opt-priority { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.opt-priority.High { background: rgba(239,68,68,0.15); color: var(--red); }
.opt-priority.Medium { background: rgba(247,127,0,0.15); color: var(--warn); }
.opt-priority.Low { background: rgba(34,197,94,0.15); color: var(--green); }

/* Ask AI */
.ask-box { max-width: 700px; }
.ask-box h4 { margin-bottom: 14px; }
.ask-input-wrap { display: flex; gap: 10px; margin-bottom: 16px; }
#askInput { flex: 1; }
#askResponse { min-height: 60px; }
.ai-answer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
}

/* Files */
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: 8px; margin-bottom: 6px; }
.file-icon { font-size: 20px; }
.file-name { font-weight: 500; font-size: 13px; }
.file-size { font-size: 11px; color: var(--text2); }
.file-link { color: var(--orange); text-decoration: none; font-size: 12px; margin-left: auto; }
.file-link:hover { text-decoration: underline; }

/* Report Actions */
.report-actions { margin-top: 28px; text-align: center; }
.report-actions .btn { max-width: 300px; margin: 0 auto; }

footer { text-align: center; padding: 30px 0; color: var(--text2); font-size: 12px; }
footer a { color: var(--orange); text-decoration: none; }

/* Animations */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* PDF Print Styles — Desktop Quality */
@media print {
  @page { size: A4; margin: 15mm 12mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white !important; color: #111 !important; font-size: 11px; line-height: 1.4; }
  .container { max-width: 100%; padding: 0 !important; }

  /* Hide non-report elements */
  header, .login-section, .progress-section, .modal-overlay, .report-actions, .report-top-bar,
  .ask-box, #tab-ask, #tab-files, footer, .fact-carousel, .progress-card,
  .sidebar, .sidebar-toggle, .sidebar-overlay, .status-msg { display: none !important; }

  /* Print header */
  .report-section::before {
    content: 'MakeEazy Tax Profiler — ITR Analysis Report';
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #32509F;
    text-align: center;
    padding: 10px 0 15px;
    border-bottom: 3px solid #32509F;
    margin-bottom: 15px;
  }

  /* Show report and all tabs */
  .report-section { display: block !important; }
  .tabs { display: none !important; }
  .tab-content { display: block !important; margin-bottom: 12px; page-break-inside: avoid; }

  /* Cards */
  .ai-hero { background: #EEF2FF !important; border: 1px solid #ccc !important; color: #111; padding: 16px; margin-bottom: 12px; }
  .ai-hero::before { display: none; }
  .ai-badge { background: #32509F !important; color: white !important; font-size: 10px; }
  .ai-summary { color: #111 !important; font-size: 12px; }
  .ai-meta { color: #666 !important; }

  .profile-cards { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; margin-bottom: 12px; }
  .profile-card { background: #f8f9fa !important; border: 1px solid #ddd !important; padding: 12px; }
  .profile-card .label { color: #666 !important; font-size: 9px; }
  .profile-card .value { color: #111 !important; font-size: 16px; }
  .profile-card .sub { color: #555 !important; font-size: 9px; }
  .value.green { color: #16a34a !important; }
  .value.red { color: #dc2626 !important; }
  .value.orange { color: #d97706 !important; }
  .value.blue, .value.accent { color: #32509F !important; }

  .dual-panel { grid-template-columns: 1fr 1fr !important; gap: 8px; margin-bottom: 12px; }
  .panel { background: #f8f9fa !important; border: 1px solid #ddd !important; padding: 12px; }
  .panel h4 { color: #111 !important; font-size: 13px; }
  .check-item { border-color: #ddd !important; padding: 5px 0; }
  .check-name { color: #111 !important; font-size: 11px; }
  .check-detail, .risk-detail { color: #555 !important; font-size: 10px; }
  .check-dot.pass { background: #16a34a !important; }
  .risk-item { background: #f0f0f0 !important; }
  .risk-flag { color: #111 !important; }
  .risk-badge { font-size: 9px; }

  /* Computation */
  .computation-year { background: #f8f9fa !important; border: 1px solid #ddd !important; padding: 14px; margin-bottom: 10px; page-break-inside: avoid; }
  .comp-year-header { border-color: #ccc !important; padding-bottom: 8px; margin-bottom: 10px; }
  .comp-year-header h4 { color: #111 !important; font-size: 15px; }
  .comp-tag { background: #e0e0ef !important; color: #333 !important; font-size: 9px; padding: 2px 8px; }
  .comp-tag.regime-new { background: #d1fae5 !important; color: #059669 !important; }
  .comp-tag.regime-old { background: #fef3c7 !important; color: #d97706 !important; }
  .comp-section h5 { color: #111 !important; font-size: 12px; }
  .data-table th { color: #555 !important; font-size: 9px; border-color: #ccc !important; padding: 4px 8px; }
  .data-table td { color: #111 !important; border-color: #eee !important; font-size: 11px; padding: 5px 8px; }
  .comp-total td { border-top: 2px solid #bbb !important; background: #eef2ff !important; }
  .comp-subtotal td { background: #f0f4ff !important; }

  /* Optimization */
  .opt-card { background: #f4f4f4 !important; border: 1px solid #ddd !important; padding: 10px; margin-bottom: 6px; }
  .opt-title { color: #111 !important; font-size: 12px; }
  .opt-desc { color: #333 !important; font-size: 11px; }
  .opt-saving { color: #059669 !important; }

  /* Page layout */
  .computation-year, .panel, .ai-hero, .opt-card { break-inside: avoid; }
}

/* Skeleton Loaders */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.skeleton-loader { padding: 12px; }
.skel-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
}
.skel-line.w80 { width: 80%; }
.skel-line.w60 { width: 60%; }
.skel-line.w90 { width: 90%; }
.skel-line.w40 { width: 40%; }

/* Retry Button */
.retry-btn {
  display: inline-block;
  margin-left: 12px;
  padding: 6px 16px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}
.retry-btn:hover { background: var(--orange-hover); transform: translateY(-1px); }

/* Status Messages */
.status-msg {
  text-align: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
  transition: all 0.3s;
}
.status-msg.error { color: var(--red); background: rgba(239,68,68,0.1); }
.status-msg.warn { color: var(--warn); background: rgba(247,127,0,0.1); }
.status-msg.success { color: var(--green); background: rgba(34,197,94,0.1); }
.status-msg.status { color: var(--accent2); background: rgba(91,127,214,0.08); }

/* ===== ONLINE UPLOAD STYLES ===== */

/* Drop Zone */
.drop-zone {
  margin: 20px 0;
  padding: 36px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,80,159,0.03), rgba(247,127,0,0.03));
  opacity: 0;
  transition: opacity 0.3s;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--orange);
  background: rgba(247,127,0,0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(247,127,0,0.1);
}
.drop-zone:hover::before, .drop-zone.dragover::before { opacity: 1; }
.drop-icon { color: var(--text2); margin-bottom: 12px; transition: color 0.3s; }
.drop-zone:hover .drop-icon { color: var(--orange); }
.drop-text-main { font-size: 16px; font-weight: 600; color: var(--text); }
.drop-sub { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* File List */
#fileList { margin: 12px 0; }
.file-item-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  animation: fadeIn 0.3s ease;
}
.file-item-upload .fu-icon { font-size: 18px; flex-shrink: 0; }
.file-item-upload .fu-info { flex: 1; min-width: 0; }
.file-item-upload .fu-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item-upload .fu-meta { font-size: 11px; color: var(--text2); }
.file-item-upload .fu-type {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.fu-type.itr { background: rgba(34,197,94,0.12); color: var(--green); }
.fu-type.ais { background: rgba(91,127,214,0.12); color: var(--blue); }
.fu-type.tis { background: rgba(247,127,0,0.12); color: var(--orange); }
.fu-type.unknown { background: rgba(139,155,192,0.12); color: var(--text2); }
.file-item-upload .fu-remove {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}
.file-item-upload .fu-remove:hover { color: var(--red); background: rgba(239,68,68,0.1); }

/* Required Files Info */
.required-files-info {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  text-align: left;
}
.required-files-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.req-grid { display: flex; flex-direction: column; gap: 10px; }
.req-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.req-item.mandatory { border-color: rgba(247,127,0,0.3); background: rgba(247,127,0,0.04); }
.req-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
}
.req-badge.must { background: rgba(247,127,0,0.15); color: var(--orange); }
.req-badge.opt { background: rgba(91,127,214,0.15); color: var(--accent2); }
.req-label { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.req-desc { font-size: 11px; color: var(--text2); display: block; margin-top: 2px; }
.req-desc a { color: var(--orange); }
.req-tip { font-size: 11px; color: var(--text2); margin-top: 10px; }

/* Optional Fields */
.optional-fields { margin: 12px 0; }
.field-row { display: flex; gap: 12px; }
.field-hint { font-size: 11px; color: var(--text2); margin-top: 6px; }

@media (max-width: 600px) {
  .field-row { flex-direction: column; }
  .req-item { flex-direction: column; }
}

/* Upload Validation Message */
.upload-validation {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0;
  animation: fadeIn 0.3s ease;
}
.upload-validation.warn { background: rgba(247,127,0,0.1); color: var(--warn); border: 1px solid rgba(247,127,0,0.2); }
.upload-validation.ok { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
