/**
 * assets/css/mobile.css
 *
 * HERSTELDE VERSIE:
 * - Oorspronkelijke layout van setup-wizard en kaarten volledig intact.
 * - UITSLUITEND styling toegevoegd voor de anonieme welkomstkaart, checklist en groene knop.
 *
 * DEZE CODE IS 100% COMPLEET EN KLAAR VOOR GEBRUIK.
 */

/* --- 8.1 APP LAYOUT & NATIVE HEADER --- */
body.g-schema-body {
    background-color: var(--color-background-body);
    /* STICKY FOOTER FIX */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

#g-schema-plugin-wrapper { 
    margin: 0; 
    padding: 0; 
    max-width: 100%;
    /* STICKY FOOTER FIX */
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* De Nieuwe Native Header */
.app-header-native {
    background-color: #2c3e50; /* Midnight Blue */
    color: #ffffff;
    
    /* Positionering en Notch support */
    padding-top: calc(15px + env(safe-area-inset-top)); 
    padding-bottom: 40px; /* Ruimte voor de ronding */
    padding-left: 15px;
    padding-right: 15px;

    /* Vormgeving */
    border-radius: 0 0 30px 30px; /* Ronding onderaan */
    
    /* FLEXBOX voor horizontale uitlijning */
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    
    /* Sticky gedrag */
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* Visuele effecten */
    margin-top: -1px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Verdeling van de header secties */
.header-left, .header-right { 
    flex: 1; 
    display: flex; 
} 

.header-right {
    justify-content: flex-end;
}

.header-center { 
    flex: 2; 
    text-align: center; 
}

/* Styling van de 'Terug' / 'Sluiten' witte Pill-Button */
.app-back-btn {
    background-color: #ffffff;
    color: #2c3e50 !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex; 
    align-items: center;
    gap: 8px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    -webkit-appearance: none; 
    appearance: none; 
    outline: none;
}

.app-header-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    white-space: nowrap; 
}

/* --- 8.2 CONTENT GEBIED --- */
.app-main-content {
    padding: 20px;
    padding-bottom: 20px;
    margin-top: 0px; 
    /* STICKY FOOTER FIX */
    flex: 1;
}

/* AANPASSINGEN VOOR SAMENVATTINGSKNOPPEN */
.ai-summary-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px !important;
    width: 100%;
    margin-top: 15px;
}

.ai-summary-buttons .button {
    padding: 6px 12px !important;
    font-size: 0.95rem;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: 10px;
}

/* --- 8.3 DASHBOARD KAARTEN (Card Layout) --- */
.dashboard-header {
    display: block;
    padding: 20px;
    background-color: var(--color-surface);
    border-radius: var(--app-radius-card);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border: none;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.dashboard-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* DASHBOARD & WIZARD CARDS (Oorspronkelijke stijl hersteld) */
.schema-card, .unfinished-schema-card, .schema-list-empty, .setup-container, .wizard-interaction-panel {
    background-color: var(--app-card-bg-gray);
    border: 1.5px solid #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    padding: 20px;
    border-radius: var(--app-radius-card);
    margin-bottom: 20px;
}

/* --- NIEUW: Specifieke stijlen voor de Welkomstkaart en Checklist --- */
.card-welcome {
    background-color: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    padding: 25px;
    border-radius: var(--app-radius-card);
    margin-bottom: 20px;
    text-align: left !important;
}

.card-welcome .card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.checklist-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #4a5568;
}

.checklist li:last-child { margin-bottom: 0; }

.checklist li i {
    color: #28a745;
    font-size: 1.1rem;
    margin-top: 2px;
}

.checklist li.warning i {
    color: #2c3e50;
    font-size: 1.2rem;
}

/* --- NIEUW: Groene Actieknop --- */
.button-success.button-new-schema {
    background-color: #28a745;
    color: white !important;
    border: none;
    border-radius: 50px; 
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.wizard-interaction-panel {
    background-color: var(--color-surface) !important;
    margin-top: 10px;
}

/* --- 8.4 ACCORDEON STYLING (Grijze balk hersteld) --- */
.accordion-uitleg {
    width: 100%;
    margin-bottom: 15px;
    border: none;
}

.button-accordion {
    list-style: none;
    background-color: #69686933; /* De grijze kleur */
    padding: 18px 20px;
    border-radius: var(--app-radius-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
}

.button-accordion::-webkit-details-marker { display: none; }

.button-accordion i {
    transition: transform 0.3s ease;
    color: #5f6c7b;
}

.accordion-uitleg[open] .button-accordion i { transform: rotate(180deg); }

.accordion-uitleg[open] .button-accordion {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-content {
    padding: 20px;
    text-align: left;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 var(--app-radius-card) var(--app-radius-card);
}

/* --- 8.3.1 SPECIFIEKE CARD STYLING --- */
.unfinished-schema-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    background-color: var(--app-card-bg-gray) !important;
}

.unfinished-schema-info {
    width: 100%;
    text-align: left;
}

.unfinished-schema-info p {
    margin: 0;
    font-size: 0.95rem;
}

.unfinished-schema-info p strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.unfinished-schema-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.unfinished-schema-actions .button-primary {
    flex: 1;
    justify-content: center;
    margin-bottom: 0;
    border-radius: 8px;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    line-height: 1;
}

.unfinished-schema-actions .button-danger-outline {
    width: 50px;
    flex-shrink: 0;
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
    height: 48px;
}

.schema-list {
    display: block;
}

/* --- 8.4 WIZARD OP MOBIEL --- */
.hide-on-mobile {
    display: none !important;
}

.g-schema-wizard, 
.wizard-canvas { 
    display: block;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.wizard-context-panel { 
    display: none; 
}

#interaction-content {
    padding: 15px;
}

.step-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

.step-title-container h2 {
    font-size: 1.4rem;
}

.transcript-message {
    max-width: 90%;
    font-size: 0.95rem;
}

input, textarea, button, select {
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
}

.ai-user-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: transparent;
}

.button-suggest {
    width: 100% !important;
    height: 50px !important;
    background-color: var(--color-warning) !important;
    margin-bottom: 15px !important;
    order: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.button-send-reply {
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    background-color: var(--color-primary) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important; 
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    line-height: 55px !important;
    order: 0 !important;
    border: none !important;
}

.button-send-reply span {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: white !important;
}

.button-send-reply::before,
.button-send-reply::after,
.button-send-reply i {
    display: none !important;
    content: none !important;
}

/* SETUP WIZARD FIXES (APP) */
.g-schema-setup-wizard {
    display: block; 
    min-height: auto;
}
.setup-container {
    padding: 25px;
    margin-top: 20px;
}
.setup-header {
    text-align: center;
}
.setup-header-icon {
    font-size: 2.5rem; 
    margin-bottom: 15px;
    color: var(--color-primary);
}
.setup-main-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.setup-intro {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}
.step-question-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    text-align: center; 
}
.setup-step {
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
}
.setup-step input[type="text"], 
.setup-step textarea {
    width: 100%;
    font-size: 16px;
    padding: 12px 15px;
    height: auto;
    text-align: center;
}
.setup-step button {
    height: 50px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* SPINNER */
.spinner-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.spinner-overlay.is-visible { opacity: 1; visibility: visible; }
.spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--