/* ── Sidebar Navigation Group Headers ─────────────────────────────── */

/* Group header row */
.fi-sidebar-group-btn {
    display: flex !important;
    align-items: center !important;
    padding: 4px 0 8px !important;
    margin-bottom: 2px !important;
    border-bottom: 1.5px solid #1e293b !important;
    gap: 8px !important;
    cursor: pointer !important;
}

/* Label text — uppercase, bold, smaller */
.fi-sidebar-group-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    flex: 1 !important;
    line-height: 1 !important;
}

/* Collapse chevron button — align right */
.fi-sidebar-group-collapse-btn {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    color: #475569 !important;
}

/* Group spacing */
.fi-sidebar-group {
    padding-top: 8px !important;
}

/* ── Light mode ────────────────────────────────────────────────────── */
html:not(.dark) .fi-sidebar-group-btn {
    border-bottom-color: #e2e8f0 !important;
}

html:not(.dark) .fi-sidebar-group-label {
    color: #64748b !important;
}

/* ── Sidebar Collapse — Narrow Mode ─────────────────────────────── */

/* Smooth width transition on the sidebar */
.fi-sidebar {
    transition: width 0.22s ease, min-width 0.22s ease !important;
    overflow: hidden !important;
}

/* Collapse to icon-only width when store.sidebar.isOpen is false */
.fi-sidebar:not(.fi-sidebar-open) {
    width: 64px !important;
    min-width: 64px !important;
}

/* Center icons in collapsed state, remove side padding */
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide item text labels when collapsed */
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-label {
    display: none !important;
}

/* Hide group header text & collapse chevron, remove bottom border */
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-label,
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-collapse-btn {
    display: none !important;
}

.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-btn {
    border-bottom: none !important;
    justify-content: center !important;
    padding: 4px 0 4px !important;
}

/* Hide the Filament topbar collapse toggle — our button lives inside the sidebar */
.fi-topbar-collapse-sidebar-btn-ctn {
    display: none !important;
}

/* Push nav content up so last items aren't hidden behind the fixed collapse bar */
.fi-sidebar-nav {
    padding-bottom: 48px !important;
}

/* ── Custom Sidebar Toggle Button ────────────────────────────────── */

.sidebar-toggle-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 20rem;
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    border-top: 1px solid rgba(30, 41, 59, 0.6);
    background: #0f172a;
    z-index: 30;
    transition: width 0.22s ease;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-collapse-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    opacity: 0.6;
}

.sidebar-toggle-btn:hover {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}

/* Open state: left chevron + text visible, right chevron hidden */
.sidebar-chevron-right { display: none !important; }

/* Collapsed state: right chevron visible, left chevron + text hidden; button + wrap centered */
.fi-sidebar:not(.fi-sidebar-open) .sidebar-chevron-left   { display: none !important; }
.fi-sidebar:not(.fi-sidebar-open) .sidebar-chevron-right  { display: block !important; }
.fi-sidebar:not(.fi-sidebar-open) .sidebar-collapse-text  { display: none !important; }
.fi-sidebar:not(.fi-sidebar-open) .sidebar-toggle-wrap    { width: 64px !important; justify-content: center !important; }
.fi-sidebar:not(.fi-sidebar-open) .sidebar-toggle-btn     { padding: 6px !important; }
html:not(.dark) .fi-sidebar:not(.fi-sidebar-open) .sidebar-toggle-wrap { background: #ffffff !important; }

/* Light mode adjustments */
html:not(.dark) .sidebar-toggle-wrap {
    border-top-color: rgba(226, 232, 240, 0.8);
    background: #f8fafc;
}

html:not(.dark) .sidebar-toggle-btn {
    color: #94a3b8;
}

html:not(.dark) .sidebar-toggle-btn:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

/* ── Floating Clock Widget ───────────────────────────────────────── */

.fc-card {
    width: 220px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: visible;
    position: relative;
}

.fc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.fc-pill-active  { background: #064e3b; border: 1px solid #10b981; color: #6ee7b7; }
.fc-pill-break   { background: #451a03; border: 1px solid #f59e0b; color: #fcd34d; }

.fc-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fc-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fc-dot-active { background: #10b981; box-shadow: 0 0 6px #10b981; }
.fc-dot-break  { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.fc-status-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
}

.fc-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.fc-icon-btn:hover { background: rgba(255,255,255,0.07); color: #94a3b8; }

.fc-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.fc-notif-panel {
    position: absolute;
    top: 44px; right: 0;
    width: 220px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 60;
    overflow: hidden;
}

.fc-notif-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    text-decoration: none;
    transition: background .12s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fc-notif-item:last-child { border-bottom: none; }
.fc-notif-item:hover { background: rgba(255,255,255,0.05); }

.fc-notif-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fc-notif-count {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}

.fc-body {
    padding: 12px 14px 10px;
    text-align: center;
}

.fc-time {
    font-size: 26px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.fc-elapsed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.fc-elapsed-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.fc-elapsed-val   { font-size: 11px; font-weight: 700; color: #cbd5e1; font-variant-numeric: tabular-nums; }

.fc-actions {
    display: flex;
    gap: 6px;
    padding: 0 10px 10px;
}

.fc-btn {
    flex: 1;
    padding: 7px 0;
    border-radius: 7px;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    letter-spacing: .02em;
}
.fc-btn:hover { opacity: .85; }
.fc-btn:active { opacity: .7; }

.fc-btn-break     { background: rgba(245,158,11,.15); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.fc-btn-break-end { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.fc-btn-out       { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
