:root { --dark: #0f172a; --accent: #6366f1; --sidebar-w: 420px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; background: #0b0f1a; height: 100vh; overflow: hidden; }

.app-container { display: flex; width: 100vw; height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--dark); padding: 25px; overflow-y: auto; color: white; flex-shrink: 0; border-right: 1px solid #1e293b; }
.viewer { flex-grow: 1; background: #f1f5f9; padding: 40px; overflow-y: auto; display: flex; justify-content: center; }

.brand { display: flex; align-items: center; gap: 8px; color: var(--accent); margin-bottom: 20px; }
.brand h1 { font-size: 22px; margin: 0; color: white; font-weight: 800; }
.brand span { color: var(--accent); }

.button-row { display: flex; gap: 10px; margin-top: 15px; }
.primary-btn { flex: 2; background: var(--accent); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 800; cursor: pointer; }
.clear-btn { flex: 1; background: #334155; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 11px; }

label { font-size: 10px; font-weight: 800; color: #64748b; text-transform: uppercase; display: block; margin-top: 12px; }
input, textarea { width: 100%; background: #1e293b; border: 1px solid #334155; color: white; padding: 10px; border-radius: 6px; margin-top: 5px; font-family: inherit; }
.card { background: #1e293b; padding: 12px; border-radius: 8px; margin-top: 10px; position: relative; border: 1px solid #334155; }
.del-btn { position: absolute; right: 8px; top: 8px; background: #ef4444; border: none; color: white; border-radius: 50%; width: 18px; height: 18px; cursor: pointer; }

#canvas { width: 210mm; min-height: 297mm; background: white; display: block; /* Ensure it's block, not flex */
    margin: 0 auto; color: #1e293b; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.section-title { font-weight: 800; border-bottom: 2px solid #eee; margin-bottom: 15px; padding-bottom: 5px; color: var(--accent); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.tag { display: inline-block; background: #f1f5f9; padding: 4px 12px; border-radius: 20px; font-size: 11px; margin: 2px; font-weight: 700; color: #334155; }
.job-item { margin-bottom: 25px; }
.job-item ul { padding-left: 18px; margin: 5px 0; font-size: 13px; line-height: 1.5; color: #475569; }

@media print {
    @page { size: A4; margin: 0; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .no-print, .sidebar { display: none !important; }
    .viewer { padding: 0 !important; background: white !important; }
    #canvas { box-shadow: none !important; margin: 0 !important; width: 100% !important; border:none !important; }
}