/* Termin-Kalender Smart Setup page (AI category generator)
   [TK-CLEANUP] C: moved from includes/admin_page_initial_setup.php (inline <style>) */
.ter-kal-generator-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.ter-kal-generator-card .card-header { text-align: center; }
.ter-kal-setup-h4 { margin-bottom: 5px; }
.ter-kal-setup-intro { margin-bottom: 15px; }

/* Inspiration <details> */
.ter-kal-inspiration-details {
    margin-bottom: 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 10px;
    background: #fafafa;
}
.ter-kal-inspiration-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2271b1;
    display: flex;
    align-items: center;
    gap: 5px;
    outline: none;
    list-style: none;
}
.ter-kal-inspiration-details summary::-webkit-details-marker { display: none; }
.ter-kal-inspiration-details summary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}
.ter-kal-inspiration-body { margin-top: 15px; }
.ter-kal-inspiration-body p { margin: 0 0 10px 0; }
.ter-kal-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.ter-kal-example-btn { font-size: 12px; }

/* Input */
.ter-kal-business-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    resize: vertical;
    margin-top: 8px;
    box-sizing: border-box;
}
.ter-kal-char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.ter-kal-char-warn { color: #dba617; }
.ter-kal-char-over { color: #d63638; }
#ter-kal-error-message p { margin: 0.5em 0; }

/* Actions */
.ter-kal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.ter-kal-generate-btn { font-size: 16px; padding: 0 30px; }
.ter-kal-usage-info {
    margin: 0;
    padding: 10px;
    font-size: 13px;
}
.ter-kal-usage-info .dashicons { vertical-align: middle; margin-right: 4px; }
.ter-kal-usage-info .dashicons-yes-alt { color: #00a32a; }

/* Results */
.ter-kal-results { margin-top: 40px; }
.ter-kal-results-divider { margin-bottom: 20px; border-top: 2px dashed #ccc; }
.ter-kal-results-intro { margin-bottom: 20px; }
.ter-kal-results-columns { display: flex; flex-wrap: wrap; gap: 30px; }
.ter-kal-results-column { flex: 1; min-width: 300px; }
.ter-kal-results-column h4 { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
.ter-kal-results-column-new h4 { color: #00a32a; }
.ter-kal-results-column-existing h4 { color: #2271b1; }
.ter-kal-categories-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ter-kal-category-tip { margin-top: 15px; }
.ter-kal-category-tip p { margin: 0; color: #50575e; }
.ter-kal-result-actions { display: flex; gap: 10px; margin-top: 30px; }
.ter-kal-result-actions .button-hero { font-size: 16px; }
.ter-kal-remaining {
    margin-top: 15px;
    padding: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}
.ter-kal-recommendation { margin-top: 20px; }

/* Category preview + selection */
.ter-kal-category-wrapper { display: flex; align-items: center; gap: 8px; }
.ter-kal-category-checkbox { margin: 0; cursor: pointer; }
.ter-kal-category-preview {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ter-kal-category-preview .dashicons { width: 20px; height: 20px; font-size: 20px; }
.ter-kal-category-wrapper:has(.ter-kal-category-checkbox:not(:checked)) .ter-kal-category-preview { opacity: 0.4; }
.ter-kal-category-wrapper:has(.ter-kal-category-checkbox:not(:checked)) .ter-kal-category-preview:hover { opacity: 0.6; }
.button-success {
    background: #00a32a !important;
    border-color: #00a32a !important;
    color: #fff !important;
}

/* AI progress indicator */
.ter-kal-ai-progress { margin: 10px 0; flex-basis: 100%; }
.ter-kal-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.ter-kal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}
.ter-kal-progress-status { font-size: 13px; color: #646970; font-style: italic; }