* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; }
.container { max-width: 900px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; }
header { text-align: center; padding: 40px 0; }
header h1 { font-size: 2.5rem; color: #1a1a1a; margin-bottom: 10px; }
.subtitle { color: #666; font-size: 1.1rem; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #e9ecef; }
.tab { padding: 12px 24px; background: none; border: none; font-size: 1rem; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: #333; }
.tab.active { color: #007bff; border-bottom-color: #007bff; }
.tab-content { display: none; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tab-content.active { display: block; }
.input-section label { display: block; margin-bottom: 10px; font-weight: 500; color: #444; }
textarea { width: 100%; height: 150px; padding: 15px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 1rem; font-family: inherit; resize: vertical; transition: border-color 0.2s; }
textarea:focus { outline: none; border-color: #007bff; }
.btn-primary, .btn-secondary { padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; margin-top: 15px; }
.btn-primary { background: #007bff; color: #fff; }
.btn-primary:hover { background: #0056b3; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-secondary { background: #fff; color: #333; border: 2px solid #e9ecef; }
.btn-secondary:hover { border-color: #007bff; color: #007bff; }
.dropzone { border: 2px dashed #dee2e6; border-radius: 12px; padding: 60px 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
.dropzone:hover, .dropzone.dragover { border-color: #007bff; background: #f8f9ff; }
.dropzone-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.dropzone-hint { color: #999; font-size: 0.9rem; margin-top: 5px; }
.results-section { margin-top: 30px; }
.results-section h2 { margin-bottom: 20px; color: #333; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.result-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.result-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.result-card.error { border: 2px solid #dc3545; }
.result-name { font-weight: 600; color: #333; margin-bottom: 5px; font-size: 1.1rem; }
.result-dimensions { font-size: 0.9rem; color: #666; margin-bottom: 15px; }
.result-error { color: #dc3545; font-size: 0.9rem; }
.result-actions { display: flex; gap: 10px; }
.result-actions button { flex: 1; padding: 10px; border: none; border-radius: 6px; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; }
.btn-preview { background: #e9ecef; color: #333; }
.btn-preview:hover { background: #dee2e6; }
.btn-download { background: #007bff; color: #fff; }
.btn-download:hover { background: #0056b3; }
.batch-actions { margin-top: 20px; text-align: center; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; border-radius: 16px; width: 90%; max-width: 700px; max-height: 85vh; overflow: hidden; position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; z-index: 10; }
.modal-header { padding: 20px; border-bottom: 1px solid #e9ecef; }
.modal-header h3 { color: #333; }
.preview-container { height: 450px; background: #1a1a1a; }
.modal-footer { padding: 15px 20px; border-top: 1px solid #e9ecef; text-align: right; }
footer { margin-top: auto; padding: 30px 0; text-align: center; color: #999; }
footer a { color: #007bff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.loading { opacity: 0.6; pointer-events: none; }
@media (max-width: 600px) { header h1 { font-size: 1.8rem; } .tabs { flex-direction: column; } .tab { text-align: center; } .results-grid { grid-template-columns: 1fr; } }
