/* ========== EDIT-UI - MODERNE STYLING ========== */

.edit-ui-page.admin-page .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 16px 32px;
    display: block;
}

/* Gelijkmatige padding – overschrijf admin.css voor edit-ui */
.edit-ui-page.admin-page .container {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .edit-ui-page.admin-page .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1024px) {
    .edit-ui-page.admin-page .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ========== PAGE INTRO ========== */

.page-intro-block {
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.06) 0%, rgba(212, 165, 116, 0.08) 100%);
    border-left: 4px solid var(--kleur-knop);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.page-intro-block p {
    margin: 0;
}

.page-intro-block strong {
    color: var(--kleur-tekst);
}

/* ========== ALERTS ========== */

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== TABS - MODERN PILL STYLE ========== */

.edit-ui-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 12px;
    width: fit-content;
}

.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--kleur-knop);
    background: rgba(255,255,255,0.7);
}

.tab.active {
    background: white;
    color: var(--kleur-knop);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ========== FORM CONTAINER ========== */

.edit-ui-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* ========== SECTIONS & GROUPS ========== */

.sections-group {
    padding: 24px 28px;
    border-bottom: 1px solid #f1f5f9;
}

.sections-group:last-of-type {
    border-bottom: none;
}

.group-header {
    margin-bottom: 20px;
}

.group-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--kleur-tekst);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.group-location {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ========== SECTION CARDS ========== */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.section-card {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.section-card:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Waarom/visibility toggles */
.waarom-toggle-group .sections-group {
    padding-bottom: 20px;
}

.waarom-visibility-card {
    max-width: 100%;
}

.waarom-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--kleur-tekst);
}

.waarom-toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--kleur-knop);
}

.waarom-visibility-card .section-hint {
    margin-top: 10px;
    margin-bottom: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* Section labels */
.section-label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.section-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--kleur-tekst);
    margin-bottom: 4px;
}

.section-location {
    display: inline-block;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 6px;
    font-weight: 500;
}

.section-hint {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    font-weight: normal;
    margin-top: 4px;
}

.section-preview-info {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* Text inputs */
.section-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.section-textarea:focus {
    outline: none;
    border-color: var(--kleur-knop);
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.12);
}

.char-count {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
}

.char-count .count {
    font-weight: 600;
    color: var(--kleur-knop);
}

/* ========== FEATURE CARDS ========== */

.feature-card {
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    padding: 20px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.feature-card-layout {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    align-items: start;
}

.feature-icon-box {
    padding: 16px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.feature-icon-box:hover {
    border-color: var(--kleur-secondair);
    background: #fffbeb;
}

.icon-label {
    font-weight: 600;
    font-size: 11px;
    color: #64748b;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.icon-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icon-file-input {
    display: none;
}

.icon-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    padding: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-upload-label:hover {
    border-color: var(--kleur-secondair);
    background: #fffbeb;
}

.icon-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-placeholder {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 8px;
}

.icon-emoji-preview {
    font-size: 2rem;
    line-height: 1;
}

.icon-info {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

/* Feature text fields */
.feature-text-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--kleur-tekst);
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.field-textarea {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--kleur-tekst);
    background: white;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.field-textarea:focus {
    outline: none;
    border-color: var(--kleur-knop);
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.12);
}

.title-textarea { min-height: 48px; }
.desc-textarea { min-height: 72px; }

.feature-preview-hint {
    padding: 10px 12px;
    background: #f8fafc;
    border-left: 3px solid var(--kleur-knop);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

/* ========== FOOTER & BUTTONS ========== */

.edit-ui-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--kleur-knop);
    color: white;
}

.btn-primary:hover {
    background: var(--kleur-basis-licht);
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ========== OVER MIJ SPECIFIEK ========== */

.form-hint-overmij {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.overmij-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 20px;
}

.overmij-features .feature-card,
.overmij-features .feature-card-layout {
    min-width: 0;
}

.overmij-form .feature-card .feature-text-box textarea.field-textarea {
    width: 100%;
    box-sizing: border-box;
}

/* ========== ADMIN HEADER AANPASSING ========== */

.edit-ui-page .admin-header {
    margin-bottom: 20px;
    padding: 0;
}

.edit-ui-page .page-intro-block {
    margin-bottom: 20px;
}

.edit-ui-page .edit-ui-tabs {
    margin-bottom: 20px;
}

.edit-ui-page .admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--kleur-tekst);
}

.edit-ui-page .admin-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .edit-ui-page.admin-page .container {
        padding: 16px;
    }

    .edit-ui-tabs {
        width: 100%;
    }

    .tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sections-group {
        padding: 20px;
    }

    .feature-card-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .edit-ui-footer {
        flex-direction: column;
        padding: 20px;
    }

    .btn {
        width: 100%;
    }

    .page-intro-block {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .edit-ui-page .admin-header h1 {
        font-size: 1.4rem;
    }

    .sections-group {
        padding: 16px;
    }

    .section-card {
        padding: 16px;
    }

    .feature-card {
        padding: 16px !important;
    }

    .icon-upload-label {
        height: 80px;
    }
}
