/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f0f2f5; color: #333; line-height: 1.5; padding: 20px; }

.app { max-width: 960px; margin: auto; }

header { text-align: center; margin-bottom: 30px; }
header h1 { font-size: 2.2rem; color: #0070f3; margin-bottom: 5px; }
header p { font-size: 1rem; color: #555; }

/* ===== Card Style ===== */
.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform 0.2s; }
.card:hover { transform: translateY(-2px); }

/* ===== Row Flex ===== */
.row { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 15px; }

label { display: flex; flex-direction: column; font-size: 0.9rem; color: #555; }
input[type="file"], input[type="number"], select { padding: 8px 10px; font-size: 0.95rem; border-radius: 6px; border: 1px solid #ccc; transition: border 0.2s; }
input[type="file"]:focus, input[type="number"]:focus, select:focus { border-color: #0070f3; outline: none; }

input[type="checkbox"] { width: auto; margin-top: 5px; }

button { cursor: pointer; padding: 10px 18px; border-radius: 8px; border: none; font-weight: 500; transition: background 0.2s, transform 0.1s; }
button.primary { background: #0070f3; color: #fff; }
button.primary:hover { background: #005bb5; transform: translateY(-1px); }
button:disabled { background: #aaa; cursor: not-allowed; }

/* ===== Progress Bar ===== */
progress { width: 100%; height: 18px; border-radius: 9px; overflow: hidden; margin-top: 10px; appearance: none; }
progress::-webkit-progress-bar { background: #eee; }
progress::-webkit-progress-value { background: #0070f3; }

/* ===== Frames Grid ===== */
#frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 15px; }
.preview-frame { width: 100%; border-radius: 6px; border: 1px solid #ccc; }

/* ===== Video Preview ===== */
#frames video { width: 100%; border-radius: 8px; border: 1px solid #ccc; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .row { flex-direction: column; align-items: stretch; }
  label { width: 100%; }
  button { width: 100%; }
}
