
/* =========================================================
   BRIOCOM SOLUTIONS — QUICKTRACK TIME TRACKING WORKSPACE
   Futuristic | Red | Black | White
   Responsive: Mobile, Tablet, Laptop, Desktop & 4K
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --time-bg: #070707;
    --time-surface: #0d0d0d;
    --time-surface-2: #121212;
    --time-surface-3: #181818;

    --time-red: #ef3038;
    --time-red-dark: #bd151d;
    --time-red-light: #ff5158;
    --time-red-soft: rgba(239, 48, 56, .10);
    --time-red-border: rgba(239, 48, 56, .35);

    --time-white: #ffffff;
    --time-text: #e8e8e8;
    --time-muted: #929292;
    --time-subtle: #626262;

    --time-border: #282828;
    --time-border-light: #393939;

    --time-radius: 14px;
    --time-radius-sm: 9px;

    --time-shadow:
        0 16px 45px rgba(0, 0, 0, .35);

    --time-glow:
        0 0 22px rgba(239, 48, 56, .12);

    --time-transition:
        .22s ease;
}

/* Keep sizing predictable */

.time-tracker-app,
.time-tracker-app *,
.time-history,
.time-history *,
.time-export-section,
.time-export-section *,
.tracking-info,
.tracking-info *,
.client-time-summary,
.client-time-summary *,
.tracking-features,
.tracking-features *,
.time-summary,
.time-summary *,
.current-session,
.current-session * {
    box-sizing: border-box;
}

/* =========================================================
   2. PAGE HEADER
   ========================================================= */

.time-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 0 30px;
}

.time-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--time-red-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.time-header h1 {
    margin: 10px 0 12px;
    color: var(--time-white);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(27px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.time-header p {
    max-width: 720px;
    margin: 0;
    color: var(--time-muted);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.8;
}

/* =========================================================
   3. MAIN TRACKER PANEL
   ========================================================= */

.time-tracker-app {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    padding: clamp(18px, 3vw, 32px);
    overflow: hidden;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(239, 48, 56, .055),
            transparent 34%
        ),
        linear-gradient(145deg, #111111, #080808);

    border: 1px solid var(--time-border);
    border-radius: var(--time-radius);
    box-shadow: var(--time-shadow);
}

.time-tracker-app::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--time-red),
        transparent
    );
    box-shadow: 0 0 14px rgba(239, 48, 56, .3);
}

/* =========================================================
   4. TRACKER TOPBAR
   ========================================================= */

.tracker-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.tracker-label {
    color: var(--time-subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tracker-topbar h2 {
    margin: 6px 0 0;
    color: var(--time-white);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.4;
}

/* =========================================================
   5. STATUS INDICATOR
   ========================================================= */

.tracker-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 14px;

    color: #aaa;
    background: #090909;
    border: 1px solid var(--time-border);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;

    transition:
        color var(--time-transition),
        background var(--time-transition),
        border-color var(--time-transition);
}

.tracker-indicator > span:first-child {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #666;
}

.tracker-indicator.active {
    color: #ff7378;
    background: rgba(239, 48, 56, .09);
    border-color: var(--time-red-border);
    box-shadow: var(--time-glow);
}

.tracker-indicator.active > span:first-child {
    background: var(--time-red-light);
    box-shadow: 0 0 10px rgba(239, 48, 56, .8);
    animation: trackerActivePulse 1.8s ease-in-out infinite;
}

@keyframes trackerActivePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(239, 48, 56, .6);
    }

    50% {
        opacity: .65;
        box-shadow: 0 0 14px rgba(239, 48, 56, .9);
    }
}

/* =========================================================
   6. TIMER DISPLAY
   ========================================================= */

.timer-display-container {
    position: relative;
    margin-bottom: 24px;
    padding: clamp(25px, 5vw, 42px) 14px;

    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            rgba(239, 48, 56, .10),
            transparent 68%
        ),
        #090909;

    border: 1px solid #252525;
    border-radius: 12px;
}

.timer-display-container::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 0;
    left: 15px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(239, 48, 56, .5),
        transparent
    );
}

