
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg-color: #f8fafc; --card-bg: #ffffff; --text-primary: #111827; --text-secondary: #6b7280; --border-color: #e5e7eb; --red-primary: #89171f; --red-dark: #6b1219; --red-light: #fef2f2; --green-primary: #059669; --green-light: #ecfdf5; --radius: 12px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-color); color: var(--text-primary); min-height: 100vh; }
.header { background: #000; padding: 1rem 2rem; }
.header-content { max-width: 800px; margin: 0 auto; display: flex; justify-content: center; align-items: center; position: relative; }
.header-logo { height: 50px; max-width: 200px; object-fit: contain; }
.header-actions { position: absolute; right: 0; display: flex; align-items: center; gap: 1rem; }
.header-actions a { color: #fff; text-decoration: none; font-size: 0.875rem; opacity: 0.8; }
.header-actions a:hover { opacity: 1; }
.main-content { max-width: 800px; margin: 0 auto; padding: 2rem; }
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }
.form-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); padding: 2rem; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.875rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: inherit; background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--red-primary); box-shadow: 0 0 0 3px rgba(137,23,31,0.1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 12px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--red-primary); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #f1f5f9; color: var(--text-primary); }
.btn-secondary:hover { background: #e2e8f0; }
.success-message { background: var(--green-light); color: var(--green-primary); padding: 2rem; border-radius: var(--radius); margin-bottom: 2rem; text-align: center; }
.success-message h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-message { background: var(--red-light); color: var(--red-dark); padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.875rem; }
.level-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.level-pill { padding: 0.75rem 1.5rem; border: 2px solid var(--border-color); border-radius: 50px; background: white; font-weight: 500; font-size: 0.9375rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.level-pill:hover { border-color: var(--red-primary); background: var(--red-light); }
.level-pill.active { border-color: var(--red-primary); background: var(--red-primary); color: white; }
.search-select { position: relative; }
.search-select input { padding-right: 2.5rem; }
.search-select .dropdown { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); max-height: 250px; overflow-y: auto; z-index: 100; display: none; margin-top: 4px; }
.search-select .dropdown.show { display: block; }
.search-select .dropdown-item { padding: 0.75rem 1rem; cursor: pointer; font-size: 0.9375rem; }
.search-select .dropdown-item:hover, .search-select .dropdown-item.highlighted { background: #f1f5f9; }
.search-select .dropdown-item.selected { background: var(--red-light); color: var(--red-primary); font-weight: 500; }
.search-select .clear-btn { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.25rem; padding: 0.25rem; display: none; }
.search-select.has-value .clear-btn { display: block; }
.entry-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.entry-title { font-weight: 600; font-size: 1.125rem; }
.remove-entry { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.remove-entry:hover { color: var(--red-primary); }
.file-upload { border: 2px dashed var(--border-color); border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.file-upload:hover { border-color: var(--red-primary); background: var(--red-light); }
.file-upload input { display: none; }
.file-upload p { margin-bottom: 0.25rem; }
.file-upload .hint { font-size: 0.875rem; color: var(--text-secondary); }
.preview-container { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.preview-item { position: relative; }
.preview-image { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.preview-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--red-primary); color: white; border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.file-info { display: flex; align-items: center; gap: 0.5rem; background: #f1f5f9; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--border-color); }
.file-icon { font-size: 1.25rem; }
.file-name { font-size: 0.875rem; font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 0.75rem; color: var(--text-secondary); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.section-divider { border: none; border-top: 1px solid var(--border-color); margin: 2rem 0; }
.footer { text-align: center; padding: 2rem; color: var(--text-secondary); font-size: 0.875rem; }
.hidden { display: none !important; }
.width-full { width: 100%; }
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.form-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-tab { padding: 0.75rem 1.5rem; border: 2px solid var(--border-color); border-radius: 50px; background: white; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.form-tab:hover { border-color: var(--red-primary); background: var(--red-light); }
.form-tab.active { border-color: var(--red-primary); background: var(--red-primary); color: white; }
@media (max-width: 768px) {
  .header { padding: 0.75rem 1rem; }
  .header-content { flex-direction: column; gap: 0.5rem; }
  .header-logo { height: 40px; }
  .header-actions { position: static; margin-top: 0.5rem; }
  .main-content { padding: 1rem; }
  .form-card { padding: 1.5rem; }
  .level-pills { gap: 0.375rem; }
  .level-pill { padding: 0.625rem 1rem; font-size: 0.875rem; }
}
