/* Guarantees the native `hidden` attribute always wins over any other
   display rule below, preventing future "toggle doesn't hide it" bugs. */
[hidden] { display: none !important; }

/* Access denied */
.arb-access-denied {
	max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #e5e9f0; border-radius: 14px;
	padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.arb-access-denied h3 { margin-bottom: 10px; }
.arb-access-denied p { color: #64748b; margin-bottom: 20px; }
.arb-access-denied form p { text-align: left; margin-bottom: 12px; }
.arb-access-denied input[type=text], .arb-access-denied input[type=password] {
	width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
}
.arb-access-denied input[type=submit] {
	width: 100%; padding: 11px; background: #0b5fff; color: #fff; border: none; border-radius: 8px;
	font-weight: 600; cursor: pointer; margin-top: 6px;
}

/* Resumes list */
.arb-list-wrapper { max-width: 860px; margin: 0 auto 30px; background: #fff; border: 1px solid #e5e9f0; border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.arb-list-title { margin-bottom: 14px; }
.arb-list-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.arb-list-table th, .arb-list-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5e9f0; }
.arb-list-table th { color: #64748b; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.arb-list-actions a { margin-right: 12px; color: #0b5fff; font-weight: 600; }
.arb-list-actions a.arb-delete-link { color: #b91c1c; }
.arb-list-actions a:hover { text-decoration: underline; }

/* ---- Wizard wrapper ---- */
.arb-wizard-wrapper {
	background: #fff; border: 1px solid #e5e9f0; border-radius: 14px;
	padding: 28px; box-shadow: 0 10px 30px rgba(15,23,42,.06); max-width: 1100px; margin: 0 auto;
}
.arb-form-title { margin-bottom: 20px; }
.arb-form-subheading { margin: 0 0 12px; font-size: 1.05rem; }
.arb-optional-tag { font-size: .7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; background: #f1f5f9; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* Photo source toggle */
.arb-photo-source-toggle { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.arb-photo-source-btn {
	flex: 1; min-width: 140px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
	font-size: .84rem; font-weight: 600; cursor: pointer; color: #64748b;
}
.arb-photo-source-btn.is-active { border-color: #0b5fff; background: #eef3ff; color: #0b5fff; }
.arb-photo-source-panel input[type=url] { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .9rem; }

/* Progress bar */
.arb-progress-bar { height: 6px; background: #e5e9f0; border-radius: 999px; margin-bottom: 14px; overflow: hidden; }
.arb-progress-fill { height: 100%; background: #0b5fff; border-radius: 999px; width: 0%; transition: width .3s ease; }
.arb-step-labels { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 26px; }
.arb-step-label { font-size: .74rem; font-weight: 600; color: #94a3b8; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.arb-step-label.is-active { color: #0b5fff; border-bottom-color: #0b5fff; }
.arb-step-label.is-complete { color: #16a34a; }

/* Two-column body: form + live preview */
.arb-wizard-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.arb-wizard-form-col { min-width: 0; }
.arb-wizard-preview-col { position: sticky; top: 20px; }

/* Steps: only the active one shows */
.arb-step { display: none; }
.arb-step.is-active { display: block; animation: arb-step-fade .2s ease; }
@keyframes arb-step-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.arb-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e9f0; }
.arb-wizard-nav .btn { flex: 1; text-align: center; }
.arb-wizard-nav #arb-step-prev { flex: 0 0 auto; min-width: 110px; }

/* Live preview panel */
.arb-live-preview-wrapper { background: #f8fafc; border: 1px solid #e5e9f0; border-radius: 12px; padding: 18px; }
.arb-live-preview-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; margin: 0 0 12px; }
.arb-live-preview { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 4px 14px rgba(15,23,42,.06); max-height: 70vh; overflow-y: auto; font-size: .82rem; }
.arb-live-preview .arb-minimal-header h1 { font-size: 1.3rem; }
.arb-live-preview .arb-job-title { font-size: .82rem; }
.arb-live-preview h2 { font-size: .78rem; }
.arb-live-preview .arb-entry { margin-bottom: 10px; }

/* ---- Form (shared field styling) ---- */
.arb-form-wrapper {
	background: #fff; border: 1px solid #e5e9f0; border-radius: 14px;
	padding: 28px; box-shadow: 0 10px 30px rgba(15,23,42,.06); max-width: 760px;
}
.arb-field-row { margin-bottom: 16px; }
.arb-field-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.arb-field-row input[type=text], .arb-field-row input[type=email], .arb-field-row input[type=url],
.arb-field-row input[type=file], .arb-field-row textarea, .arb-field-row select {
	width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .95rem;
	background: #fff;
}
.arb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.arb-template-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.arb-template-option {
	border: 2px solid #e5e9f0; border-radius: 10px; padding: 12px; cursor: pointer;
	display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; font-weight: 400;
}
.arb-template-option input { margin-top: 3px; }
.arb-template-option:has(input:checked) { border-color: #0b5fff; background: #eef3ff; }

.arb-repeater-row {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px;
	background: #f8fafc; border: 1px solid #e5e9f0; border-radius: 10px; padding: 14px; position: relative;
}
.arb-repeater-row textarea { grid-column: 1 / -1; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.arb-repeater-row input { padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.arb-repeater-row-edu { grid-template-columns: 1fr 1fr 1fr; }
.arb-repeater-row-lang { grid-template-columns: 1fr 1fr; }
.arb-remove-row {
	position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
	background: #ef4444; color: #fff; border: none; cursor: pointer; font-size: .9rem; line-height: 1;
}
.arb-add-row { margin-bottom: 10px; }
.arb-submit { width: 100%; text-align: center; margin-top: 20px; }
.arb-error { color: #b91c1c; background: #fee2e2; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

/* ---- Result toolbar ---- */
.arb-result-wrapper { max-width: 860px; margin: 0 auto 30px; }
.arb-result-toolbar { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.arb-saved-note { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; padding: 12px 16px; border-radius: 8px; font-weight: 600; margin: 0; flex: 1 1 260px; }
.arb-print-area { background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.08); }

/* =====================================================
   Resume Templates
   ===================================================== */
.arb-resume { font-family: 'Poppins', sans-serif; color: #1e293b; }
.arb-resume h1 { margin: 0; }
.arb-resume h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: #0b5fff; border-bottom: 2px solid #0b5fff; padding-bottom: 6px; margin-bottom: 14px; }
.arb-section { margin-bottom: 26px; }
.arb-entry { margin-bottom: 16px; }
.arb-entry-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.arb-entry-duration { color: #64748b; font-size: .85rem; white-space: nowrap; }
.arb-entry-sub { color: #64748b; font-size: .9rem; margin-bottom: 6px; }

/* Modern (sidebar) */
.arb-tpl-modern { display: grid; grid-template-columns: 280px 1fr; min-height: 100%; }
.arb-tpl-modern .arb-sidebar { background: #0f172a; color: #e2e8f0; padding: 40px 26px; }
.arb-tpl-modern .arb-photo { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; display: block; border: 3px solid #0b5fff; }
.arb-tpl-modern .arb-name { color: #fff; font-size: 1.4rem; text-align: center; }
.arb-tpl-modern .arb-job-title { text-align: center; color: #93c5fd; font-weight: 600; margin-bottom: 24px; }
.arb-tpl-modern .arb-block { margin-bottom: 24px; }
.arb-tpl-modern .arb-block h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #93c5fd; margin-bottom: 10px; border-bottom: 1px solid #334155; padding-bottom: 6px; }
.arb-tpl-modern .arb-contact-list li, .arb-tpl-modern .arb-meta-list li, .arb-tpl-modern .arb-skills-list li { font-size: .85rem; margin-bottom: 8px; word-break: break-word; }
.arb-tpl-modern .arb-main { padding: 40px 36px; }
.arb-tpl-modern .arb-main h2 { color: #0f172a; border-bottom-color: #0f172a; }

/* Classic */
.arb-tpl-classic { padding: 46px 56px; font-family: 'Merriweather', serif; }
.arb-tpl-classic .arb-classic-header { text-align: center; margin-bottom: 30px; }
.arb-tpl-classic .arb-photo-round { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.arb-tpl-classic h1 { font-size: 1.8rem; letter-spacing: .03em; }
.arb-tpl-classic .arb-job-title { color: #475569; font-weight: 600; margin: 4px 0 10px; }
.arb-tpl-classic .arb-contact-line { font-size: .85rem; color: #64748b; }
.arb-tpl-classic h2 { font-family: 'Poppins', sans-serif; }

/* Minimal */
.arb-tpl-minimal { padding: 46px 56px; }
.arb-tpl-minimal .arb-minimal-header { display: flex; justify-content: space-between; align-items: center; }
.arb-tpl-minimal h1 { font-size: 2rem; }
.arb-tpl-minimal .arb-job-title { color: #0b5fff; font-weight: 600; }
.arb-tpl-minimal .arb-photo-square { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.arb-tpl-minimal .arb-minimal-contact { color: #64748b; font-size: .85rem; margin: 10px 0 0; }
.arb-tpl-minimal hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0 30px; }
.arb-tpl-minimal h2 { color: #0f172a; border-bottom: 2px solid #0f172a; }
.arb-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.arb-languages-list li { margin-bottom: 6px; font-size: .92rem; }
.arb-skill-tag { background: #eef3ff; color: #0b5fff; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
	.arb-wizard-body { grid-template-columns: 1fr; }
	.arb-wizard-preview-col { position: static; }
	.arb-live-preview { max-height: 420px; }
}

@media (max-width: 720px) {
	.arb-two-col, .arb-template-picker { grid-template-columns: 1fr; }
	.arb-repeater-row { grid-template-columns: 1fr; }
	.arb-tpl-modern { grid-template-columns: 1fr; }
	.arb-tpl-classic, .arb-tpl-minimal { padding: 30px 22px; }
	.arb-tpl-minimal .arb-minimal-header { flex-direction: column; align-items: flex-start; gap: 14px; }
	.arb-wizard-wrapper { padding: 20px; }
	.arb-wizard-nav { flex-wrap: wrap; }
}

@media print {
	.arb-form-wrapper, .no-print { display: none !important; }
	.arb-print-area { box-shadow: none; }
	body * { visibility: hidden; }
	.arb-print-area, .arb-print-area * { visibility: visible; }
	.arb-print-area { position: absolute; left: 0; top: 0; width: 100%; }
	.arb-tpl-modern .arb-sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
