/* base.css: global styles, header, variables — Squaroe Workspace
   Extracted from inline <style> blocks on 2026-11-22. */

:root {
            --brand-navy: #0f1628;
            --brand-yellow: #fcb900;
            --brand-yellow-hover: #e0a500;
            --brand-bg-light: #f4f6f9;
        }

        body {
            background-color: var(--brand-bg-light);
            color: var(--brand-navy);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Branding Buttons & Accents */
        .bg-brand-navy { background-color: var(--brand-navy) !important; }
        .text-brand-yellow { color: var(--brand-yellow) !important; }
        
        /* Realistic Biometric Thumb Scanner */
        .header-scanner {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid var(--dynamic-color, var(--scanner-color));
            background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.3));
            box-shadow: 0 0 12px var(--dynamic-glow, var(--scanner-glow)), inset 0 0 10px rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            user-select: none;
        }
        .header-scanner img {
            width: 28px;
            height: 28px;
            opacity: 0.9;
            filter: invert(1) drop-shadow(0px 0px 3px var(--dynamic-color, var(--scanner-color)));
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }
        .header-scanner:active { transform: scale(0.92); box-shadow: 0 0 5px var(--dynamic-glow, var(--scanner-glow)); }
        
        .scan-wave {
            position: absolute;
            bottom: 0; left: 0; width: 100%; height: 0%;
            background-color: var(--dynamic-wave, var(--wave-color));
            transition: height 1s linear;
            z-index: 1;
        }
        .header-scanner.scanning .scan-wave { height: 100%; }

        /* User Dropdown Avatar */
        .user-avatar {
            width: 38px;
            height: 38px;
            background-color: var(--brand-yellow);
            color: var(--brand-navy);
            font-weight: 800;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        /* Header live clock (India time) */
        .header-clock {
            display: flex; align-items: center; gap: 12px;
            padding: 6px 16px 6px 12px;
          
            line-height: 1.15;
        }
        .header-clock .hc-icon {
            width: 34px; height: 34px; border-radius: 9px;
            background: transparent;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .header-clock .hc-time {
            font-size: 18px; font-weight: 700; color: #fff;
            font-variant-numeric: tabular-nums; letter-spacing: 0.5px;
        }
        .header-clock .hc-time small {
            font-size: 11px; font-weight: 700; color: var(--brand-yellow); margin-left: 4px;
        }
        .header-clock .hc-date {
            font-size: 12px; color: rgba(255,255,255,0.65); white-space: nowrap;
        }
        .header-clock .hc-date b { color: var(--brand-yellow); font-weight: 600; }
        @media (max-width: 991.98px) { .header-clock { margin: 8px 0; } }

        /* ===== Toast notifications ===== */
        #toastStack { position: fixed; top: 76px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
        .sq-toast { --tc: #fcb900; position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 40px 16px 16px; border-radius: 14px; overflow: hidden; pointer-events: auto;
            background: linear-gradient(135deg, #1a2338 0%, #0f1628 100%); color: #fff; border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 14px 34px rgba(0,0,0,0.38), 0 0 0 1px rgba(0,0,0,0.2), 0 0 24px -6px var(--tc);
            transform: translateX(120%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1.1), opacity .35s ease; }
        .sq-toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc); }
        .sq-toast.show { transform: translateX(0); opacity: 1; }
        .sq-toast.hide { transform: translateX(120%); opacity: 0; }
        .sq-toast .t-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 55%, transparent); }
        .sq-toast .t-ico svg { width: 22px; height: 22px; }
        .sq-toast .t-title { font-weight: 700; font-size: 15px; letter-spacing: .2px; line-height: 1.25; }
        .sq-toast .t-msg { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 3px; line-height: 1.4; }
        .sq-toast .t-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: rgba(255,255,255,.45); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }
        .sq-toast .t-close:hover { color: #fff; }
        .sq-toast .t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tc); transform-origin: left; animation: tbar var(--dur, 4500ms) linear forwards; opacity: .9; }
        @keyframes tbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
        .sq-toast.t-in { --tc: #22c55e; } .sq-toast.t-out { --tc: #ef4444; } .sq-toast.t-error { --tc: #f97316; }
        .sq-toast.t-login { --tc: #fcb900; } .sq-toast.t-logout { --tc: #94a3b8; } .sq-toast.t-create { --tc: #22c55e; } .sq-toast.t-edit { --tc: #3b82f6; } .sq-toast.t-status { --tc: #a855f7; } .sq-toast.t-delete { --tc: #ef4444; }
        @media (max-width: 575.98px) { #toastStack { top: 70px; right: 16px; left: 16px; width: auto; max-width: none; } }
        /* Scanner pulse on punch */
        .header-scanner.pulse-in { animation: pulseIn 1.3s ease-out; }
        .header-scanner.pulse-out { animation: pulseOut 1.3s ease-out; }
        @keyframes pulseIn { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.75); } 100% { box-shadow: 0 0 0 26px rgba(34,197,94,0); } }
        @keyframes pulseOut { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.75); } 100% { box-shadow: 0 0 0 26px rgba(239,68,68,0); } }

        /* Brand helpers used by the dashboard */
        .btn-brand-primary { background-color: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--brand-navy); }
        .btn-brand-primary:hover, .btn-brand-primary:focus { background-color: var(--brand-yellow-hover); border-color: var(--brand-yellow-hover); color: var(--brand-navy); }
        .text-brand-navy { color: var(--brand-navy) !important; }
        .border-brand-yellow { border-color: var(--brand-yellow) !important; }
        #taskTabs .nav-link.active { background-color: var(--brand-navy); color: #fff !important; }

        /* ===== Notification bell ===== */
        .notif-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255,255,255,.07); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease; cursor: pointer; padding: 0; }
        .notif-btn:hover, .notif-btn.show { background: rgba(255,255,255,.15); }
        .notif-btn svg { width: 21px; height: 21px; }
        .notif-btn.ring svg { animation: bellRing 1s ease-in-out; transform-origin: 50% 4px; }
        @keyframes bellRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
        .notif-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; border: 2px solid var(--brand-navy); box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: badgePulse 2s infinite; }
        @keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 70% { box-shadow: 0 0 0 9px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
        .notif-menu { width: 390px; max-width: calc(100vw - 24px); border: 0 !important; border-radius: 16px !important; overflow: hidden; box-shadow: 0 18px 44px rgba(15,22,40,.3) !important; margin-top: 12px !important; }
        .notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(135deg, #1a2338, #0f1628); color: #fff; }
        .notif-head strong { font-size: 15px; letter-spacing: .2px; }
        .notif-head button { background: none; border: 0; color: var(--brand-yellow); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
        .notif-head button:hover { text-decoration: underline; }
        .notif-list { max-height: 400px; overflow-y: auto; background: #fff; }
        .notif-item { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #eef0f4; cursor: pointer; transition: background .15s ease; position: relative; color: #0f1628; text-align: left; }
        .notif-item:hover { background: #f7f8fb; }
        .notif-item.unread { background: #fffaf0; }
        .notif-item.unread::before { content: ''; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #ef4444; }
        .notif-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .notif-ico svg { width: 19px; height: 19px; }
        .notif-ico.assigned { background: rgba(252,185,0,.18); color: #b98200; }
        .notif-ico.done { background: rgba(34,197,94,.15); color: #16a34a; }
        .notif-ico.not_done { background: rgba(239,68,68,.14); color: #dc2626; }
.notif-ico.edited { background: rgba(59,130,246,.14); color: #2563eb; }
.notif-ico.reopened { background: rgba(168,85,247,.14); color: #9333ea; }
        .notif-body { min-width: 0; flex: 1; }
        .notif-title { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
        .notif-msg { font-size: 12.5px; color: #5b6477; margin-top: 2px; line-height: 1.4; word-wrap: break-word; }
        .notif-ago { font-size: 11.5px; color: #98a1b3; margin-top: 4px; }
        .notif-empty { padding: 38px 20px; text-align: center; color: #98a1b3; font-size: 13.5px; background: #fff; }
        .notif-empty .e-ico { font-size: 34px; display: block; margin-bottom: 6px; opacity: .7; }
        @media (max-width: 991.98px) { .notif-menu { position: absolute !important; } }
