/* ========== EDIT-UI STYLING - BASIC & FUNCTIONAL ========== */
/* Uses existing color variables from style.css */
/* Header uses .admin-header + .back-btn from admin.css for consistent "Terug naar dashboard" button */

.edit-ui-page.admin-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn-back {
    padding: 10px 20px;
    background: var(--kleur-secondair);
    color: var(--kleur-tekst-licht);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: var(--kleur-basis-licht);
}

/* ========== ALERTS ========== */

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== TABS ========== */

.edit-ui-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab:hover {
    color: var(--kleur-basis);
}

.tab.active {
    color: var(--kleur-knop);
    border-bottom-color: var(--kleur-knop);
}

/* ========== FORM ========== */

.edit-ui-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sections-group {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sections-group:last-child {
    border-bottom: none;
}

.group-title {
    margin: 0 0 20px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--kleur-basis);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

/* ========== SECTION CARD ========== */

.section-card {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: var(--kleur-secondair);
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.12);
}

.section-label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.section-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--kleur-basis);
    margin-bottom: 3px;
}

.section-hint {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.section-preview-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.preview-icon {
    font-size: 13px;
}

.section-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.section-textarea:focus {
    outline: none;
    border-color: var(--kleur-secondair);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.char-count {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    text-align: right;
}

.char-count .count {
    font-weight: 600;
    color: var(--kleur-knop);
}

/* ========== FEATURE CARD ========== */

.feature-card {
    border: 2px solid var(--kleur-secondair) !important;
    background: linear-gradient(135deg, #fff9f5 0%, #fffbf8 100%) !important;
    padding: 18px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--kleur-basis-licht) !important;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15) !important;
}

.feature-card-layout {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: flex-start;
}

/* ========== FEATURE ICON BOX ========== */

.feature-icon-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: white;
    border: 2px dashed var(--kleur-secondair);
    border-radius: 6px;
    text-align: center;
}

.icon-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--kleur-basis);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.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: 85px;
    padding: 8px;
    background: #fafafa;
    border: 2px solid var(--kleur-secondair);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-upload-label:hover {
    background: #f0f0f0;
    border-color: var(--kleur-basis-licht);
}

.icon-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-placeholder {
    font-size: 36px;
    color: #ccc;
}

.icon-emoji-preview {
    font-size: 2rem;
    display: block;
    line-height: 1;
}

.icon-info {
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* ========== FEATURE TEXT BOX ========== */

.feature-text-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    display: block;
    cursor: pointer;
}

.field-label span {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--kleur-basis);
    margin: 0;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.field-textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--kleur-basis);
    background: white;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.field-textarea:focus {
    outline: none;
    border-color: var(--kleur-secondair);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.title-textarea {
    min-height: 45px;
}

.desc-textarea {
    min-height: 65px;
}

.feature-preview-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(212, 165, 116, 0.08);
    border-left: 3px solid var(--kleur-secondair);
    border-radius: 4px;
    font-size: 12px;
    color: var(--kleur-knop);
    font-weight: 600;
    margin-top: 8px;
}

/* ========== FOOTER & BUTTONS ========== */

.edit-ui-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s 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 2px 6px rgba(160, 82, 45, 0.25);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--kleur-basis);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .feature-card-layout {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .edit-ui-page.admin-page .container {
        padding: 15px;
    }

    .edit-ui-page .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .edit-ui-page .back-btn {
        width: 100%;
        text-align: center;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .edit-ui-tabs {
        flex-direction: column;
        border-bottom: none;
        border-left: 2px solid rgba(0,0,0,0.1);
        padding-left: 12px;
        margin-bottom: 20px;
    }

    .tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        padding-left: 12px;
        margin-left: -12px;
    }

    .tab.active {
        border-left-color: var(--kleur-knop);
        border-bottom: none;
    }

    .feature-card-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .edit-ui-footer {
        flex-direction: column;
        padding: 15px;
    }

    .btn {
        width: 100%;
    }

    .sections-group {
        padding: 15px;
    }

    .group-title {
        font-size: 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .edit-ui-page.admin-page .container {
        padding: 12px;
    }

    .edit-ui-page .admin-header h1 {
        font-size: 22px;
    }

    .edit-ui-page .admin-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
        gap: 10px;
    }

    .edit-ui-page .back-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .sections-grid {
        gap: 12px;
    }

    .section-card {
        padding: 12px;
    }

    .feature-card {
        padding: 12px !important;
    }

    .feature-card-layout {
        gap: 12px;
    }

    .feature-icon-box {
        padding: 10px;
    }

    .icon-upload-label {
        height: 75px;
    }

    .icon-placeholder {
        font-size: 28px;
    }

    .field-textarea {
        font-size: 12px;
        padding: 8px;
    }

    .title-textarea {
        min-height: 40px;
    }

    .desc-textarea {
        min-height: 55px;
    }

    .edit-ui-footer {
        padding: 12px;
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .alert {
        font-size: 12px;
        padding: 10px 12px;
    }

    .tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sections-group {
        padding: 12px;
    }
}

/* ========== OVER MIJ TAB ========== */
.form-hint-overmij {
    margin: -0.5rem 0 1rem 0;
    font-size: 13px;
    color: #666;
}

/* Zelfde blokken-layout als homepage: brede kaarten, zelfde grid en spacing */
.overmij-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .overmij-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Voorkom overflow van feature-kaarten op smalle schermen */
.overmij-features .feature-card {
    min-width: 0;
}

.overmij-features .feature-card-layout {
    min-width: 0;
}

.overmij-form .feature-card .feature-text-box textarea.field-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.overmij-form .feature-card .feature-text-box textarea.field-textarea:focus {
    outline: none;
    border-color: var(--kleur-secondair);
}