.timer-display {
    color: var(--time-white);
    font-family: "Orbitron", "Courier New", monospace;
    font-size: clamp(32px, 7.5vw, 82px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: clamp(.01em, .5vw, .07em);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    text-shadow: 0 0 22px rgba(255, 255, 255, .08);
}

.timer-display-container p {
    margin: 14px 0 0;
    color: var(--time-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   7. TRACKER FORM
   ========================================================= */

.tracker-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.tracker-field {
    min-width: 0;
}

.tracker-field.full-width {
    grid-column: 1 / -1;
}

.tracker-field label {
    display: block;
    margin-bottom: 8px;
    color: #c2c2c2;
    font-size: 12px;
    font-weight: 700;
}

.tracker-field input,
#timezoneSelector,
#timeZoneSelect {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;

    color: var(--time-text);
    background: #080808;
    border: 1px solid #303030;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    outline: none;

    transition:
        border-color var(--time-transition),
        box-shadow var(--time-transition),
        background var(--time-transition);
}

.tracker-field input::placeholder {
    color: #686868;
}

.tracker-field input:hover,
#timezoneSelector:hover,
#timeZoneSelect:hover {
    border-color: #454545;
}

.tracker-field input:focus,
#timezoneSelector:focus,
#timeZoneSelect:focus {
    background: #0b0b0b;
    border-color: var(--time-red);
    box-shadow: 0 0 0 3px rgba(239, 48, 56, .12);
}

#timezoneSelector,
#timeZoneSelect {
    padding-right: 34px;
    cursor: pointer;
}

#timezoneSelector option,
#timeZoneSelect option,
.client-filter select option {
    color: var(--time-text);
    background: #101010;
}

/* =========================================================
   8. TIMER CONTROLS
   ========================================================= */

.timer-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 28px;
}

.timer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 145px;
    min-height: 46px;
    padding: 12px 20px;

    color: var(--time-white);
    background: #151515;
    border: 1px solid #383838;
    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--time-transition),
        background var(--time-transition),
        border-color var(--time-transition),
        box-shadow var(--time-transition);
}

.timer-start {
    background: var(--time-red);
    border-color: var(--time-red);
    color: #fff;
}

.timer-start:hover:not(:disabled) {
    background: var(--time-red-light);
    border-color: var(--time-red-light);
    box-shadow: 0 8px 24px rgba(239, 48, 56, .25);
}

.timer-pause {
    color: #fff;
    background: #1a1a1a;
    border-color: #555;
}

.timer-pause:hover:not(:disabled) {
    background: #252525;
    border-color: #999;
}

.timer-stop {
    color: #fff;
    background: #111;
    border-color: var(--time-red-border);
}

.timer-stop:hover:not(:disabled) {
    background: rgba(239, 48, 56, .12);
    border-color: var(--time-red);
    box-shadow: var(--time-glow);
}

.timer-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.timer-btn.timer-running {
    box-shadow: 0 0 18px rgba(239, 48, 56, .2);
}

.timer-btn.timer-paused {
    border-color: #777;
}

.timer-btn.timer-active {
    border-color: var(--time-red);
}

.timer-btn:active:not(:disabled) {
    transform: scale(.98);
}

/* =========================================================
   9. CURRENT SESSION
   ========================================================= */

.current-session {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.session-card {
    min-width: 0;
    padding: 16px;

    background: rgba(255, 255, 255, .018);
    border: 1px solid #292929;
    border-radius: 9px;
}

.session-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--time-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.session-card strong {
    display: block;
    min-width: 0;
    color: var(--time-text);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* =========================================================
   10. SUMMARY CARDS
   ========================================================= */

.time-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 94px;
    padding: 17px;

    background: linear-gradient(145deg, #111, #0b0b0b);
    border: 1px solid var(--time-border);
    border-radius: 11px;

    transition:
        transform var(--time-transition),
        border-color var(--time-transition),
        box-shadow var(--time-transition);
}

.summary-card:hover {
    transform: translateY(-3px);
    border-color: var(--time-red-border);
    box-shadow: var(--time-glow);
}

.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    color: var(--time-red-light);
    background: var(--time-red-soft);
    border: 1px solid rgba(239, 48, 56, .13);
    border-radius: 10px;

    font-size: 18px;
}

.summary-card div {
    min-width: 0;
}

.summary-card div span {
    display: block;
    color: var(--time-muted);
    font-size: 11px;
    line-height: 1.5;
}

.summary-card div strong {
    display: block;
    margin-top: 5px;
    color: var(--time-white);
    font-family: "Orbitron", monospace;
    font-size: clamp(13px, 1.3vw, 17px);
    overflow-wrap: anywhere;
}

/* =========================================================
   11. HISTORY PANEL
   ========================================================= */

.time-history {
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    padding: clamp(16px, 2.5vw, 28px);

    background: linear-gradient(145deg, #0e0e0e, #090909);
    border: 1px solid var(--time-border);
    border-radius: var(--time-radius);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.history-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 24px;
}

.history-header > div:first-child {
    flex: 1 1 280px;
    min-width: 0;
}

.history-header h2 {
    margin: 6px 0 8px;
    color: var(--time-white);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(19px, 2.5vw, 26px);
    line-height: 1.4;
}

.history-header p {
    margin: 0;
    color: var(--time-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   12. HISTORY ACTIONS
   ========================================================= */

.history-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.history-view-btn,
.clear-history-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 16px;

    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;

    transition:
        color var(--time-transition),
        background var(--time-transition),
        border-color var(--time-transition),
        box-shadow var(--time-transition),
        transform var(--time-transition);
}

.history-view-btn {
    color: #bbb;
    background: #111;
    border: 1px solid #333;
}

.history-view-btn:hover {
    color: #fff;
    background: #191919;
    border-color: var(--time-red-border);
}

.history-view-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--time-red), var(--time-red-dark));
    border-color: var(--time-red);
    box-shadow: 0 5px 18px rgba(239, 48, 56, .2);
}

