/* ============================================================
   pridat-zivotopis.css — Fajn Účet
   Styly specifické pro stránku "Přidat životopis".
   Obecné styly (layout, sidebar, header…) jsou v obecne.css.
   ============================================================ */

/* =============================================================
   LAYOUT STRÁNKY
   ============================================================= */
.zivotopis-page {
    padding-bottom: 3rem;
}

.cv-card {
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .cv-card { padding: 2rem; }
}

/* =============================================================
   BANNER (oranžový gradient s maskotom)
   ============================================================= */
.banner-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, hsl(33 100% 50%), hsl(28 100% 55%), hsl(38 95% 55%));
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px hsl(33 100% 50% / 0.25);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.banner-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.banner-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .banner-text { font-size: 1.0625rem; }
}

/* =============================================================
   NADPIS STRÁNKY
   ============================================================= */
.cv-page-title {
    font-size: 1.375rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .cv-page-title { font-size: 1.5rem; }
}

/* =============================================================
   PROMO ODKAZ NA ONLINE (VEŘEJNÝ) ŽIVOTOPIS
   ============================================================= */
.ozp-promo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: hsl(var(--accent) / 0.08);
    border: 1px solid hsl(var(--accent) / 0.25);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: background 0.15s;
}
.ozp-promo-link:hover { background: hsl(var(--accent) / 0.14); }
.ozp-promo-link > .lucide-sm:first-child { flex-shrink: 0; color: hsl(var(--accent)); }
.ozp-promo-link span { flex: 1; line-height: 1.45; }
.ozp-promo-link strong { color: hsl(var(--accent)); }
.ozp-promo-link__arrow { flex-shrink: 0; color: hsl(var(--accent)); }

/* =============================================================
   SWITCHER KARTY (Nahrát PDF / Vytvořit profi životopis)
   ============================================================= */
.switcher-cards {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
    .switcher-cards { grid-template-columns: repeat(2, 1fr); }
}

.switcher-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px dashed hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.switcher-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.switcher-card.active {
    border: 2px solid hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.switcher-card-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}
.switcher-card.active .switcher-card-icon {
    background: hsl(var(--primary) / 0.15);
    color: hsl(var(--primary));
}

.switcher-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}
.switcher-card-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.recommended-badge {
    display: inline-block;
    background: hsl(var(--primary));
    color: white;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* =============================================================
   SEKCE FORMULÁŘE
   ============================================================= */
.cv-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cv-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 2rem;
}
.cv-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-number {
    width: 1.75rem;
    height: 1.75rem;
    background: hsl(var(--primary));
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header .section-title { margin-bottom: 0; }

/* Nadpisy sekcí mimo kartu */
.cv-section-title-outside {
    font-size: 1.25rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}
.cv-section-subtitle-outside {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* =============================================================
   NAHRÁNÍ FOTKY
   ============================================================= */
.photo-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .photo-upload-wrapper { flex-direction: row; }
}

.photo-preview-wrapper {
    position: relative;
    flex-shrink: 0;
}

.photo-preview {
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    background: hsl(var(--muted));
    border: 4px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    flex-shrink: 0;
}
.photo-preview.has-photo { border-color: hsl(var(--primary) / 0.3); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.photo-remove-x {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: hsl(0 72% 51%);
    color: white;
    border: 2px solid white;
    border-radius: 9999px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: background 0.15s;
}
.photo-remove-x:hover { background: hsl(0 72% 41%); }
.photo-remove-x.visible { display: flex; }

.file-input { display: none; }

.photo-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.photo-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid hsl(var(--border));
    background: white;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    color: hsl(var(--foreground));
}
.photo-btn:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--secondary));
}

