/* ================================================
   LLM Tools – Toolbar Styles
   ================================================ */

.llmt-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    position: relative;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.llmt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    color: #444746;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.llmt-btn:hover {
    background: #f1f3f4;
    color: #1a73e8;
    text-decoration: none;
}

.llmt-btn:active {
    background: #e8f0fe;
}

.llmt-btn svg {
    flex-shrink: 0;
    color: currentColor;
}

/* Copied state */
.llmt-btn.copied {
    color: #188038;
    background: #e6f4ea;
}

/* ── Divider ── */
.llmt-divider {
    width: 1px;
    height: 20px;
    background: #dadce0;
    margin: 0 2px;
    flex-shrink: 0;
}

/* ── Toast / Feedback message ── */
.llmt-toast {
    font-size: 12px;
    color: #188038;
    font-weight: 500;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.llmt-toast.visible {
    opacity: 1;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
    .llmt-toolbar {
        background: #2a2b2e;
        border-color: #444746;
        box-shadow: 0 1px 3px rgba(0,0,0,.3);
    }

    .llmt-btn {
        color: #bdc1c6;
    }

    .llmt-btn:hover {
        background: #3c4043;
        color: #8ab4f8;
    }

    .llmt-btn:active {
        background: #394457;
    }

    .llmt-divider {
        background: #444746;
    }

    .llmt-toast {
        color: #81c995;
    }

    .llmt-btn.copied {
        background: #1e3a28;
        color: #81c995;
    }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .llmt-toolbar {
        width: 100%;
        box-sizing: border-box;
    }

    .llmt-btn-label {
        display: none;
    }

    .llmt-btn {
        padding: 8px;
    }
}