.clear-history-btn {
    color: #ff696f;
    background: rgba(239, 48, 56, .07);
    border: 1px solid var(--time-red-border);
}

.clear-history-btn:hover {
    color: #fff;
    background: var(--time-red-dark);
    border-color: var(--time-red);
    box-shadow: var(--time-glow);
}

.history-view-btn:active,
.clear-history-btn:active {
    transform: scale(.98);
}

/* =========================================================
   13. CLIENT FILTER
   ========================================================= */

.client-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.client-filter label {
    color: #bbb;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.client-filter select {
    appearance: none;
    min-width: 150px;
    max-width: 100%;
    min-height: 40px;
    padding: 9px 32px 9px 12px;

    color: var(--time-text);
    background-color: #101010;
    background-image:
        linear-gradient(45deg, transparent 50%, #aaa 50%),
        linear-gradient(135deg, #aaa 50%, transparent 50%);
    background-position:
        calc(100% - 14px) 17px,
        calc(100% - 10px) 17px;
    background-size: 4px 4px;
    background-repeat: no-repeat;

    border: 1px solid #333;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.client-filter select:focus {
    border-color: var(--time-red);
}

/* =========================================================
   14. HISTORY TABLE
   ========================================================= */

.history-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid #282828;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #555 #101010;
}

.history-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.history-table-wrapper::-webkit-scrollbar-track {
    background: #101010;
}

.history-table-wrapper::-webkit-scrollbar-thumb {
    background: #454545;
    border-radius: 20px;
}

.history-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.history-table th {
    padding: 13px 10px;
    color: #aaa;
    background: #141414;
    border-bottom: 1px solid #333;

    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.history-table td {
    padding: 13px 10px;
    color: #c2c2c2;
    border-bottom: 1px solid #202020;
    vertical-align: middle;

    overflow-wrap: anywhere;
    word-break: normal;
}

.history-table tbody tr {
    transition: background var(--time-transition);
}

.history-table tbody tr:hover {
    background: rgba(239, 48, 56, .045);
}

.history-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Seven-column layout */

.history-table th:nth-child(1),
.history-table td:nth-child(1) { width: 13%; }

.history-table th:nth-child(2),
.history-table td:nth-child(2) { width: 13%; }

.history-table th:nth-child(3),
.history-table td:nth-child(3) { width: 15%; }

.history-table th:nth-child(4),
.history-table td:nth-child(4) { width: 15%; }

.history-table th:nth-child(5),
.history-table td:nth-child(5) { width: 17%; }

.history-table th:nth-child(6),
.history-table td:nth-child(6) {
    width: 12%;
    white-space: nowrap;
}

.history-table th:nth-child(7),
.history-table td:nth-child(7) {
    width: 15%;
    min-width: 100px;
    text-align: center;
}

/* =========================================================
   15. HISTORY ACTION BUTTONS
   ========================================================= */

.history-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
}

.history-resume-btn,
.history-delete-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    min-width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;

    color: var(--time-red-light);
    background: rgba(239, 48, 56, .07);
    border: 1px solid var(--time-red-border);
    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;

    transition:
        color var(--time-transition),
        background var(--time-transition),
        border-color var(--time-transition),
        transform var(--time-transition);
}

.history-resume-btn:hover,
.history-delete-btn:hover {
    color: #fff;
    background: var(--time-red);
    border-color: var(--time-red);
    transform: translateY(-1px);
}

.history-resume-btn.active {
    color: #fff;
    background: #242424;
    border-color: #666;
}

.history-resume-btn.active:hover {
    background: #333;
    border-color: #aaa;
}

.history-resume-btn:active,
.history-delete-btn:active {
    transform: scale(.96);
}

