@charset "UTF-8";
/* =====================================================================
   Chat + time tracker in the navbar (they used to float bottom-right).
   Same look as the notifications bell: 36px btn-icon-subtle, a small badge
   in the top-right corner. The chat window opens under the header.
   (File name kept from the floating version so the layout link stays.)
===================================================================== */

/* the button: wraps .btn.btn-icon-subtle like .nav-bell does */
.nav-tool { position: relative; display: inline-flex !important; align-items: center; padding: 0 !important; border: 0; background: transparent; }
.nav-tool .nav-tool-btn { display: grid !important; place-items: center; width: 36px; height: 36px; padding: 0 !important; }
.nav-tool:focus-visible { outline: none; }
.nav-tool:focus-visible .nav-tool-btn { box-shadow: 0 0 0 3px rgba(139, 92, 246, .35); }

/* open chat / running timer: tinted like a pressed toolbar button */
.nav-tool.is-open .nav-tool-btn,
.nav-tool.is-running .nav-tool-btn {
    color: #7c3aed !important;
    background: rgba(124, 58, 237, .12) !important;
}
html[data-app-theme="dark"] .nav-tool.is-open .nav-tool-btn,
html[data-app-theme="dark"] .nav-tool.is-running .nav-tool-btn {
    color: #c4b5fd !important;
    background: rgba(139, 92, 246, .22) !important;
}