.photo-hint {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* =============================================================
   FORMULÁŘOVÉ PRVKY
   ============================================================= */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--muted) / 0.5);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: all 0.15s;
    font-family: inherit;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: white;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    color: hsl(0 72% 51%);
    border-color: hsl(0 72% 51%);
    background: hsl(0 72% 51% / 0.05);
}
.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
    border-color: hsl(0 72% 51%);
    box-shadow: 0 0 0 3px hsl(0 72% 51% / 0.1);
}

.form-error-message {
    font-size: 0.75rem;
    color: hsl(0 72% 51%);
    margin-top: 0.25rem;
}

.form-textarea {
    resize: vertical;
    min-height: 4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .form-grid                { grid-template-columns: repeat(2, 1fr); }
    .form-grid-courses        { grid-template-columns: repeat(3, 1fr); }
}
.form-grid .full-width { grid-column: 1 / -1; }

/* =============================================================
   TLAČÍTKA
   ============================================================= */
.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    background: white;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    color: hsl(var(--foreground));
}
.add-btn:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.add-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid hsl(var(--border));
    background: white;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    color: hsl(var(--foreground));
}
.add-btn-small:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.submit-btn,
.preview-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    border: none;
}
.submit-btn {
    background: hsl(var(--primary));
    color: white;
}
.submit-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.preview-btn,
.download-btn {
    background: white;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.preview-btn:hover,
.download-btn:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--primary) / 0.3);
}
.delete-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    background: white;
    border: 1px solid hsl(0 72% 51% / 0.4);
    color: hsl(0 72% 51%);
}
.delete-cv-btn:hover {
    background: hsl(0 72% 51% / 0.06);
    border-color: hsl(0 72% 51% / 0.7);
}

/* =============================================================
   ZKUŠENOSTI / PRAXE / VZDĚLÁNÍ (opakující se bloky)
   ============================================================= */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: hsl(var(--muted) / 0.3);
    border: 2px dashed hsl(var(--border));
    border-radius: 0.75rem;
    text-align: center;
}
.empty-state p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}
.empty-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.experience-item {
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}
#vzdelani-container .experience-item {
    background: #fffbeb;
    border-color: #fde68a;
}
#vzdelani-container .experience-header:hover {
    background: #fef9c3;
}

.experience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}
.experience-header:hover { background: hsl(var(--muted) / 0.5); }

.experience-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.experience-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.experience-details { flex: 1; min-width: 0; }

.experience-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.experience-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

.experience-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    padding: 0.375rem;
    background: none;
    border: none;
    color: hsl(var(--destructive));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.15s;
}
.delete-btn:hover { background: hsl(var(--destructive) / 0.1); }

.toggle-icon { color: hsl(var(--muted-foreground)); }

.experience-body {
    display: none;
    padding: 0 1rem 1rem;
}
.experience-item.expanded .experience-body { display: block; }
.experience-item.expanded .toggle-icon.chevron-down { display: none; }
.experience-item:not(.expanded) .toggle-icon.chevron-up { display: none; }

.cv-date-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 0.9375rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b66;
    border-left: 3px solid #f59e0b;
    border-radius: 0.5rem;
    color: #78350f;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}
.cv-date-hint svg { flex-shrink: 0; width: 15px; height: 15px; color: #f59e0b; }

/* =============================================================
   DATUM (měsíc + rok)
   ============================================================= */
.date-select-group {
    display: flex;
    gap: 0.5rem;
}
.date-select-group div { width: 100%; }
.date-select-group select { flex: 1; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid hsl(var(--border));
}

/* =============================================================
   DOTAZNÍK ZKUŠENOSTÍ
   ============================================================= */
.experience-survey {
    background: linear-gradient(to bottom right, hsl(var(--accent) / 0.05), hsl(var(--primary) / 0.05));
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.survey-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.survey-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to bottom right, hsl(var(--accent)), hsl(var(--primary)));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.survey-content { flex: 1; }
.survey-content .section-title { margin-bottom: 0.25rem; }

.optional-badge {
    display: inline-block;
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.survey-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* =============================================================
   TAGY (zkušenosti, řidičák, dovednosti, záliby)
   ============================================================= */
.experience-tags,
.license-tags,
.skill-tags,
.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-tag,
.license-tag,
.skill-tag,
.hobby-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.875rem;
    font-weight: 500;
}
.experience-tag:hover,
.license-tag:hover,
.skill-tag:hover,
.hobby-tag:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-1px);
}

