
@font-face {
  font-family: 'IranSans';
  src: url('fonts/iransans.woff2') format('woff2'),
       url('fonts/iransans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'IranSans', ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
a { text-decoration: none; }

body.light {
  background: #f9fafb;
  color: #111827;
}
body.dark {
  background: #0f172a;
  color: #e2e8f0;
}
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "sidebar header"
    "sidebar main"
    "sidebar footer";
  min-height: 100vh;
}
.header {
  grid-area: header;
  padding: 12px 16px;
  border-bottom: 1px solid #d1d5db;
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar {
  grid-area: sidebar;
  padding: 12px;
  border-right: 1px solid #d1d5db;
}
body.dark .sidebar { background:#111827; border-color:#1f2937; }
.main { grid-area: main; padding: 16px; }
.footer {
  grid-area: footer;
  padding: 10px 16px;
  font-size: 14px;
  text-align: right;
}
.card {
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #d1d5db;
  background:#fff;
}
body.dark .card { background:#0b1220; border-color:#1f2937; }
.btn { border-radius: 8px; padding:8px 14px; cursor:pointer; }
.btn.primary { background:#2563eb; color:#fff; border:none; }
.btn.secondary { background:#e5e7eb; border:none; }
body.dark .btn.secondary { background:#334155; color:#e2e8f0; }
.input, .file { width:100%; padding:8px; border:1px solid #d1d5db; border-radius:8px; }
body.dark .input, body.dark .file { background:#0b1220; border-color:#334155; color:#e2e8f0; }
.progress-wrap { width:100%; height:14px; border-radius:6px; background:#e5e7eb; overflow:hidden; }
body.dark .progress-wrap { background:#0b1220; border:1px solid #334155; }
.progress { height:100%; width:0%; background:linear-gradient(90deg,#22d3ee,#6366f1); }
.file-list { list-style:none; padding:0; margin:0; }
.file-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed #d1d5db; }
body.dark .file-item { border-color:#1f2937; }

/* Responsive */
@media (max-width:768px) {
  .app {
    display:flex;
    flex-direction:column;
  }
  .sidebar { order:2; border-right:none; border-top:1px solid #d1d5db; }
  .header { order:0; }
  .main { order:1; }
  .footer { order:3; }
}
