/* Session 58: shared dashboard + calendar toolbar styles + cursor-tip.
 * Extracted from dashboard.blade.php's <style> block so both /admin/dashboard
 * and /admin/calendar render the toolbar in a single horizontal row and share
 * one cursor-following tooltip. Loaded via Filament panel asset registration. */

/* Session 50: dashboard calendar toolbar */
.dash-cal-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
}
.dash-cal-toolbar-teams,
.dash-cal-toolbar-toggle,
.dash-cal-toolbar-regions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dash-cal-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: rgb(71 85 105);
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    padding: 0;
}
.dash-cal-toolbar-btn:hover {
    border-color: rgb(245 158 11);
    background: #fffbeb;
}
.dash-cal-toolbar-btn:active {
    transform: scale(0.95);
}
.dash-cal-toolbar-btn.is-active {
    border-color: rgb(245 158 11);
    background: rgb(245 158 11);
    color: white;
}
.dash-cal-toolbar-btn svg {
    width: 18px;
    height: 18px;
}
.dash-cal-toolbar-clear {
    color: rgb(244 63 94);
    font-weight: 500;
}
.dash-cal-toolbar-clear:hover {
    border-color: rgb(244 63 94);
    background: #fef2f2;
}
.dash-cal-toolbar-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
}
.dash-cal-toolbar-legend .gantt-legend-swatch {
    cursor: default;
}

/* Session 50: cursor-following tooltip */
.cursor-tip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: rgb(15 23 42);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.1s;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    left: 0;
    top: 0;
}
.cursor-tip.is-visible {
    opacity: 1;
}
