/* Floating Dashboard Button - Glassmorphic Pill */
.dashboard-float-container {
    position: fixed;
    top: var(--s-4);
    /* Physically below the header bar (approx 64px + gap) */
    left: var(--s-4);
    z-index: 1000;
    /* High z-index to stay above everything */
}

.btn-dashboard-float {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);

    /* High Contrast Widget Style */
    background: #111827;
    /* Force Solid Dark Background (var(--ink) in light mode) */
    border: 2px solid var(--teal);
    /* Strong Accent Border */
    border-radius: var(--r-pill);

    color: #FFFFFF;
    /* Force White Text */
    font-size: var(--text-sm);
    font-weight: 700;
    /* Bolder text */
    cursor: pointer;

    /* Strong Lift Shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    transition: all var(--dur-normal) var(--ease-out);

    /* Hints */
    position: relative;
    overflow: hidden;
    z-index: 1001;
    /* Ensure top of stack */
}

/* Subtle inner glow/pulse */
.btn-dashboard-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%,
            rgba(78, 205, 196, 0.15) 0%,
            transparent 70%);
    opacity: 0.6;
    transition: opacity var(--dur-normal);
}

.btn-dashboard-float:hover {
    transform: translateY(-2px);
    background: #1F2937;
    /* Lighter Dark for Hover */
    box-shadow:
        0 8px 20px -3px rgba(0, 0, 0, 0.5),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--teal) inset;
    /* Glow border */
    color: var(--teal);
}

.btn-dashboard-float:hover::before {
    opacity: 1;
}

.btn-dashboard-float:active {
    transform: translateY(0);
}

.dashboard-icon {
    font-size: 1.25em;
    line-height: 1;
}

/* Container for both buttons */
.dashboard-buttons-container {
    position: fixed;
    top: var(--s-4);
    left: var(--s-4);
    z-index: 1000;
    display: flex;
    gap: var(--s-2);
}

/* Remove position from individual button since container handles it */
.dashboard-float-container {
    position: static;
    z-index: auto;
}

/* New Conversation button - inherits from btn-dashboard-float */
.btn-new-conversation {
    /* Uses same base styles via btn-dashboard-float class */
}

/* Below 900px the fixed pills overlap the header's own controls: they sit in
   the same 16-58px band as Sign Out and win on z-index, hiding it. The header
   owns that row, so the pills rejoin the flow underneath it and split the
   width evenly rather than being pinned left. */
@media (max-width: 900px) {
    .dashboard-buttons-container {
        position: static;
        padding: var(--s-2) var(--s-3) 0;
        gap: var(--s-2);
    }

    .btn-dashboard-float {
        flex: 1;
        justify-content: center;
        padding: var(--s-2) var(--s-3);
        white-space: nowrap;
    }
}