/* =========================================================
   16. EMPTY HISTORY
   ========================================================= */

.empty-history td {
    padding: 48px 20px;
    text-align: center;
}

.empty-history-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-history-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 15px;

    color: var(--time-red-light);
    background: var(--time-red-soft);
    border: 1px solid rgba(239, 48, 56, .18);
    border-radius: 50%;
    font-size: 23px;
}

.empty-history-content strong {
    color: #eee;
    font-size: 15px;
}

.empty-history-content p {
    margin: 7px 0 0;
    color: var(--time-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   17. PAGINATION
   ========================================================= */

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.pagination-prev,
.pagination-next,
.pagination-pages button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;

    color: #bbb;
    background: #111;
    border: 1px solid #303030;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: var(--time-transition);
}

.pagination-prev,
.pagination-next {
    font-size: 19px;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-pages button:hover {
    color: #fff;
    border-color: var(--time-red);
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination-pages button.active {
    color: #fff;
    background: var(--time-red);
    border-color: var(--time-red);
}

.pagination-info {
    margin-left: 8px;
    color: var(--time-muted);
    font-size: 11px;
}

/* =========================================================
   18. PRODUCTIVITY FEATURES
   ========================================================= */

.tracking-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 26px;
}

.feature-card {
    min-width: 0;
    padding: 23px 20px;

    background: linear-gradient(145deg, #111, #0b0b0b);
    border: 1px solid #282828;
    border-radius: 12px;

    transition:
        transform var(--time-transition),
        border-color var(--time-transition),
        box-shadow var(--time-transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--time-red-border);
    box-shadow: var(--time-glow);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 15px;

    color: var(--time-red-light);
    background: var(--time-red-soft);
    border: 1px solid rgba(239, 48, 56, .12);
    border-radius: 10px;
    font-size: 19px;
}

.feature-card h3 {
    margin: 0 0 9px;
    color: #f1f1f1;
    font-size: 15px;
    line-height: 1.5;
}

.feature-card p {
    margin: 0;
    color: var(--time-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   19. EXPORT SECTION
   ========================================================= */

.time-export-section {
    margin-top: 26px;
    padding: clamp(18px, 3vw, 28px);

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(239, 48, 56, .06),
            transparent 40%
        ),
        #0c0c0c;

    border: 1px solid #292929;
    border-radius: var(--time-radius);
}

.export-header h2 {
    margin: 6px 0 9px;
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(19px, 2.5vw, 25px);
    line-height: 1.4;
}

.export-header p {
    margin: 0;
    color: var(--time-muted);
    font-size: 13px;
    line-height: 1.8;
}

.export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 21px;
}

.export-time-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 10px 16px;

    color: #ddd;
    background: #121212;
    border: 1px solid #333;
    border-radius: 9px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;

    transition:
        color var(--time-transition),
        background var(--time-transition),
        border-color var(--time-transition);
}

.export-time-btn span {
    color: var(--time-red-light);
    font-family: monospace;
    font-weight: 800;
}

.export-time-btn:hover {
    color: #fff;
    background: var(--time-red-soft);
    border-color: var(--time-red-border);
}

/* =========================================================
   20. INFORMATION & WARNING
   ========================================================= */

.tracking-info {
    margin-top: 26px;
    padding: clamp(18px, 3vw, 27px);

    background: #0d0d0d;
    border: 1px solid #292929;
    border-radius: var(--time-radius);
}

.tracking-info h2 {
    margin: 0 0 14px;
    color: #f5f5f5;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
}

.tracking-info p {
    margin: 0 0 13px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.9;
}

.tracking-info p:last-child {
    margin-bottom: 0;
}

.tracking-warning {
    padding: 18px 20px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid #353535;
    border-left: 3px solid var(--time-red);
    border-radius: 9px;
}

.tracking-warning strong {
    color: #ff7378;
    font-size: 13px;
}

.tracking-warning p {
    margin-top: 9px;
    margin-bottom: 0;
}

/* =========================================================
   21. QUICKTRACK STAR
   ========================================================= */

.quicktrack-star {
    display: inline-block;
    margin-left: 5px;
    color: var(--time-red-light);
    font-size: .8em;
    text-shadow: 0 0 12px rgba(239, 48, 56, .55);
    animation: quickTrackStarGlow 2.4s ease-in-out infinite;
}

@keyframes quickTrackStarGlow {
    0%, 100% {
        opacity: .85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* =========================================================
   22. NAVIGATION
   ========================================================= */

.navbar {
    position: relative;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 74px;
    padding: 12px 24px;

    background: rgba(8, 8, 8, .97);
    border-bottom: 1px solid #262626;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 76px;
    height: 2px;
    background: var(--time-red);
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(239, 48, 56, .45);
}

.navbar nav,
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 42px;
    padding: 10px 16px;

    color: #ddd;
    background: #101010;
    border: 1px solid #2b2b2b;
    border-radius: 8px;

    text-decoration: none;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    transition:
        color var(--time-transition),
        background var(--time-transition),
        border-color var(--time-transition);
}

.nav-link:hover {
    color: #fff;
    background: var(--time-red-soft);
    border-color: var(--time-red-border);
}

.nav-arrow {
    color: var(--time-red-light);
    font-size: 16px;
    transition: transform var(--time-transition);
}

.nav-link:hover .nav-arrow {
    transform: translateX(-3px);
}

/* =========================================================
   23. CLIENT TIME SUMMARY
   ========================================================= */

.client-time-summary {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    padding: clamp(17px, 3vw, 28px);
    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(239, 48, 56, .09),
            transparent 35%
        ),
        linear-gradient(145deg, #111, #080808);

    border: 1px solid #2d2d2d;
    border-radius: var(--time-radius);

    box-shadow: var(--time-shadow);
}

.client-time-summary::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -35%;
    width: 35%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--time-red),
        #ff9a9e,
        transparent
    );

    box-shadow: 0 0 12px rgba(239, 48, 56, .6);
    animation: clientSummaryScan 5s linear infinite;
}