.tag-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tag-check { display: none; }
.tag-checkbox:checked ~ .tag-label { color: hsl(var(--primary)); }
.tag-checkbox:checked ~ .tag-check {
    display: block;
    color: hsl(var(--primary));
}
.experience-tag:has(.tag-checkbox:checked),
.license-tag:has(.tag-checkbox:checked),
.skill-tag:has(.tag-checkbox:checked),
.hobby-tag:has(.tag-checkbox:checked) {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

/* =============================================================
   SUBSEKCE
   ============================================================= */
.subsection { margin-top: 1.5rem; }
.subsection:first-child { margin-top: 0; }

.subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}
.subsection-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* =============================================================
   RADIO GROUP
   ============================================================= */
.radio-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}
.radio-label input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: hsl(var(--primary));
}

/* =============================================================
   JAZYKY
   ============================================================= */
.license-types { margin-top: 1rem; }

.languages-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-item {
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}
.language-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
}
.language-header:hover { background: hsl(var(--muted) / 0.5); }
.language-name  { font-weight: 500; font-size: 0.875rem; }
.language-level { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-left: 0.5rem; }
.language-body  { display: none; padding: 0 0.75rem 0.75rem; }
.language-item.expanded .language-body { display: block; }
.language-fields { display: flex; gap: 0.75rem; }
.language-fields > div { flex: 1; }

/* =============================================================
   MODAL — STAŽENÍ PDF
   ============================================================= */
.cv-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.cv-modal-overlay.active { display: flex; }

.cv-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: cvModalIn 0.25s ease-out;
}
@keyframes cvModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cv-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f57c00;
}
.cv-modal__icon svg { width: 28px; height: 28px; }

.cv-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.cv-modal__text {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.cv-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.cv-modal__btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cv-modal__btn--cancel          { background: #f5f5f5; color: #555; }
.cv-modal__btn--cancel:hover    { background: #e8e8e8; }
.cv-modal__btn--confirm         { background: #1a73e8; color: #fff; }
.cv-modal__btn--confirm:hover   { background: #1557b0; }

/* =============================================================
   MODAL — KAMERA
   ============================================================= */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.camera-modal.active { display: flex; }

.camera-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.camera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.camera-modal-header h4 { margin: 0; font-size: 1rem; }

.camera-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: hsl(var(--muted-foreground));
}
.camera-modal-close:hover { color: hsl(var(--foreground)); }

.camera-modal-body { padding: 0; }
.camera-modal-body video {
    width: 100%;
    display: block;
    background: #000;
}

.camera-modal-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    border-top: 1px solid #e5e7eb;
}



.dotaznik-status-ok {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-radius: 14px;
	padding: 18px 24px;
	margin: 20px auto;
	max-width: 1200px;
	display: flex;
	align-items: center;
	gap: 16px;
	animation: fadeInStatus 0.4s ease;
}

.dotaznik-status-ok__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: #22c55e;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.dotaznik-status-ok__icon svg {
	width: 20px;
	height: 20px;
}

.dotaznik-status-ok__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dotaznik-status-ok__text strong {
	font-size: 15px;
	color: #166534;
}

.dotaznik-status-ok__text span {
	font-size: 14px;
	color: #4ade80;
}
.dotaznik-delete-btn {
	text-decoration: none;
	color: hsl(0 72% 51%) !important;
	border-color: hsl(0 72% 51% / 0.3) !important;
}

.dotaznik-delete-btn:hover {
	background: hsl(0 72% 51% / 0.1) !important;
	border-color: hsl(0 72% 51%) !important;
}

.dotaznik-delete-btn {
	color: hsl(0 72% 51%) !important;
	border-color: hsl(0 72% 51% / 0.3) !important;
}

.dotaznik-delete-btn:hover {
	background: hsl(0 72% 51% / 0.1) !important;
	border-color: hsl(0 72% 51%) !important;
}

.cv-modal__icon--danger {
    background: hsl(0 72% 51% / 0.1);
    color: hsl(0 72% 51%);
}

.cv-modal__btn--danger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: hsl(0 72% 51%);
	color: white;
	border: none;
	border-radius: 0.75rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
}

.cv-modal__btn--danger:hover {
	background: hsl(0 72% 41%);
}
@keyframes fadeInStatus {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
.spinner-btn {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin-btn 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 4px;
}

@keyframes spin-btn {
	to { transform: rotate(360deg); }
}

/* =============================================================
   PROMO — VÝBĚR VZHLEDU CV
   ============================================================= */
.cv-design-promo {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 60%, #fed7aa 100%);
    border: 1.5px solid #fdba74;
    border-radius: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cv-design-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.18);
    border-color: #fb923c;
}

.cv-design-promo__head {
    margin-bottom: 1rem;
}

.cv-design-promo__head-text {
    min-width: 0;
}

.cv-design-promo__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #9a3412;
    margin: 0 0 0.25rem;
}
.cv-design-promo__title .lucide-sm {
    color: #ea580c;
}