/* running timer: a small green "live" dot where the bell shows its count */
.nav-tool .nav-tool-live {
    position: absolute;
    top: 1px;
    right: 0;
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px var(--d-bg, #fff);
    pointer-events: none;
}
html[data-app-theme="dark"] .nav-tool .nav-tool-live { box-shadow: 0 0 0 2px #120d22; }
.nav-tool.is-running .nav-tool-live { display: block; animation: nav-live 1.6s ease-in-out infinite; }
@keyframes nav-live { 50% { opacity: .35; } }
html.perf-lite .nav-tool.is-running .nav-tool-live { animation: none; }

/* chat window: under the header, at the right */
.chat-iframe-container {
    top: 78px !important;
    right: 18px !important;
    bottom: auto !important;
    width: 370px !important;
    height: min(560px, calc(100vh - 96px)) !important;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 18px;
    background: var(--d-bg, #fff);
    box-shadow: 0 24px 60px -20px rgba(40, 20, 90, .45) !important;
    transform-origin: top right;
    animation: chat-in .18s ease-out;
}
html[data-app-theme="dark"] .chat-iframe-container {
    border-color: rgba(196, 181, 253, .2);
    background: #17122a;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75) !important;
}
.chat-iframe-container .chat-iframe { width: 100%; height: 100%; border: 0; border-radius: 0; }
@keyframes chat-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

@media (max-width: 575.98px) {
    .chat-iframe-container {
        top: 68px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        height: calc(100vh - 80px) !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .chat-iframe-container, .nav-tool.is-running .nav-tool-live { animation: none; }
}

/* phones: chat + timer + effects made the icon row ~55px too wide; drop the gaps between icons */
@media (max-width: 575.98px) {
    .layout-navbar .navbar-nav-right .navbar-nav > .nav-item { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; }
    .layout-navbar .navbar-nav-right .navbar-nav > .nav-item .nav-link { padding-left: 2px !important; padding-right: 2px !important; }
    /* search: keep the magnifier, drop the word; the click target covers the whole box */
    .layout-navbar #navbar-collapse > .nav-item:first-child { position: relative; flex: none; }
    .layout-navbar #global-search { position: absolute; inset: -6px; margin: 0 !important; overflow: hidden; color: transparent !important; font-size: 0 !important; }
}

/* ---------------------------------------------------------------------
   Header menus (profile, notifications, language): solid, not see-through
--------------------------------------------------------------------- */
.layout-navbar .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(124, 58, 237, .14) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px -18px rgba(40, 20, 90, .35), 0 2px 6px rgba(40, 20, 90, .06) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html[data-app-theme="dark"] .layout-navbar .dropdown-menu {
    background: #1a1430 !important;
    border-color: rgba(196, 181, 253, .16) !important;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8) !important;
}

/* profile menu */
.nav-profile-menu { min-width: 280px; padding: 8px !important; }
.nav-profile-menu .dropdown-item { display: flex; align-items: center; gap: 2px; min-height: 40px; border-radius: 10px; }
.nav-profile-menu .dropdown-divider { margin: 6px 4px; }
.nav-menu-row { width: 100%; border: 0; background: transparent; text-align: start; }
.nav-menu-row > .align-middle, .nav-row-text { flex: 1; min-width: 0; }
.nav-row-icon { flex: none; margin-inline-end: .5rem; }
.nav-row-text { display: grid; line-height: 1.2; }
.nav-row-text small { color: var(--bs-secondary-color, #8a87a0); font-size: .72rem; }
.nav-menu-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; color: #fff; background: #e8930c; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center; }

/* switches (state from aria-pressed, kept by dark-mode.js) */
.nav-switch { position: relative; flex: none; width: 36px; height: 20px; border-radius: 99px; background: rgba(120, 113, 150, .35); transition: background .2s ease; }
.nav-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.nav-switch-row[aria-pressed="true"] .nav-switch { background: #7c3aed; }
.nav-switch-row[aria-pressed="true"] .nav-switch::after { transform: translateX(16px); }
[dir="rtl"] .nav-switch-row[aria-pressed="true"] .nav-switch::after { transform: translateX(-16px); }
.nav-switch-row:focus-visible { outline: 2px solid #8b5cf6; outline-offset: -2px; }
/* visual effects row: Full / Light under the label; the old icon-button tint does not apply here */
.nav-profile-menu .fx-toggle.is-full { color: inherit; }
.nav-fx-state::after { content: attr(data-off); }
.fx-toggle.is-full .nav-fx-state::after { content: attr(data-on); }

/* unread announcements: dot on the avatar */
.nav-profile-toggle { position: relative; }
.nav-profile-dot { position: absolute; top: 2px; right: 2px; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: #e8930c; box-shadow: 0 0 0 2px #fff; }
html[data-app-theme="dark"] .nav-profile-dot { box-shadow: 0 0 0 2px #1a1430; }
/* one icon column for every row (boxicons and lucide alike) */
.nav-profile-menu .dropdown-item > i.bx:first-child { flex: none; width: 18px; margin-inline-end: .75rem !important; font-size: 18px; text-align: center; }
.nav-profile-menu .nav-row-icon { width: 18px; margin-inline-end: 0; }

/* ---------------------------------------------------------------------
   Time tracker popup (#timerModal, modals.blade.php); qop-modal base from sidebar.css
--------------------------------------------------------------------- */
.tt-modal .modal-dialog { max-width: 460px; }
.tt-status { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--qop-muted, #7a7491); font-size: .78rem; font-weight: 600; }
.tt-dot { width: 8px; height: 8px; border-radius: 50%; background: #a19cb5; }
.tt-modal[data-state="running"] .tt-status { color: #1fa971; }
.tt-modal[data-state="running"] .tt-dot { background: #22c55e; animation: tt-blink 1.4s ease-in-out infinite; }
.tt-modal[data-state="paused"] .tt-status { color: #e8930c; }
.tt-modal[data-state="paused"] .tt-dot { background: #e8930c; }
@keyframes tt-blink { 50% { opacity: .3; } }
html.perf-lite .tt-dot { animation: none !important; }

/* the clock */
.tt-clock {
    display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 4px 0 18px; padding: 18px 10px 14px;
    border-radius: 18px; background: linear-gradient(160deg, rgba(139, 92, 246, .12), rgba(139, 92, 246, .04));
    border: 1px solid rgba(139, 92, 246, .18);
}
html[data-app-theme="dark"] .tt-clock { background: linear-gradient(160deg, rgba(139, 92, 246, .2), rgba(139, 92, 246, .06)); border-color: rgba(196, 181, 253, .18); }
.tt-unit { display: grid; justify-items: center; gap: 4px; margin: 0; cursor: default; }
.tt-unit input {
    width: 2.6ch; padding: 0; border: 0; background: transparent; outline: none; pointer-events: none;
    color: var(--qop-title, #17142a); font-size: 2.9rem; font-weight: 800; line-height: 1; text-align: center;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
html[data-app-theme="dark"] .tt-unit input { color: #f4f1ff; }
.tt-modal[data-state="running"] .tt-unit input { color: #7c3aed; }
html[data-app-theme="dark"] .tt-modal[data-state="running"] .tt-unit input { color: #c4b5fd; }
.tt-unit small { color: var(--qop-muted, #7a7491); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tt-colon { padding-top: .2rem; color: var(--qop-muted, #a19cb5); font-size: 2.2rem; font-weight: 700; line-height: 1; opacity: .6; }

/* controls */
.tt-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.tt-btn { display: inline-grid; place-items: center; border: 0; transition: transform .12s ease, opacity .15s ease, background .15s ease; }
.tt-btn:not(:disabled):hover { transform: translateY(-1px); }
.tt-btn:not(:disabled):active { transform: scale(.97); }
.tt-btn:disabled { opacity: .35; cursor: not-allowed; }
.tt-btn:focus-visible { outline: 3px solid rgba(139, 92, 246, .45); outline-offset: 2px; }
.tt-start {
    display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 99px;
    color: #fff; background: linear-gradient(160deg, #8b5cf6, #6d28d9); box-shadow: 0 12px 24px -10px rgba(109, 40, 217, .8);
    font-size: 1rem; font-weight: 700;
}
.tt-start i { font-size: 1.5rem; }
.tt-pause, .tt-stop { width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; }
.tt-pause { color: #b45309; background: rgba(232, 147, 12, .14); }
.tt-stop { color: #dc2626; background: rgba(229, 72, 77, .12); }
html[data-app-theme="dark"] .tt-pause { color: #fbbf24; background: rgba(232, 147, 12, .18); }
html[data-app-theme="dark"] .tt-stop { color: #f87171; background: rgba(229, 72, 77, .18); }

/* fields */
.tt-fields { display: grid; gap: 12px; }
.tt-fields .qop-field { margin: 0; }
.tt-fields .qop-label small { opacity: .7; font-weight: 500; }
.tt-row { display: flex; gap: 12px; }
.tt-row > .qop-field { flex: 1; min-width: 0; }
.tt-fields textarea { min-height: 64px; resize: vertical; }
.tt-modal .qop-foot { justify-content: space-between; }
.tt-modal .qop-foot .tt-sheet { margin-inline-end: auto; text-decoration: none; }

/* stop confirm */
.tt-stop-icon { color: #fff !important; background: linear-gradient(160deg, #ef5a5f, #c9353b) !important; }
.tt-stop-text { margin: 0; color: var(--qop-text, #4b4566); font-size: .9rem; }

@media (max-width: 575.98px) {
    .tt-unit input { font-size: 2.3rem; }
    .tt-row { flex-direction: column; }
    .tt-modal .qop-foot { flex-wrap: wrap; }
}
/* app-wide input / button rules win otherwise */
.tt-modal .tt-unit input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.tt-modal .tt-pause { background: rgba(232, 147, 12, .14) !important; }
.tt-modal .tt-stop { background: rgba(229, 72, 77, .12) !important; }
html[data-app-theme="dark"] .tt-modal .tt-pause { background: rgba(232, 147, 12, .2) !important; }
html[data-app-theme="dark"] .tt-modal .tt-stop { background: rgba(229, 72, 77, .2) !important; }
.tt-modal .tt-btn:disabled { opacity: .45; }
/* select2 fields look like the other fields */
.tt-modal .select2-container .select2-selection--single {
    height: 42px; border-radius: 12px; border: 1px solid rgba(124, 58, 237, .18); background: var(--qop-field, #f4f1fb);
}
.tt-modal .select2-container .select2-selection--single .select2-selection__rendered { padding-inline: 12px 32px; line-height: 40px; color: var(--qop-title, #17142a); }
.tt-modal .select2-container .select2-selection__placeholder { color: var(--qop-muted, #8a87a0); }
.tt-modal .select2-container .select2-selection__arrow { height: 40px; right: 8px; }
html[data-app-theme="dark"] .tt-modal .select2-container .select2-selection--single { background: rgba(255, 255, 255, .05); border-color: rgba(196, 181, 253, .18); }
html[data-app-theme="dark"] .tt-modal .select2-container .select2-selection--single .select2-selection__rendered { color: #ecebf3; }
/* custom.css: '#start[disabled], #end[disabled], #pause[disabled] { background: none !important }' */
.tt-modal #pause.tt-pause, .tt-modal #pause.tt-pause[disabled] { background: rgba(232, 147, 12, .14) !important; color: #b45309 !important; }
.tt-modal #end.tt-stop, .tt-modal #end.tt-stop[disabled] { background: rgba(229, 72, 77, .12) !important; color: #dc2626 !important; }
.tt-modal #start.tt-start[disabled] { background: linear-gradient(160deg, #8b5cf6, #6d28d9) !important; color: #fff !important; }
html[data-app-theme="dark"] .tt-modal #pause.tt-pause, html[data-app-theme="dark"] .tt-modal #pause.tt-pause[disabled] { background: rgba(232, 147, 12, .2) !important; color: #fbbf24 !important; }
html[data-app-theme="dark"] .tt-modal #end.tt-stop, html[data-app-theme="dark"] .tt-modal #end.tt-stop[disabled] { background: rgba(229, 72, 77, .2) !important; color: #f87171 !important; }
/* dark-mode.css restyles every select2 box */
.tt-modal .select2-container--default .select2-selection--single { height: 42px !important; border: 1px solid rgba(124, 58, 237, .18) !important; border-radius: 12px !important; background: var(--qop-field, #f4f1fb) !important; }
html[data-app-theme="dark"] .tt-modal .select2-container--default .select2-selection--single { background: rgba(255, 255, 255, .05) !important; border-color: rgba(196, 181, 253, .18) !important; }
.tt-modal .select2-container--default .select2-selection--single .select2-selection__rendered { background: transparent !important; }
/* the select2 container itself gets a field look from elsewhere: only the inner box should */
/* (an app rule uses :not(#global-search + …), i.e. id weight: anchor on #timerModal to win) */
#timerModal .qop-field .select2.select2-container.select2-container--default,
html[data-app-theme="dark"] #timerModal .qop-field .select2.select2-container.select2-container--default {
    min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
}
