/* Dark friendly styles */
#ailh-app { font-family: system-ui, sans-serif; color:#f8fafc; line-height:1.5; }
#ailh-app .ailh-form label { display:block; margin:.75rem 0 .25rem; font-weight:600; color:#e2e8f0; }
#ailh-app textarea, #ailh-app input, #ailh-app select { width:100%; padding:.5rem; border:1px solid #475569; border-radius:6px; background:#1e293b; color:#f1f5f9; }
#ailh-app button.button-primary { margin-top:1rem; background:#38bdf8; border:none; color:#0f172a; padding:.6rem 1.2rem; border-radius:6px; cursor:pointer; transition:.2s; }
#ailh-app button.button-primary:hover { background:#0ea5e9; color:#fff; }
#ailh-app section { margin:1rem 0; padding:1rem; border:1px solid #334155; border-radius:8px; background:#0f172a; box-shadow:0 2px 6px rgba(0,0,0,.4); }
#ailh-app h3 { margin:0 0 .75rem 0; font-size:1rem; font-weight:700; color:#f1f5f9; }
#ailh-app li { padding:.3rem 0; border-bottom:1px dashed #334155; }
#ailh-app li:last-child { border-bottom:none; }
#ailh-app li button { margin-left:.5rem; padding:.25rem .5rem; font-size:.85rem; background:#1e293b; color:#f8fafc; border:1px solid #475569; border-radius:4px; cursor:pointer; }
#ailh-app li button:hover { background:#334155; }
#ailh-app pre { white-space:pre-wrap; background:#1e293b; padding:.75rem; border-radius:6px; border:1px solid #475569; color:#f8fafc; font-size:.95rem; }
#ailh-app .chip { display:inline-block; background:#38bdf8; color:#0f172a; padding:.25rem .6rem; margin:.2rem; border-radius:9999px; font-size:.85rem; font-weight:600; }
#ailh-app section button { margin-top:.5rem; background:#1e293b; color:#f8fafc; border:1px solid #475569; padding:.4rem .8rem; border-radius:4px; cursor:pointer; }
#ailh-app section button:hover { background:#334155; }

#ailh-account { font-family: system-ui, sans-serif; color:#f8fafc; }
#ailh-account .button { background:#38bdf8; border:none; color:#0f172a; padding:.6rem 1.2rem; border-radius:6px; margin-right:.5rem; }
#ailh-account .button:hover { background:#0ea5e9; color:#fff; }


/* style.css */

/* ### NEU: Styling für gespeicherte Ergebnisse / Akkordeon ### */
.ailh-accordion {
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
}

.ailh-accordion-item {
    border-bottom: 1px solid #334155;
}
.ailh-accordion-item:last-child {
    border-bottom: none;
}

.ailh-accordion-header {
    background-color: #1e293b;
    color: #f1f5f9;
    cursor: pointer;
    padding: 12px 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
}

.ailh-accordion-item.active .ailh-accordion-header,
.ailh-accordion-header:hover {
    background-color: #334155;
}

.ailh-accordion-title {
    flex-grow: 1;
    font-weight: bold;
}

.ailh-accordion-meta {
    font-size: 0.85em;
    color: #94a3b8;
    margin: 0 16px;
}

.ailh-accordion-icon {
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.ailh-accordion-item.active .ailh-accordion-icon {
    transform: rotate(45deg);
}

.ailh-accordion-content {
    background-color: #0f172a;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
    padding: 0 18px;
    color: #cbd5e1;
}

.ailh-accordion-content h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #60a5fa;
}

.ailh-accordion-content ul {
    list-style-type: disc;
    padding-left: 20px;
}
.ailh-accordion-content p, .ailh-accordion-content li {
    line-height: 1.6;
}

.ailh-tags {
    background: #1e293b;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #94a3b8;
}

/* Zentrierung für die Überschrift und den Button der Nutzungs-Tabelle */
.ailh-usage h3 {
    text-align: center; /* Zentriert den Text innerhalb der Überschrift */
}

.ailh-usage form {
    text-align: center; /* Zentriert den Inhalt des Formulars, also den Button */
}

/* Zentrierung für die Überschrift der gespeicherten Listings */
.ailh-my-results h3 {
    text-align: center;
}