/* PLAndel Vikarbank Portal – matcher pla_member_management/static/src/css/portal.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f9f5f2;
    color: #1a1a1a;
    min-height: 100vh;
}

/* ── HEADER ── */
.pla-header { background: #ebd1c2; }
.pla-header-inner {
    max-width: 780px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; gap: 20px;
}
.pla-logo { height: 36px; width: auto; display: block; }
.pla-header-subtitle { color: #102c28; font-size: 13px; margin-left: auto; }

/* ── OUTER ── */
.pla-outer { padding: 36px 16px 56px; }
.pla-container { max-width: 720px; margin: 0 auto; }

/* ── STEPS ── */
.pla-step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto 28px;
}
.pla-step-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.pla-step {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
    background: #e0d8d4; color: #102c28;
}
.pla-step.done   { background: #102c28; color: #f1d0c1; }
.pla-step.active { background: #f1d0c1; color: #102c28; }
.pla-step-connector {
    height: 2px; background: #e0d8d4;
    flex: 1; margin-top: 15px; flex-shrink: 1;
}
.pla-step-connector.done { background: #102c28; }
.pla-step-label {
    font-size: 11px; color: #102c28; opacity: 0.6;
    text-align: center; margin-top: 6px; line-height: 1.2;
}

/* ── CARD ── */
.pla-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0d8d4;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(16,44,40,0.06);
}
.pla-card-success { border-top: 4px solid #102c28; }
.pla-card-title { font-size: 21px; font-weight: 700; color: #102c28; margin-bottom: 6px; }
.pla-card-desc  { color: #4a4a4a; margin-bottom: 22px; line-height: 1.65; font-size: 14px; }

/* ── ALERTS ── */
.pla-alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.pla-alert-error {
    background: #fdf5f2; color: #102c28;
    border-left: 4px solid #f1d0c1;
}

/* ── FIELDS ── */
.pla-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.pla-field label { font-size: 13px; font-weight: 600; color: #102c28; }
.pla-field input[type=text],
.pla-field input[type=email],
.pla-field input[type=tel],
.pla-field input[type=number],
.pla-field input[type=date],
.pla-field input[type=file],
.pla-field select,
.pla-field textarea {
    border: 1.5px solid #d0c8c2;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 15px; font-family: inherit; color: #1a1a1a;
    background: #fff; width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pla-field input:focus, .pla-field select:focus, .pla-field textarea:focus {
    outline: none; border-color: #102c28;
    box-shadow: 0 0 0 3px rgba(16,44,40,0.1);
}
.pla-field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pla-field-sm { max-width: 140px; }
.pla-field-hint { font-size: 12px; color: #888; margin-top: 4px; display: block; }
.pla-req { color: #102c28; font-weight: 700; }

/* ── OPTION CARDS (faggruppe) ── */
.pla-option-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; border: 2px solid #e0d8d4;
    border-radius: 10px; cursor: pointer; background: #fff;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 10px;
}
.pla-option-card:has(input:checked) { border-color: #102c28; background: #f9f5f2; }
.pla-option-card input[type=radio] {
    margin-top: 3px; accent-color: #102c28;
    width: 18px; height: 18px; flex-shrink: 0;
}
.pla-option-content { flex: 1; }
.pla-option-title { font-weight: 700; color: #102c28; }
.pla-option-desc { color: #666; font-size: 13px; }

/* ── RADIO/CHECKBOX GRUPPER ── */
.pla-radio-group, .pla-checkbox-group {
    display: flex; flex-direction: column; gap: 10px;
}
.pla-radio-label {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border: 1.5px solid #e0d8d4;
    border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.5;
}
.pla-radio-label input { margin-top: 3px; flex-shrink: 0; accent-color: #102c28; }
.pla-radio-label:has(input:checked) { border-color: #102c28; background: #f9f5f2; }
.pla-checkbox-group label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; cursor: pointer;
}
.pla-checkbox-group input { accent-color: #102c28; }

/* ── KOMPETENCE-TABEL ── */
.pla-kompetence-tabel {
    width: 100%; border-collapse: collapse;
    font-size: 14px; margin-bottom: 24px;
}
.pla-kompetence-tabel th {
    background: #102c28; color: #f1d0c1;
    padding: 10px 12px; text-align: left; font-weight: 500;
}
.pla-kompetence-tabel th:not(:first-child),
.pla-kompetence-tabel td:not(:first-child) { text-align: center; }
.pla-kompetence-tabel td { padding: 10px 12px; border-bottom: 1px solid #eee; }
.pla-kompetence-tabel tr:hover td { background: #fafafa; }
.pla-kompetence-tabel input[type=radio] { accent-color: #102c28; }

/* ── UPLOAD ── */
.pla-upload-group {
    margin-bottom: 16px; padding: 16px;
    border: 1.5px dashed #d0c8c2; border-radius: 8px;
    background: #fdf9f7;
}
.pla-upload-group label {
    display: block; font-weight: 600; font-size: 13px;
    color: #102c28; margin-bottom: 8px;
}

/* ── BUTTONS ── */
.pla-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border-radius: 8px;
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; border: none; text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.pla-btn:active { transform: scale(0.98); }
.pla-btn-primary  { background: #102c28; color: #f1d0c1; }
.pla-btn-primary:hover { background: #1c4a44; color: #f1d0c1; }
.pla-btn-secondary { background: #f1d0c1; color: #102c28; }
.pla-btn-secondary:hover { background: #e8c0ae; color: #102c28; }
.pla-btn-ghost { background: #fff; color: #102c28; border: 1.5px solid #d0c8c2; }
.pla-btn-ghost:hover { background: #f9f5f2; }
.pla-btn-large { padding: 13px 30px; font-size: 16px; }

.pla-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 26px; gap: 12px;
}
.pla-actions-center { justify-content: center; }

/* ── NOTICE ── */
.pla-notice {
    background: #fdf9f7; border: 1.5px solid #e0d8d4;
    border-left: 4px solid #f1d0c1; border-radius: 8px;
    padding: 14px 16px; margin: 16px 0 24px;
    font-size: 14px; color: #4a4a4a; line-height: 1.7;
}
.pla-notice a { color: #102c28; font-weight: 600; }

/* ── SUCCESS ── */
.pla-success-icon {
    width: 60px; height: 60px;
    background: #102c28; color: #f1d0c1;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 20px;
}

/* ── GEO STATUS ── */
#geo-status { font-size: 13px; color: #888; min-height: 20px; }

/* ── FOOTER ── */
.pla-footer {
    text-align: center; padding: 20px;
    font-size: 13px; color: #888;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.pla-footer a { color: #102c28; text-decoration: none; font-weight: 600; }
.pla-footer-sep { color: #ccc; }
.pla-footer-dev { font-size: 12px; color: #aaa; }
.pla-footer-dev a { color: #102c28; font-weight: 600; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .pla-card { padding: 20px 14px; }
    .pla-field-group { grid-template-columns: 1fr; }
    .pla-header-subtitle { display: none; }
}

/* ── NAVBAR (vikar selvbetjening) ── */
.pla-navbar { background: #102c28; }
.pla-navbar-inner {
    max-width: 780px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; gap: 4px;
    flex-wrap: wrap;
}
.pla-nav-link {
    padding: 14px 18px;
    color: #f1d0c1; text-decoration: none;
    font-size: 14px; font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.pla-nav-link:hover { color: #fff; }
.pla-nav-link.active { border-bottom-color: #f1d0c1; font-weight: 700; }
.pla-nav-logout { margin-left: auto; opacity: 0.85; }
.pla-nav-logout:hover { opacity: 1; }

/* ── DELETE-ZONE ── */
.pla-danger-zone {
    border: 1.5px solid #e0b4b4;
    border-radius: 10px;
    padding: 20px 24px;
    background: #fdf5f5;
    margin-top: 24px;
}
.pla-danger-zone h3 { color: #b91c1c; font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.pla-btn-danger {
    background: #b91c1c; color: #fff; border: none;
    padding: 10px 22px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.pla-btn-danger:hover { background: #991414; }

@media (max-width: 600px) {
    .pla-navbar-inner { padding: 0 12px; gap: 0; }
    .pla-nav-link { padding: 12px 12px; font-size: 13px; }
    .pla-nav-logout { margin-left: 0; }
}

/* ════════════════════════════════════════════════════════
   POLERET VIKAR-PORTAL — medlemsportal-stil med vikar-accent
   ════════════════════════════════════════════════════════ */

/* Vikar-differentiering: salmon accent-stribe under header */
.pla-header { border-bottom: 4px solid #102c28; }
.pla-navbar { position: relative; }
.pla-navbar::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px; background: linear-gradient(90deg, #f1d0c1 0%, #e8c0ae 100%);
}
.pla-vikar-badge {
    display: inline-block; background: #f1d0c1; color: #102c28;
    font-size: 11px; font-weight: 700; padding: 2px 10px;
    border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase;
    margin-left: 8px; vertical-align: middle;
}

/* Stat-kort række (som medlemsportalens dashboard) */
.pla-stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 24px;
}
.pla-stat-card {
    background: #fff; border-radius: 12px;
    border: 1px solid #e0d8d4;
    border-left: 4px solid #102c28;
    box-shadow: 0 2px 12px rgba(16,44,40,0.06);
    padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.pla-stat-card.accent { border-left-color: #f1d0c1; }
.pla-stat-card.warn { border-left-color: #d9a441; }
.pla-stat-card.danger { border-left-color: #b91c1c; }
.pla-stat-label { font-size: 12px; color: #888; font-weight: 600; }
.pla-stat-value { font-size: 26px; font-weight: 800; color: #102c28; margin-top: 2px; }
.pla-stat-sub { font-size: 12px; color: #aaa; }
.pla-stat-icon { font-size: 26px; color: #f1d0c1; }

/* Sektions-kort med ikon-header */
.pla-section {
    background: #fff; border-radius: 12px; border: 1px solid #e0d8d4;
    box-shadow: 0 2px 12px rgba(16,44,40,0.06);
    margin-bottom: 20px; overflow: hidden;
}
.pla-section-head {
    background: #102c28; color: #f1d0c1;
    padding: 14px 24px; font-weight: 600; font-size: 15px;
    display: flex; align-items: center; gap: 10px;
}
.pla-section-head .fa { font-size: 16px; }
.pla-section-body { padding: 24px; }

/* Profil-hero */
.pla-hero {
    display: flex; align-items: center; gap: 22px;
    padding: 28px 24px; background: linear-gradient(135deg, #102c28 0%, #1c4a44 100%);
    border-radius: 12px; margin-bottom: 24px; color: #fff;
}
.pla-hero-avatar {
    width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
    background: #ebd1c2; flex-shrink: 0; display: flex;
    align-items: center; justify-content: center;
    border: 3px solid #f1d0c1;
}
.pla-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pla-hero-avatar span { font-size: 38px; color: #102c28; font-weight: 700; }
.pla-hero h2 { margin: 0; font-size: 24px; color: #fff; font-weight: 700; }
.pla-hero-meta { margin-top: 6px; font-size: 14px; color: #f1d0c1; opacity: 0.9; }
.pla-hero-chip {
    display: inline-block; margin-top: 10px; padding: 4px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
}
.pla-hero-chip.ok { background: #f1d0c1; color: #102c28; }
.pla-hero-chip.pending { background: rgba(241,208,193,0.25); color: #f1d0c1; }

/* Pænere upload-dropzone */
.pla-dropzone {
    border: 2px dashed #d0c8c2; border-radius: 10px;
    padding: 20px; text-align: center; background: #fdf9f7;
    transition: border-color 0.15s, background 0.15s;
}
.pla-dropzone:hover { border-color: #102c28; background: #f9f5f2; }
.pla-dropzone .fa { font-size: 28px; color: #f1d0c1; margin-bottom: 8px; }

/* Dokument-liste pænere */
.pla-doc-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid #f0ebe7;
}
.pla-doc-row:last-child { border-bottom: none; }
.pla-doc-icon {
    width: 40px; height: 40px; border-radius: 8px; background: #ebd1c2;
    display: flex; align-items: center; justify-content: center;
    color: #102c28; font-size: 18px; flex-shrink: 0;
}
.pla-doc-info { flex: 1; }
.pla-doc-name { font-weight: 600; color: #102c28; font-size: 14px; }
.pla-doc-meta { font-size: 12px; color: #999; }

@media (max-width: 600px) {
    .pla-stat-row { grid-template-columns: 1fr; }
    .pla-hero { flex-direction: column; text-align: center; }
}

/* ── KLIKBAR AVATAR-UPLOAD ── */
#avatar-form { margin: 0; }
.pla-avatar-upload { position: relative; cursor: pointer; display: block; }
.pla-avatar-input {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    opacity: 0; cursor: pointer;
}
.pla-avatar-initial { font-size: 38px; color: #102c28; font-weight: 700; }
.pla-avatar-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 32px; background: rgba(16,44,40,0.78);
    display: flex; align-items: center; justify-content: center;
    color: #f1d0c1; font-size: 14px;
    opacity: 0; transition: opacity 0.15s;
    border-bottom-left-radius: 50%; border-bottom-right-radius: 50%;
}
.pla-avatar-upload:hover .pla-avatar-overlay { opacity: 1; }

/* ── FAST KONTAKTPERSON ── */
.pla-contact-card {
    display: flex; align-items: center; gap: 28px;
    background: linear-gradient(135deg, #f1d0c1 0%, #ebd1c2 100%);
    border-radius: 12px; padding: 20px 26px; margin-bottom: 24px;
    border: 1px solid #e5c3b2;
}
.pla-contact-avatar {
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: #102c28; flex-shrink: 0; margin-right: 4px;
    display: flex; align-items: center; justify-content: center;
}
.pla-contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pla-contact-avatar span { color: #f1d0c1; font-size: 30px; line-height: 1; }
.pla-contact-label { font-size: 12px; font-weight: 700; color: #102c28; text-transform: uppercase; letter-spacing: 0.5px; }
.pla-contact-name { font-size: 18px; font-weight: 700; color: #102c28; margin: 2px 0 8px; }
.pla-contact-links { display: flex; flex-wrap: wrap; gap: 18px; }
.pla-contact-links a { color: #102c28; text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; }
.pla-contact-links a .fa { margin-right: 7px; font-size: 15px; }
.pla-contact-links a:hover { text-decoration: underline; }

/* ── VIKARIAT-KORT ── */
.pla-vik-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 16px 18px; margin-bottom: 12px;
    border: 1px solid #e8dfd9; border-radius: 10px; background: #fff;
    border-left: 4px solid #102c28;
}
.pla-vik-card.past { border-left-color: #c9bdb4; opacity: 0.92; }
.pla-vik-card:last-child { margin-bottom: 0; }
.pla-vik-klinik { font-size: 15px; font-weight: 700; color: #102c28; }
.pla-vik-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #777; }
.pla-vik-side { text-align: right; flex-shrink: 0; }
.pla-vik-status {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
}
.pla-vik-status.ok { background: #ebd1c2; color: #102c28; }
.pla-vik-status.live { background: #102c28; color: #f1d0c1; }
.pla-vik-status.done { background: #e8efe9; color: #2e6b4f; }
.pla-vik-status.cancel { background: #f3e0e0; color: #b91c1c; }
.pla-vik-honorar { margin-top: 6px; font-size: 15px; font-weight: 800; color: #102c28; }
.pla-vik-timer { font-size: 12px; color: #999; }

@media (max-width: 600px) {
    .pla-vik-card { flex-direction: column; align-items: flex-start; }
    .pla-vik-side { text-align: left; }
    .pla-contact-card { flex-direction: column; text-align: center; }
}

/* ── REFERENCEPERSON-BLOK (indmeldelse) ── */
.pla-ref-block {
    border: 1px solid #e8dfd9; border-radius: 10px;
    padding: 16px 18px; margin-bottom: 14px; background: #fdf9f7;
}