.client-time-summary::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);

    background-size: 30px 30px;
    opacity: .3;
}

.client-summary-header {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.client-summary-header h2 {
    margin: 5px 0 8px;
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(19px, 2.5vw, 26px);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
}

.client-summary-header p {
    margin: 0;
    color: var(--time-muted);
    font-size: 13px;
    line-height: 1.7;
}

.client-summary-list {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-width: 0;
}

/* Two columns across the six summary cards */

.client-summary-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    gap: 12px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.client-summary-info,
.client-summary-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    width: 100% !important;
    max-width: 100%;
    min-height: 86px;
    padding: 16px;

    overflow: hidden;

    background: linear-gradient(145deg, #141414, #0b0b0b);
    border: 1px solid #2d2d2d;
    border-radius: 10px;

    box-shadow: inset 0 0 16px rgba(255, 255, 255, .012);

    transition:
        transform var(--time-transition),
        border-color var(--time-transition),
        box-shadow var(--time-transition);
}

.client-summary-info {
    background:
        radial-gradient(
            circle at 0 50%,
            rgba(239, 48, 56, .08),
            transparent 70%
        ),
        #101010;

    border-color: rgba(239, 48, 56, .25);
}

.client-summary-label,
.client-summary-stat span {
    display: block;
    max-width: 100%;
    margin-bottom: 7px;

    color: #888;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-summary-info strong,
.client-summary-stat strong {
    display: block;
    min-width: 0;
    max-width: 100%;

    color: #f0f0f0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(11px, 1.3vw, 15px);
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
    word-break: normal;
}

.client-summary-stat strong {
    font-variant-numeric: tabular-nums;
}

#clientTotalTime {
    color: var(--time-red-light) !important;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(12px, 1.6vw, 18px);
    text-shadow: 0 0 10px rgba(239, 48, 56, .25);
}

/* Card scanning detail */

.client-summary-card > div {
    isolation: isolate;
}

.client-summary-card > div::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -100%;
    width: 65%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--time-red),
        transparent
    );

    animation: clientCardScan 6s linear infinite;
}

.client-summary-card > div::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    border-right: 1px solid rgba(239, 48, 56, .45);
    border-bottom: 1px solid rgba(239, 48, 56, .45);
}

.client-summary-card > div:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 48, 56, .5);
    box-shadow: 0 0 20px rgba(239, 48, 56, .08);
}

