@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/inter/Inter-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/inter/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/static/fonts/inter/Inter-Bold.woff2") format("woff2");
}

:root {
    --cyan: #00bcd4;
    --magenta: #e91e63;
    --yellow: #ffc107;
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
    font-family: var(--font-family);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.accent-cyan {
    color: var(--cyan);
}

.accent-magenta {
    color: var(--magenta);
}

.accent-yellow {
    color: var(--yellow);
}

.tag.is-cyan {
    background-color: var(--cyan);
    color: #fff;
}

.tag.is-magenta {
    background-color: var(--magenta);
    color: #fff;
}

.tag.is-yellow {
    background-color: var(--yellow);
    color: #000;
}

/* Navbar color zones */
.navbar {
    background-color: #fff;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    background-color: #fff;
}

.navbar-brand .navbar-item {
    color: #000;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    border-bottom: 3px solid var(--cyan);
}

.navbar-brand .navbar-item:hover,
.navbar-brand .navbar-item:focus {
    background-color: #f0fdff !important;
    color: #000 !important;
}

.navbar-brand .navbar-burger span {
    background-color: #000;
}

.navbar-start .navbar-item {
    color: #000;
    background-color: #fff;
    border-bottom: 3px solid var(--yellow);
}

.navbar-start .navbar-item:hover,
.navbar-start .navbar-item:focus {
    background-color: #fffde7 !important;
    color: #000 !important;
}

.navbar-start .navbar-workspace {
    color: #000;
    border-bottom: 3px solid var(--magenta);
}

.navbar-start .navbar-workspace:hover,
.navbar-start .navbar-workspace:focus {
    background-color: #fce4ec !important;
    color: #000 !important;
}

/* Workspace switcher: override yellow border on the wrapper div */
.navbar-start .navbar-workspace-switcher.navbar-item {
    border-bottom: none;
    padding: 0;
}

/* Workspace switcher dropdown */
.navbar-workspace-switcher > .navbar-dropdown {
    border-top: 3px solid var(--magenta);
    padding-top: 0;
}

.navbar-start .navbar-item.is-active {
    color: #000 !important;
    background-color: #fff !important;
}

.navbar-running-task {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    color: var(--cyan) !important;
    text-decoration: none;
}

.navbar-timer {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.navbar-task-desc {
    font-size: 0.7rem;
    opacity: 0.9;
}

.navbar-running-task:hover {
    color: var(--cyan) !important;
    text-decoration: underline;
}

.navbar-end {
    background-color: #000;
}

.navbar-end .navbar-item {
    color: #fff !important;
    border-bottom: 3px solid #000;
}

.navbar-end .navbar-item:hover,
.navbar-end .navbar-item:focus {
    background-color: #222 !important;
    color: #fff !important;
}

/* App layout: sidebar + main */
.app-layout {
    display: flex;
    min-height: calc(100vh - 52px);
}

.app-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
    background-color: #fafafa;
    overflow-y: auto;
}

.app-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar menu tweaks */
.app-sidebar .menu-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding-left: 0.25rem;
}

.app-sidebar .menu-list a {
    border-radius: 4px;
    color: #333;
}

.app-sidebar .menu-list a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.app-sidebar .menu-list a.is-active {
    background-color: #000;
    color: #fff;
}

.app-sidebar .menu-list .menu-list {
    border-left: 1px solid #e8e8e8;
    margin-left: 0.5rem;
}

/* Hide sidebar on mobile, show hamburger instead */
@media screen and (max-width: 768px) {
    .app-sidebar {
        display: none;
    }
}

/* Checklist checkbox button */
.checklist-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border: 2px solid #b5b5b5;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
}

.checklist-checkbox.is-checked {
    background: #48c78e;
    border-color: #48c78e;
    color: #fff;
}

/* Timesheet today highlight */
.timesheet-today td {
    background-color: #e0f7fa;
}

/* Timesheet: collapse table into cards on mobile */
@media screen and (max-width: 768px) {
    .timesheet-table thead {
        display: none;
    }

    .timesheet-table tbody tr {
        display: block;
        border: 1px solid #dbdbdb;
        border-radius: 6px;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: #fff;
    }

    .timesheet-table tbody tr.has-background-light {
        background: #f5f5f5;
    }

    .timesheet-table tbody tr.timesheet-today {
        border-color: var(--cyan);
        border-width: 2px;
    }

    .timesheet-table tbody tr.timesheet-today td {
        background: transparent;
    }

    .timesheet-table td {
        display: grid;
        grid-template-columns: 7rem 1fr;
        align-items: center;
        border: none;
        padding: 0.3rem 0;
    }

    .timesheet-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .timesheet-table td:empty {
        display: none;
    }

    .timesheet-table tfoot {
        display: block;
        border: 1px solid #dbdbdb;
        border-radius: 6px;
        padding: 0.75rem;
        background: #fafafa;
    }

    .timesheet-table tfoot tr {
        display: flex;
        justify-content: space-between;
    }

    .timesheet-table tfoot th,
    .timesheet-table tfoot td {
        display: block;
        border: none;
        padding: 0;
    }
}

/* Unstyled inline button matches <a> link appearance */
.comment-action {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    vertical-align: baseline;
    display: inline;
    text-decoration: none;
}

/* OpenMoji */
img.openmoji {
    display: inline-block;
    vertical-align: middle;
    filter: none !important;
    background-color: transparent !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

img.openmoji-lg {
    width: 2rem !important;
    height: 2rem !important;
}

/* Slightly larger in sidebar */
.app-sidebar img.openmoji {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* Large on dashboard and workspace cards */
.box img.openmoji {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

.openmoji-picker-ui {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.openmoji-picker-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
}

.openmoji-picker-preview img.openmoji {
    width: 2rem !important;
    height: 2rem !important;
}

.openmoji-picker-clear {
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    padding: 0 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
}

.openmoji-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

.openmoji-picker-grid:empty { display: none; }

.openmoji-picker-btn {
    border: 1px solid transparent;
    background: none;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.openmoji-picker-btn:hover { border-color: #ddd; background: #f5f5f5; }
.openmoji-picker-btn img.openmoji { width: 1.5rem !important; height: 1.5rem !important; }

/* Autosave status indicator */
.autosave-status {
    font-size: 0.75rem;
    color: #aaa;
    min-width: 1rem;
    display: inline-block;
}