.cv-design-promo__subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #7c2d12;
}

.cv-design-promo__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.625rem;
}

.cv-design-promo__thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cv-design-promo__thumb:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}
.cv-design-promo:hover .cv-design-promo__thumb {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.cv-design-promo__thumb:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

/* Zvolený náhled — oranžový rámeček, check badge a lehké zvětšení */
.cv-design-promo__thumb--selected {
    border: 2px solid hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2), 0 6px 14px rgba(234, 88, 12, 0.25);
    transform: translateY(-2px);
}
.cv-design-promo__thumb--selected:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.25), 0 8px 18px rgba(234, 88, 12, 0.3);
}

/* Check badge — viditelný jen u zvoleného */
.cv-design-promo__thumb-check {
    position: absolute;
    top: 0.3rem;
    left: 0.4rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cv-design-promo__thumb-check .lucide-sm {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}
.cv-design-promo__thumb--selected .cv-design-promo__thumb-check {
    opacity: 1;
    transform: scale(1);
}

.cv-design-promo__thumb-header {
    height: 28%;
    border-radius: 0.25rem;
    margin-bottom: 0.35rem;
}

.cv-design-promo__thumb-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.cv-design-promo__thumb-lines span {
    display: block;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}
.cv-design-promo__thumb-lines span:nth-child(1) { width: 90%; }
.cv-design-promo__thumb-lines span:nth-child(2) { width: 70%; }
.cv-design-promo__thumb-lines span:nth-child(3) { width: 80%; }

.cv-design-promo__thumb-letter {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cv-design-promo__thumb-name {
    position: absolute;
    bottom: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.25rem;
    padding: 0.1rem 0.2rem;
}

/* Vzhledy mini-náhledů — odpovídají variantám A–E v nahled-zivotopisu-varianty */
.cv-design-promo__thumb--a .cv-design-promo__thumb-header {
    background: #fa6532;
}
.cv-design-promo__thumb--b .cv-design-promo__thumb-header {
    background: linear-gradient(135deg, #f97316, #fb923c, #fdba74);
}
.cv-design-promo__thumb--c {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0.35rem;
    padding: 0.4rem;
}
.cv-design-promo__thumb--c .cv-design-promo__thumb-header {
    height: auto;
    background: #1f2937;
    margin: 0;
    border-radius: 0.25rem;
}
.cv-design-promo__thumb--c .cv-design-promo__thumb-lines {
    gap: 4px;
}
.cv-design-promo__thumb--d .cv-design-promo__thumb-header {
    background: #0f172a;
    border-bottom: 2px solid #f97316;
}
.cv-design-promo__thumb--e {
    background: #0b1220;
    border-color: #1e293b;
}
.cv-design-promo__thumb--e .cv-design-promo__thumb-header {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}
.cv-design-promo__thumb--e .cv-design-promo__thumb-lines span {
    background: rgba(255, 255, 255, 0.18);
}
.cv-design-promo__thumb--e .cv-design-promo__thumb-name {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.85);
}

/* Mobil — banner přejde do sloupce, mini-náhledy zůstanou 5 vedle sebe ale menší */
@media (max-width: 640px) {
    .cv-design-promo {
        padding: 1rem;
    }
    .cv-design-promo__thumbs {
        gap: 0.4rem;
    }
    .cv-design-promo__thumb {
        padding: 0.3rem;
    }
    .cv-design-promo__thumb-letter {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    .cv-design-promo__thumb-name {
        font-size: 0.55rem;
    }
}


/* ── Toast notifikace ───────────────────────────────────── */
.cv-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3000;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}
.cv-toast {
    pointer-events: auto;
    width: auto;
    max-width: 640px;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0px 0px 5px 0px #b0b0b0;
    padding: 25px 50px;
    text-align: center;
    border: 2px solid #8fff42;
    background: linear-gradient(180deg, rgba(122, 202, 67, 0.95) 0%, rgba(67, 202, 89, 0.76) 100%);
    animation: cvToastIn .28s cubic-bezier(.2,.7,.2,1);
}
.cv-toast.is-leaving { animation: cvToastOut .32s ease forwards; }
@keyframes cvToastIn  { from { opacity:0; transform:translateY(-12px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes cvToastOut { to   { opacity:0; transform:translateY(-12px) scale(.96); } }
.cv-toast__close { display:none; }
@media (prefers-reduced-motion:reduce) { .cv-toast, .cv-toast.is-leaving { animation:none; } }

/* =====================================================
   ZPĚTNÁ VAZBA — plovoucí tlačítko + vysouvací panel
====================================================== */

/* --- Plovoucí tlačítko (FAB) --- */
.cv-fb__fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    border: none;
    border-radius: 9999px;
    background: hsl(33 100% 50%);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 6px 18px hsl(33 100% 50% / 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cv-fb__fab:hover { transform: translateY(-2px); box-shadow: 0 8px 22px hsl(33 100% 50% / 0.5); }
.cv-fb__fab:active { transform: translateY(0); }

/* Na mobilu jen ikona — šetří místo, nepřekáží */
@media (max-width: 640px) {
    .cv-fb__fab { padding: 0.875rem; }
    .cv-fb__fab-text { display: none; }
}

/* --- Ztmavené pozadí --- */
.cv-fb__overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.cv-fb__overlay.is-open { opacity: 1; visibility: visible; }

/* --- Panel (vyjede zespodu) --- */
.cv-fb__panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.25rem 1.25rem 1.75rem;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.cv-fb__overlay.is-open .cv-fb__panel { transform: translateY(0); }

/* Na PC vycentrovaný „dialog" místo spodního sheetu */
@media (min-width: 768px) {
    .cv-fb__overlay { align-items: center; }
    .cv-fb__panel { border-radius: 1.25rem; }
    .cv-fb__handle { display: none; }
}

.cv-fb__handle {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: hsl(var(--border));
    margin: 0 auto 0.875rem;
}

.cv-fb__close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 9999px;
    background: hsl(var(--muted) / 0.6);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cv-fb__close:hover { background: hsl(var(--muted)); }

.cv-fb__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    padding-right: 2rem;
}
.cv-fb__subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* --- Smajlíci --- */
.cv-fb__emoji-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.cv-fb__emoji {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 0.5rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.875rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}
.cv-fb__emoji span { font-size: 1.75rem; line-height: 1; }
.cv-fb__emoji small { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); font-weight: 600; }
.cv-fb__emoji:hover { border-color: hsl(33 100% 50% / 0.5); background: hsl(33 100% 50% / 0.04); }
.cv-fb__emoji.is-active {
    border-color: hsl(33 100% 50%);
    background: hsl(33 100% 50% / 0.08);
}
.cv-fb__emoji.is-active small { color: hsl(33 100% 50%); }

/* --- Komentář (skrytý, dokud uživatel neklepne na smajlík) --- */
.cv-fb__comment {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s, margin-top 0.3s;
}
.cv-fb__comment.is-visible {
    max-height: 240px;
    opacity: 1;
    margin-top: 1rem;
}
.cv-fb__textarea {
    width: 100%;
    border: 2px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    box-sizing: border-box;
}
.cv-fb__textarea:focus {
    outline: none;
    border-color: hsl(33 100% 50%);
    box-shadow: 0 0 0 3px hsl(33 100% 50% / 0.1);
}
.cv-fb__send {
    margin-top: 0.75rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: hsl(33 100% 50%);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.15s;
}
.cv-fb__send:hover { background: hsl(33 100% 45%); }

/* --- Poděkování --- */
.cv-fb__thanks { display: none; text-align: center; padding: 1.5rem 0 0.5rem; }
.cv-fb__thanks.is-visible { display: block; }
.cv-fb__thanks-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.875rem;
    border-radius: 9999px;
    background: hsl(var(--success) / 0.12);
    color: hsl(var(--success));
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-fb__thanks-icon .lucide-sm { width: 1.5rem; height: 1.5rem; }
/* Text poděkování zarovnaný na střed (titulek i podtitulek) */
.cv-fb__thanks .cv-fb__title,
.cv-fb__thanks .cv-fb__subtitle { text-align: center; padding-right: 0; }

/* =====================================================
   PŘÍLOHY — NAHRÁNÍ SOUBORŮ (životopis / motivační dopis)
====================================================== */
.cv-uploads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.cv-upload-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px dashed hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cv-upload-box:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cv-upload-box__icon {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.cv-upload-box__title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.cv-upload-box__file {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
.cv-upload-box__file .lucide-sm {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Skrytý nativní file input přes celý box */
.cv-upload-box__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* =============================================================
   CO MÁ UŽIVATEL PŘILOŽENO (BEM blok .prilozeno)
   ============================================================= */
.prilozeno {
    margin-bottom: 1.25rem;
}

.prilozeno__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.prilozeno__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
}

.prilozeno__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    padding: 0.1875rem 0.375rem;
    margin-left: -0.375rem;
    border-radius: 0.375rem;
    transition: background 0.15s, color 0.15s;
}

.prilozeno__item:hover,
.prilozeno__item:focus-visible {
    background: hsl(var(--muted));
    color: hsl(var(--primary));
}

.prilozeno__icon {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
}

.prilozeno__item:hover .prilozeno__icon {
    color: hsl(var(--primary));
}

.prilozeno__name {
    word-break: break-word;
    text-decoration: underline;
    text-decoration-color: hsl(var(--border));
    text-underline-offset: 0.1875rem;
}

.prilozeno__item:hover .prilozeno__name {
    text-decoration-color: hsl(var(--primary) / 0.5);
}

/* Ikona oka — naznačuje náhled, zvýrazní se při najetí */
.prilozeno__eye {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    opacity: 0;
    transition: opacity 0.15s;
}

.prilozeno__item:hover .prilozeno__eye,
.prilozeno__item:focus-visible .prilozeno__eye {
    opacity: 1;
    color: hsl(var(--primary));
}

/* Na dotykových zařízeních je oko vidět vždy (hover neexistuje) */
@media (hover: none) {
    .prilozeno__eye {
        opacity: 1;
    }
}

.prilozeno__tag {
    padding: 0.0625rem 0.4375rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.12);
    color: hsl(28 90% 38%);
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================
   UPRAVIT-ONLINE-ZIVOTOPIS.CSS — vlastní doplňky nad pridat-zivotopis.css
   (soubor je samostatná kopie, viz upravit-online-zivotopis.php)
   Přidává: drobečkovou navigaci zpět na přehled, info pruh o soukromí
   a segmentovaný přepínač soukromí (Veřejné/Jen firmy/Skrýt) u sekcí.
   ============================================================ */

/* =============================================================
   DROBEČKOVÁ NAVIGACE
   ============================================================= */
.uoz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}
.uoz-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(var(--accent));
    text-decoration: none;
    font-weight: 500;
}
.uoz-breadcrumb a:hover { text-decoration: underline; }
.uoz-breadcrumb__sep { color: hsl(var(--muted-foreground) / 0.6); }
.uoz-breadcrumb span { color: hsl(var(--foreground)); font-weight: 500; }

/* =============================================================
   INFO PRUH — soukromí se nastavuje rovnou u každé sekce
   ============================================================= */
.uoz-privacy-info {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: hsl(var(--accent) / 0.08);
    border: 1px solid hsl(var(--accent) / 0.25);
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    line-height: 1.5;
    flex-wrap: wrap;
}
.uoz-privacy-info > .lucide-sm:first-child { flex-shrink: 0; color: hsl(var(--accent)); margin-top: 0.125rem; }
.uoz-privacy-info span { flex: 1 1 16rem; min-width: 0; }
.uoz-privacy-info strong { color: hsl(var(--accent)); }
.uoz-privacy-info__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.uoz-privacy-info__link:hover { background: hsl(var(--secondary)); }

/* =============================================================
   HLAVIČKA POLE/SUBSEKCE S PŘEPÍNAČEM (Fotka, O mně, Kontakt…)
   ============================================================= */
.uoz-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.uoz-field-head--inline { margin-bottom: 0; }
.uoz-field-head__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Pravá část section-header / subsection-header, kde vedle sebe
   sedí přepínač soukromí a tlačítko "Přidat…". */
.section-header,
.subsection-header {
    flex-wrap: wrap;
    row-gap: 0.75rem;
}
.section-header__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =============================================================
   SEGMENTOVANÝ PŘEPÍNAČ SOUKROMÍ (Veřejné / Jen firmy / Skrýt)
   Stejný vzor jako .zs-segmented na zivotopis-soukromi.php.
   ============================================================= */
.uoz-toggle {
    display: inline-flex;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    background: hsl(var(--secondary) / 0.5);
    flex-shrink: 0;
}

.uoz-toggle__btn {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.375rem 0.625rem;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.uoz-toggle__btn:not(:last-child) {
    border-right: 1px solid hsl(var(--border));
}
.uoz-toggle__btn:hover { background: hsl(var(--secondary)); }

.uoz-toggle__btn--verejne.is-active {
    background: hsl(var(--success));
    color: white;
}
.uoz-toggle__btn--jen-firmy.is-active {
    background: hsl(var(--accent));
    color: white;
}
.uoz-toggle__btn--skryto.is-active {
    background: hsl(var(--muted-foreground));
    color: white;
}

/* =============================================================
   RESPONZIVITA
   ============================================================= */
@media (max-width: 560px) {
    .uoz-toggle { width: 100%; }
    .uoz-toggle__btn { flex: 1; text-align: center; }
    .section-header__right { width: 100%; flex-direction: column; align-items: stretch; }
    .section-header__right .uoz-toggle { width: 100%; }
    .section-header__right .add-btn,
    .section-header__right .add-btn-small { justify-content: center; }
    .uoz-privacy-info__link { width: 100%; justify-content: center; }
}