@keyframes clientSummaryScan {
    0% {
        left: -35%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    75%, 100% {
        left: 110%;
        opacity: 0;
    }
}

@keyframes clientCardScan {
    0% {
        left: -100%;
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    70%, 100% {
        left: 110%;
        opacity: 0;
    }
}

/* =========================================================
   24. ACCESSIBILITY & INTERACTION
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--time-red-light);
    outline-offset: 3px;
}

.history-resume-btn:focus-visible,
.history-delete-btn:focus-visible,
.history-view-btn:focus-visible,
.clear-history-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* =========================================================
   25. RESPONSIVE LAYOUT
   ========================================================= */

/* Wide tablets and smaller laptops */

@media (max-width: 1100px) {
    .time-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tracking-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-table {
        min-width: 740px;
    }

    .history-header {
        align-items: flex-start;
    }

    .history-actions {
        justify-content: flex-start;
    }
}

/* Tablets */

@media (max-width: 850px) {
    .time-tracker-app {
        padding: 22px;
    }

    .current-session {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-card {
        padding: 14px;
    }

    .history-table th,
    .history-table td {
        padding: 11px 8px;
    }

    .client-summary-card {
        gap: 10px;
    }

    .client-summary-info,
    .client-summary-stat {
        padding: 14px;
    }
}

/* Small tablets and large phones */

@media (max-width: 650px) {
    .time-header {
        margin-bottom: 22px;
    }

    .time-tracker-app {
        padding: 17px;
        border-radius: 11px;
    }

    .tracker-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .tracker-indicator {
        align-self: flex-start;
    }

    .tracker-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .tracker-field.full-width {
        grid-column: auto;
    }

    .timer-controls {
        flex-direction: column;
        gap: 10px;
    }

    .timer-btn {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .current-session {
        grid-template-columns: minmax(0, 1fr);
    }

    .time-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .summary-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        min-height: 0;
        padding: 13px;
    }

    .summary-card div strong {
        font-size: 14px;
    }

    .tracking-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .feature-card {
        padding: 17px;
    }

    .time-history {
        padding: 16px;
    }

    .history-header {
        gap: 16px;
    }

    .history-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .history-view-btn,
    .clear-history-btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .client-filter {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
    }

    .client-filter select {
        flex: 1;
        min-width: 0;
    }

    .clear-history-btn {
        grid-column: 1 / -1;
    }

    .history-table {
        min-width: 690px;
    }

    .navbar {
        min-height: 62px;
        padding: 10px 12px;
    }

    .navbar nav,
    .navbar-nav {
        gap: 7px;
    }

    .nav-link {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 11px;
    }

    .client-time-summary {
        margin-top: 20px;
        padding: 17px;
    }

    .client-summary-header {
        margin-bottom: 17px;
    }

    .client-summary-card {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
    }

    .client-summary-info,
    .client-summary-stat {
        min-height: 76px;
        padding: 12px;
    }

    .client-summary-label,
    .client-summary-stat span {
        font-size: 8px;
    }

    .client-summary-info strong,
    .client-summary-stat strong {
        font-size: 11px;
    }
}

/* Phones */

@media (max-width: 480px) {
    .time-header h1 {
        font-size: 27px;
    }

    .timer-display {
        font-size: clamp(29px, 8vw, 43px);
        letter-spacing: 0;
    }

    .timer-display-container {
        padding: 26px 8px;
    }

    .time-summary {
        gap: 8px;
    }

    .summary-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 16px;
    }

    .summary-card div span {
        font-size: 10px;
    }

    .summary-card div strong {
        font-size: 12px;
    }

    .tracking-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .history-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-filter,
    .clear-history-btn {
        grid-column: auto;
    }

    .client-filter {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .client-filter select {
        width: 100%;
        min-height: 44px;
    }

    .history-view-btn,
    .clear-history-btn {
        min-height: 44px;
    }

    .export-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .export-time-btn {
        width: 100%;
    }

    .tracking-warning {
        padding: 15px;
    }

    .client-time-summary {
        padding: 14px;
    }

    .client-summary-card {
        gap: 7px;
    }

    .client-summary-info,
    .client-summary-stat {
        min-height: 70px;
        padding: 10px 9px;
    }

    .client-summary-label,
    .client-summary-stat span {
        font-size: 7px;
        letter-spacing: .06em;
    }

    .client-summary-info strong,
    .client-summary-stat strong {
        font-size: 10px;
    }

    #clientTotalTime {
        font-size: 11px;
    }

    .pagination-info {
        flex-basis: 100%;
        margin: 5px 0 0;
        text-align: center;
    }
}

/* Very small phones */

@media (max-width: 350px) {
    .time-tracker-app,
    .time-history {
        padding: 12px;
    }

    .timer-display {
        font-size: 27px;
    }

    .time-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary-card {
        align-items: center;
        flex-direction: row;
    }

    .client-time-summary {
        padding: 11px;
    }

    .client-summary-card {
        gap: 6px;
    }

    .client-summary-info,
    .client-summary-stat {
        padding: 9px 7px;
    }

    .client-summary-label,
    .client-summary-stat span {
        font-size: 6px;
        letter-spacing: .04em;
    }

    .client-summary-info strong,
    .client-summary-stat strong {
        font-size: 9px;
    }

    #clientTotalTime {
        font-size: 10px;
    }

    .history-table {
        min-width: 650px;
    }

    .history-resume-btn,
    .history-delete-btn {
        width: 32px;
        min-width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .nav-link {
        padding: 8px 9px;
        font-size: 10px;
    }
}

/* Large displays */

@media (min-width: 1600px) {
    .time-header,
    .time-tracker-app,
    .time-history,
    .time-export-section,
    .tracking-info,
    .client-time-summary {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }

    .time-header {
        margin-bottom: 30px;
    }

    .timer-display {
        font-size: clamp(82px, 5vw, 110px);
    }
}

/* =========================================================
   26. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   BRIOCOM SOLUTIONS — SMART DEADLINE PRIORITIES
   Responsive red / black / white interface
   ========================================================= */

.priorities-card {
    --task-red: #ff3030;
    --task-red-hover: #e51f1f;
    --task-bg: #090909;
    --task-panel: #111111;
    --task-border: rgba(255, 255, 255, 0.12);
    --task-muted: #a3a3a3;
    --task-white: #ffffff;

    width: 100%;
    min-width: 0;
    color: var(--task-white);
}

.priorities-card *,
.priorities-card *::before,
.priorities-card *::after {
    box-sizing: border-box;
}

.priorities-card .pulse-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.priorities-card .pulse-card-label {
    color: var(--task-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.priorities-card .pulse-card-subtitle {
    display: block;
    margin-top: 7px;
    color: var(--task-muted);
    font-size: 13px;
    line-height: 1.6;
}

.priorities-card .pulse-progress-number {
    flex-shrink: 0;
    padding: 8px 11px;
    color: var(--task-white);
    background: #171717;
    border: 1px solid var(--task-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.priorities-card .pulse-progress {
    width: 100%;
    height: 6px;
    margin-bottom: 25px;
    overflow: hidden;
    background: #292929;
    border-radius: 99px;
}

.priorities-card .pulse-progress-fill {
    width: 0;
    height: 100%;
    background: var(--task-red);
    border-radius: inherit;
    transition: width 0.25s ease;
}

/* Task creation form */

.smart-task-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(145deg, #141414, #0b0b0b);
    border: 1px solid var(--task-border);
    border-radius: 13px;
}

.smart-form-label {
    color: #e9e9e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.priorities-card .pulse-task-input {
    display: flex;
    align-items: stretch;
    gap: 9px;
    width: 100%;
}

.priorities-card .pulse-task-input input,
.priorities-card .deadline-field input {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 11px 13px;
    color: #fff;
    background: #080808;
    border: 1px solid #343434;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.priorities-card .pulse-task-input input {
    flex: 1;
}

.priorities-card .pulse-task-input input::placeholder,
.priorities-card .deadline-field input::placeholder {
    color: #777;
}

.priorities-card .pulse-task-input input:focus,
.priorities-card .deadline-field input:focus {
    outline: none;
    border-color: var(--task-red);
    box-shadow: 0 0 0 3px rgba(255, 48, 48, 0.12);
}

.priorities-card #addQuickTaskBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 112px;
    min-height: 45px;
    padding: 10px 15px;
    color: #fff;
    background: var(--task-red);
    border: 1px solid var(--task-red);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.priorities-card #addQuickTaskBtn:hover {
    background: var(--task-red-hover);
    transform: translateY(-1px);
}

.priorities-card #addQuickTaskBtn span:first-child {
    font-size: 21px;
    line-height: 1;
}

.smart-input-hint,
.smart-field-hint {
    margin: 0;
    color: var(--task-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Deadline and client fields */

.priorities-card .deadline-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 9px;
}

.priorities-card .deadline-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.priorities-card .deadline-field label {
    color: #d9d9d9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.priorities-card .deadline-field input {
    min-height: 43px;
}

.priorities-card input[type="date"],
.priorities-card input[type="time"] {
    color-scheme: dark;
}

.deadline-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.deadline-shortcuts button {
    padding: 6px 8px;
    color: #d8d8d8;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.deadline-shortcuts button:hover {
    color: #fff;
    border-color: var(--task-red);
}

.smart-task-message {
    min-height: 0;
    margin: 0;
    color: #ff8585;
    font-size: 12px;
    line-height: 1.5;
}

.smart-task-message:empty {
    display: none;
}

/* Task list heading */

.smart-task-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 27px 0 13px;
}

.smart-task-list-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.smart-task-list-heading p {
    margin: 5px 0 0;
    color: var(--task-muted);
    font-size: 12px;
    line-height: 1.5;
}

.smart-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #bdbdbd;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.smart-live-indicator span {
    width: 7px;
    height: 7px;
    background: var(--task-red);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 48, 48, 0.5);
}

/* Table */

.priorities-card .priority-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--task-border);
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: #454545 #111;
}

