/* fileName: css/ai-features.css */

/* --- TOAST NOTIFICATIONS (Ersetzt alert()) --- */
.ai-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    border-left: 5px solid #7c4dff; /* Accent Color */
}

.ai-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.ai-toast.error { border-color: #d32f2f; background-color: #252525; }
.ai-toast.success { border-color: #43a047; background-color: #252525; }

/* --- PROGRESS BAR (AI Pipeline) --- */
.ai-progress-wrapper {
    width: 100%;
    background-color: #333;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
    overflow: hidden;
    height: 24px;
    border: 1px solid #444;
}

.ai-progress-bar {
    width: 0%;
    height: 100%;
    background-color: #3d5afe;
    text-align: center;
    line-height: 24px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: width 0.5s ease-out;
    white-space: nowrap;
    overflow: hidden;
}

/* Status Text unter dem Balken */
.ai-status-text {
    font-size: 0.9em;
    color: #888;
    margin-top: 4px;
    font-style: italic;
    min-height: 1.2em;
}

/* --- HYPER-TRANSCRIPT (Klickbare Zeitstempel) --- */
.ts-link {
    color: #7c4dff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    padding: 2px 6px;
    background-color: rgba(124, 77, 255, 0.1);
    transition: all 0.2s;
    font-family: monospace;
    display: inline-block;
    margin-right: 5px;
}

.ts-link:hover {
    background-color: #7c4dff;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- MAGIC SEARCH DROPDOWN (Autocomplete) --- */
.magic-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    margin-top: 2px;
}

/* Scrollbar für Dropdown */
.magic-suggestions::-webkit-scrollbar { width: 6px; }
.magic-suggestions::-webkit-scrollbar-track { background: #1e1e1e; }
.magic-suggestions::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #e0e0e0;
    transition: background 0.1s;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.selected {
    background-color: #3d5afe;
    color: white;
}

/* Icon im Dropdown (Uhr oder History) */
.suggestion-icon {
    font-size: 1.1rem;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

/* Text Inhalt */
.suggestion-content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Zeitangabe rechts */
.suggestion-time {
    font-family: monospace;
    font-size: 0.85rem;
    opacity: 0.6;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.suggestion-item:hover .suggestion-time {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* Typen-Unterscheidung */
.type-history .suggestion-icon { content: '🕒'; } /* History Item */
.type-chapter .suggestion-icon { content: '📑'; } /* Protokoll Kapitel */