﻿.prompt-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.prompt-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sub-header label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
}

#lp-c.collapsible {
    max-height: 800px;
}

.button-group {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

/* layout.css (for den generelle knap-stil) */
.main-btn {
    width: 100%;
    padding: 14px;
    background: #2c3e50; /* var(--primary) */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* learningprompt.css (for placering i gruppen) */
#btn-run {
    flex-grow: 1;
    margin-top: 0;
}

/* learningprompt.css */

.prompt-stack textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 8px;
    resize: vertical;
    box-sizing: border-box; /* Kritisk for at undgå overflow */
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
}

/* Dashboard Flyout Base */
.dashboard-panel {
    position: fixed;
    z-index: 2000;
    width: 450px;
    max-height: 75vh;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    /* Animation transition */
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    /* Skjult tilstand (Animation start/slut) */
    .dashboard-panel.hidden-flyout {
        opacity: 0;
        transform: translateX(-30px) scale(0.98);
        pointer-events: none;
    }

/* Interne elementer */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fafafa;
    border-radius: 8px 8px 0 0;
}

.dash-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.dash-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 20px;
    background-color: #fdfdfd;
}

/* Individuelle kort i listen */
.dash-item {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .dash-item:hover {
        border-color: var(--primary, #3498db);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

.dash-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #333;
}

.dash-item-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    justify-content: space-between;
}

.dash-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}