.priorities-card .priority-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.priorities-card .priority-table thead {
    background: #171717;
}

.priorities-card .priority-table th {
    padding: 13px 12px;
    color: #bcbcbc;
    border-bottom: 1px solid var(--task-border);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.priorities-card .priority-table td {
    padding: 13px 12px;
    color: #eee;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    vertical-align: middle;
}

.priorities-card .priority-table tbody tr:last-child td {
    border-bottom: none;
}

.priorities-card .priority-table tbody tr:not(.pulse-task-empty):hover {
    background: rgba(255, 255, 255, 0.025);
}

.task-status-check {
    width: 17px;
    height: 17px;
    accent-color: var(--task-red);
    cursor: pointer;
}

.task-name {
    display: block;
    max-width: 250px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.task-completed .task-name {
    color: #929292;
    text-decoration: line-through;
}

.task-deadline {
    display: block;
    color: #f1f1f1;
    white-space: nowrap;
}

.task-deadline-time {
    display: block;
    margin-top: 4px;
    color: var(--task-muted);
    font-size: 10px;
}

.task-overdue .task-deadline,
.task-overdue .task-deadline-time {
    color: #ff6565;
}

.task-no-deadline {
    color: #888;
    font-size: 11px;
}

.task-client-name {
    color: #dedede;
    overflow-wrap: anywhere;
}

.task-timer {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.task-timer.is-running {
    color: #ff6262;
}

.task-timer-note {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 10px;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.task-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 9px;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #3b3b3b;
    border-radius: 6px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.task-action-btn:hover {
    border-color: var(--task-red);
}

.task-action-btn.start {
    background: #251010;
    border-color: #713030;
}

.task-action-btn.start:hover {
    background: #3b1111;
    border-color: var(--task-red);
}

.task-action-btn.stop {
    background: var(--task-red);
    border-color: var(--task-red);
}

.task-action-btn.stop:hover {
    background: var(--task-red-hover);
}

.task-action-btn.delete:hover {
    color: #ff7777;
    border-color: #ff5555;
}

.task-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.priorities-card .pulse-task-empty td {
    padding: 32px 15px;
    text-align: center;
}

.empty-task-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    color: #ff6464;
    background: #241010;
    border: 1px solid #512222;
    border-radius: 50%;
    font-size: 18px;
}

.empty-task-content strong,
.empty-task-content span {
    display: block;
}

.empty-task-content strong {
    color: #fff;
    font-size: 13px;
}

.empty-task-content span {
    margin-top: 6px;
    color: var(--task-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Bottom controls */

.smart-task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

#taskSummary {
    color: var(--task-muted);
    font-size: 11px;
    line-height: 1.5;
}

.priorities-card .pulse-clear-btn {
    padding: 9px 12px;
    color: #e5e5e5;
    background: transparent;
    border: 1px solid #393939;
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.priorities-card .pulse-clear-btn:hover {
    color: #fff;
    border-color: var(--task-red);
}

/* Keyboard accessibility */

.priorities-card button:focus-visible,
.priorities-card input:focus-visible {
    outline: 2px solid #ff5656;
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 800px) {
    .priorities-card .deadline-inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .priorities-card .deadline-field:last-child {
        grid-column: 1 / -1;
    }

    .smart-task-form {
        padding: 15px;
    }
}

/* Mobile */

@media (max-width: 540px) {
    .priorities-card .pulse-card-header {
        gap: 10px;
    }

    .priorities-card .pulse-card-subtitle {
        font-size: 12px;
    }

    .priorities-card .deadline-inputs {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .priorities-card .deadline-field:last-child {
        grid-column: auto;
    }

    .priorities-card .pulse-task-input {
        flex-direction: column;
    }

    .priorities-card #addQuickTaskBtn {
        width: 100%;
    }

    .smart-task-list-heading {
        align-items: flex-start;
    }

    .smart-live-indicator {
        font-size: 8px;
    }

    .smart-task-footer {
        align-items: flex-start;
    }

    .priorities-card .priority-table {
        min-width: 760px;
    }
}

@media (max-width: 360px) {
    .smart-task-form {
        padding: 11px;
    }

    .priorities-card .pulse-card-label {
        letter-spacing: 1px;
    }

    .priorities-card .pulse-progress-number {
        padding: 7px;
        font-size: 10px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .priorities-card *,
    .priorities-card *::before,
    .priorities-card *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
