@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --ink: #17202a;
    --muted: #6b7280;
    --line: #d9e2ec;
    --surface: #ffffff;
    --page: #f4f7fb;
    --primary: #1967d2;
    --primary-dark: #104a9e;
    --accent: #0f9d7a;
    --sidebar: #111827;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Inter Tight", "Segoe UI", Arial, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    animation: appFadeIn .45s cubic-bezier(.2, .8, .2, 1) both;
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--sidebar);
    color: #fff;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 800;
}

.brand-logo {
    width: 54px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong,
.topbar h1,
.panel-head h2,
.metric-card strong,
.project-detail-toolbar h2,
.projects-toolbar h2,
.project-title-line h3,
.login-copy h1,
.login-card h2 {
    font-family: "Space Grotesk", "Inter Tight", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

.brand small {
    color: #aab4c2;
    font-size: .78rem;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    position: relative;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

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

.sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 46%;
    border-radius: 999px;
    background: currentColor;
    transform: translateY(-50%);
    animation: activeNavPulse 1.8s ease-in-out infinite;
}

.sidebar .nav {
    align-content: start;
}

.nav-section-label {
    margin: 1rem .25rem .35rem;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.signout-form {
    margin: 0;
}

.signout-form .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main {
    padding: 2rem;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topbar h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
}

.eyebrow {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.user-pill span {
    font-weight: 800;
}

.user-pill small {
    color: var(--muted);
}

.la-clock {
    justify-self: center;
    min-width: 260px;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.la-clock small,
.la-clock span {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
}

.la-clock strong {
    display: block;
    color: var(--ink);
    font-family: "Space Grotesk", "Inter Tight", "Segoe UI", Arial, sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.metric-card,
.panel,
.project-card,
.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.metric-card {
    min-height: 136px;
    padding: 1.2rem;
    display: grid;
    gap: .45rem;
    animation: panelRise .55s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform .22s ease, box-shadow .22s ease;
}

.metric-card:hover,
.panel:hover,
.ongoing-project-card:hover,
.project-detail:hover,
.project-manager:hover {
    transform: translateY(-2px);
}

.metric-card i {
    color: var(--primary);
    font-size: 1.35rem;
}

.metric-card span {
    color: var(--muted);
}

.metric-card strong {
    font-size: 2rem;
}

.panel {
    padding: 1.25rem;
    animation: panelRise .55s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform .22s ease, box-shadow .22s ease;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0;
    border-bottom: 1px solid var(--line);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .25rem .6rem;
    border-radius: 999px;
    color: #0f5132;
    background: #d1f3e8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .01em;
    animation: softPop .28s ease both;
}

.task-list {
    display: grid;
    gap: .85rem;
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    animation: rowReveal .42s ease both;
    transition: transform .18s ease, background-color .18s ease;
}

.task-row:hover {
    transform: translateX(3px);
}

.task-row small,
.task-row p {
    display: block;
    color: var(--muted);
    margin: .2rem 0 0;
}

.task-row-open {
    align-items: flex-start;
}

.task-row-open > div:nth-child(2) {
    flex: 1;
}

.task-date-column {
    width: 124px;
    flex: 0 0 124px;
    padding-top: .1rem;
}

.task-date-column span {
    display: block;
    color: var(--ink);
    font-weight: 800;
}

.task-date-column small {
    color: var(--muted);
}

.task-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding-top: 1rem;
}

.task-pager a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, .04);
    text-decoration: none;
}

.task-pager a.disabled {
    pointer-events: none;
    opacity: .45;
}

.task-pager span {
    color: var(--muted);
    font-weight: 800;
}

.project-pager {
    padding-top: .25rem;
}

.tasks-history-panel {
    width: 100%;
}

.tasks-toolbar {
    align-items: center;
}

.tasks-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

.tasks-toolbar-actions form {
    min-width: 240px;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.add-task-panel {
    padding: 0;
    overflow: hidden;
}

.add-task-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid #edf0f5;
}

.add-task-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.task-close {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #ef4438;
    font-size: .85rem;
}

.task-close:hover {
    color: #fff;
    background: #d93025;
}

.task-note {
    margin: 1.25rem 1.25rem 1.6rem;
    color: #f3ebe7;
}

.add-task-form {
    display: grid;
    gap: 1.1rem;
    padding: 0 1.25rem 1.25rem;
}

.add-task-form .form-label {
    color: #d0c4c0;
    font-size: .95rem;
    margin-bottom: .55rem;
}

.task-input {
    min-height: 48px;
    border: 1px solid #b8bbc5;
    border-radius: 8px;
    color: #1f2937;
    font-weight: 600;
}

.task-input::placeholder {
    color: #9b9da3;
    font-weight: 700;
}

.task-input:focus {
    border-color: #4b86f7;
    box-shadow: 0 0 0 .2rem rgba(75, 134, 247, .16);
    animation: focusPulse .28s ease both;
}

.task-select {
    min-height: 49px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background-color: #292d3f;
    font-weight: 800;
    padding-inline: .85rem 2.5rem;
}

.task-select:disabled {
    color: #d8dbe6;
    background-color: #3a3e50;
    opacity: 1;
}

.task-select:focus {
    border: 0;
    box-shadow: 0 0 0 .2rem rgba(75, 134, 247, .18);
    animation: focusPulse .28s ease both;
}

.task-select option {
    color: #111827;
    background: #fff;
}

.add-task-btn {
    min-height: 40px;
    min-width: 114px;
    border-radius: 8px;
    background: #4b86f7;
    border-color: #4b86f7;
    font-weight: 700;
}

.current-work {
    padding: 0;
    overflow: hidden;
    border-color: #cfe0ff;
}

.current-work-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
    border-bottom: 1px solid var(--line);
}

.current-work-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
}

.current-work-head small {
    color: var(--muted);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: .35rem .75rem;
    border-radius: 999px;
    color: #075e47;
    background: #d8f8ec;
    font-weight: 800;
    font-size: .84rem;
}

.current-task-table thead th {
    color: #fff;
    background: var(--primary);
    border-bottom: 0;
    font-size: .8rem;
    text-transform: none;
    text-align: center;
    vertical-align: middle;
}

.current-task-table tbody td {
    padding: 1rem;
    text-align: center;
    border-color: var(--line);
}

.current-task-table tbody tr,
.manage-project-table tbody tr,
.project-report-table tbody tr,
.data-table tbody tr {
    animation: rowReveal .38s ease both;
    transition: background-color .18s ease, transform .18s ease;
}

.current-task-table tbody tr:hover,
.manage-project-table tbody tr:hover,
.project-report-table tbody tr:hover,
.data-table tbody tr:hover {
    transform: scale(1.003);
}

.status-select {
    min-width: 180px;
    margin-inline: auto;
    border: 0;
    border-bottom: 1px solid #adb5bd;
    border-radius: 0;
    color: #1f2937;
    background-color: transparent;
    font-weight: 800;
    text-align: left;
}

.status-select:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--primary);
    background: #edf4ff;
    transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.icon-btn:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-1px) scale(1.04);
}

.icon-btn.danger {
    color: #c5342f;
    background: #fff1f0;
}

.icon-btn.danger:hover {
    color: #fff;
    background: #dc3545;
}

.current-work-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
}

.current-work-actions form {
    margin-left: auto;
}

.empty-current-task {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 112px;
    color: var(--muted);
    font-weight: 700;
}

.empty-current-task i {
    color: var(--primary);
    font-size: 1.4rem;
}

.attendance-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #eaf3ff;
    border: 1px solid #c7dcfa;
}

.attendance-hero h2 {
    font-weight: 800;
}

.attendance-hero p {
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 0;
}

.stacked-form {
    display: grid;
    gap: .9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.project-manager {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.project-manager-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border-bottom: 1px solid var(--line);
}

.project-manager-top h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
}

.project-manager-top .btn-primary {
    justify-self: end;
}

.project-manager-top .btn-light {
    justify-self: start;
    border: 1px solid var(--line);
    font-weight: 700;
}

.manage-project-table {
    margin: 0;
}

.manage-project-table thead th {
    color: #fff;
    background: var(--primary);
    border-bottom: 0;
    text-align: center;
    text-transform: none;
    font-size: .85rem;
}

.manage-project-table tbody td {
    padding: 1rem;
    text-align: center;
    border-color: var(--line);
}

.manage-project-table tbody tr:hover {
    background: #f7fbff;
}

.project-code-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(120px, .7fr) minmax(180px, 1fr) minmax(100px, .5fr) auto;
    gap: .75rem;
    align-items: center;
}

.project-modal-grid .form-control,
.project-modal-grid .form-select,
.project-code-form .form-control,
.project-code-form .form-select {
    min-height: 48px;
}

.project-modal-grid textarea.form-control {
    min-height: 132px;
}

.projects-board {
    display: grid;
    gap: 1rem;
}

.projects-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.projects-toolbar h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
}

.projects-toolbar .btn-light {
    border: 1px solid var(--line);
    font-weight: 700;
}

.projects-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

.projects-section-title {
    min-height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ongoing-project-list {
    display: grid;
    gap: 1rem;
}

.ongoing-project-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.ongoing-project-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-title-line {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.project-title-line h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.project-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2fbf71;
    box-shadow: 0 0 0 4px rgba(47, 191, 113, .12);
    animation: liveDot 1.8s ease-in-out infinite;
}

.ongoing-project-head p {
    margin: .4rem 0 0 1.65rem;
    color: var(--muted);
}

.project-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.project-overview-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.project-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.project-snapshot-card {
    padding: .9rem 1rem;
    border: 1px solid rgba(208, 196, 192, .12);
    border-radius: 10px;
    background: rgba(7, 5, 5, .22);
}

.project-snapshot-card span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.project-snapshot-card strong {
    display: block;
    margin-top: .45rem;
    color: var(--ink);
    font-size: .98rem;
    font-weight: 900;
}

.project-divider {
    height: 1px;
    margin: 1rem 0;
    background: var(--line);
}

.project-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .75fr);
    gap: 1rem;
    align-items: start;
}

.project-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.project-section-head small {
    color: var(--muted);
    font-weight: 700;
}

.project-activity-block h4,
.project-side-panel h4 {
    margin: 0 0 .75rem;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 900;
}

.project-activity-list {
    display: grid;
    gap: .75rem;
    padding: .75rem;
    border-radius: 8px;
    background: #f7fbff;
    border: 1px solid #dceaff;
}

.project-activity-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
    animation: rowReveal .42s ease both;
}

.project-activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.project-activity-item strong {
    display: inline-block;
    margin-right: .45rem;
    font-weight: 900;
}

.project-activity-item span,
.project-activity-item p,
.project-activity-item time,
.project-empty-line {
    color: var(--muted);
}

.project-activity-item p {
    margin: .35rem 0 0;
}

.project-activity-item time {
    white-space: nowrap;
    font-size: .88rem;
}

.project-side-panel {
    display: grid;
    gap: 1rem;
    align-content: space-between;
    min-height: 100%;
    padding: .95rem 1rem;
    border: 1px solid rgba(208, 196, 192, .12);
    border-radius: 10px;
    background: rgba(7, 5, 5, .22);
}

.contributors-list {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.contributors-list span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 30px;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: .9rem;
}

.project-view-link {
    color: var(--primary);
    font-weight: 900;
    white-space: nowrap;
}

.project-detail {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.project-detail-toolbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.project-detail-toolbar h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
}

.project-detail-toolbar .btn-light {
    border: 1px solid var(--line);
    font-weight: 700;
}

.project-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.project-filter-bar .form-select {
    min-width: 220px;
}

.month-picker {
    width: 150px;
}

.month-step {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: var(--primary);
    background: #edf4ff;
}

.month-step:hover {
    color: #fff;
    background: var(--primary);
}

.project-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.project-detail-summary div {
    padding: 1rem 1.25rem;
    background: #fff;
}

.project-detail-summary span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-detail-summary strong {
    display: block;
    margin-top: .2rem;
    font-size: 1.2rem;
}

.project-report-table {
    margin: 0;
}

.project-report-table thead th {
    color: #fff;
    background: var(--primary);
    border-bottom: 0;
    text-align: center;
    text-transform: none;
    font-size: .85rem;
}

.project-report-table tbody td {
    padding: 1rem;
    text-align: center;
    border-color: var(--line);
}

.project-report-table tbody tr:hover {
    background: #f7fbff;
}

.notes-pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .65rem;
    border-radius: 8px;
    color: var(--primary);
    background: #edf4ff;
    font-weight: 800;
}

.employee-directory-panel {
    width: 100%;
}

.employee-directory-panel .panel-head small {
    display: block;
    margin-top: .25rem;
    color: var(--muted);
}

.employee-table tbody td {
    padding: .95rem .75rem;
}

.employee-attendance-table tbody td {
    text-align: center;
}

.attendance-task-modal-list {
    display: grid;
    gap: .9rem;
}

.attendance-task-modal-item {
    padding: 1rem;
    border: 1px solid rgba(208, 196, 192, .12);
    border-radius: 8px;
    background: rgba(7, 5, 5, .28);
}

.task-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.task-modal-title-row div {
    display: inline-flex;
    align-items: flex-start;
    gap: .55rem;
    min-width: 0;
}

.task-modal-title-row strong,
.task-modal-title-row span {
    color: #fff8f4;
    font-weight: 900;
}

.task-modal-title-row strong {
    overflow-wrap: anywhere;
}

.task-modal-title-row span {
    flex: 0 0 auto;
    max-width: 45%;
    text-align: right;
    color: #f59b38;
    overflow-wrap: anywhere;
}

.attendance-task-modal-item p {
    margin: .65rem 0 1rem 1.9rem;
    color: #d0c4c0;
    line-height: 1.5;
}

.task-modal-meta {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin-left: 1.9rem;
    color: var(--muted);
}

.task-modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 32px;
    padding: .35rem .6rem;
    border-radius: 8px;
    background: rgba(208, 196, 192, .07);
    box-shadow: inset 0 0 0 1px rgba(208, 196, 192, .08);
    font-size: .92rem;
}

.task-modal-meta strong {
    color: #fff8f4;
    font-weight: 800;
}

.task-list-modal .modal-body {
    max-height: min(70vh, 720px);
    overflow-y: auto;
}

.employee-status-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
}

.employee-status-form .form-select {
    width: 150px;
}

.employee-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
}

.attendance-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
}

.admin-attendance-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

.admin-attendance-filters form {
    margin: 0;
}

.admin-attendance-filters .form-select {
    min-width: 220px;
}

.month-popover-wrap {
    position: relative;
}

.month-display-btn {
    min-width: 150px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(208, 196, 192, .18);
    border-radius: 8px;
    color: #fff8f4;
    background: rgba(42, 36, 34, .74);
    font-weight: 800;
}

.month-display-btn:hover,
.month-popover-wrap.open .month-display-btn {
    border-color: rgba(241, 58, 10, .55);
    background: rgba(241, 58, 10, .12);
}

.month-popover {
    position: absolute;
    right: 0;
    top: calc(100% + .55rem);
    z-index: 30;
    width: 260px;
    padding: .85rem;
    border: 1px solid var(--cy-border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(38, 33, 31, .98), rgba(13, 14, 14, .98));
    box-shadow: var(--cy-shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.month-popover-wrap.open .month-popover {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.month-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.month-popover-head strong {
    color: #fff8f4;
    font-size: 1rem;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.month-grid a {
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #d0c4c0;
    background: rgba(208, 196, 192, .06);
    font-weight: 800;
}

.month-grid a:hover,
.month-grid a.active {
    color: #fff;
    background: rgba(241, 58, 10, .78);
}

.project-card {
    position: relative;
    padding: 1.1rem;
    min-height: 170px;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 800;
    padding-right: 3rem;
}

.project-card p,
.project-card small {
    color: var(--muted);
}

.project-status {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d1f3e8;
    color: #0f5132;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: .85rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: .35rem;
}

.timeline-dot.muted {
    background: var(--accent);
}

.timeline-item p {
    color: var(--muted);
    margin: .25rem 0;
}

.timeline-item small {
    color: var(--muted);
}

.row-focus {
    background: #f8fbff;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn {
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(.98);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #d9f2ec, transparent 28%), #eef4fb;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.login-panel {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
}

.login-copy h1 {
    margin: 2rem 0 1rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 900;
}

.login-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
}

.brand-login strong {
    color: var(--ink);
}

.login-card {
    padding: 2rem;
    animation: panelRise .55s cubic-bezier(.2, .8, .2, 1) both;
}

.login-card h2 {
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.form-hint {
    color: var(--muted);
    font-size: .82rem;
    margin: 1rem 0 0;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        min-height: auto;
        overflow-y: visible;
    }

    .metric-grid,
    .login-panel {
        grid-template-columns: 1fr 1fr;
    }

    .project-code-form {
        grid-template-columns: 1fr;
    }

    .projects-toolbar {
        grid-template-columns: 1fr;
    }

    .projects-toolbar-actions {
        justify-content: flex-start;
    }

    .project-overview-grid,
    .project-content-grid {
        grid-template-columns: 1fr;
    }

    .project-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-toolbar {
        grid-template-columns: 1fr;
    }

    .project-filter-bar {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .main,
    .login-wrap {
        padding: 1rem;
    }

    .topbar,
    .attendance-hero,
    .task-row,
    .current-work-head,
    .current-work-actions,
    .tasks-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tasks-toolbar-actions,
    .tasks-toolbar-actions form,
    .tasks-toolbar-actions .btn {
        width: 100%;
    }

    .task-date-column {
        width: 100%;
        flex-basis: auto;
    }

    .current-work-actions form {
        margin-left: 0;
    }

    .current-work-actions .btn,
    .current-work-actions form,
    .current-work-actions button {
        width: 100%;
    }

    .metric-grid,
    .login-panel,
    .project-code-form {
        grid-template-columns: 1fr;
    }

    .user-pill {
        align-items: flex-start;
    }

    .la-clock {
        justify-self: stretch;
        min-width: 0;
        text-align: left;
    }

    .project-manager-top {
        grid-template-columns: 1fr;
    }

    .project-manager-top h2 {
        text-align: left;
    }

    .project-manager-top .btn-primary,
    .project-manager-top .btn-light {
        justify-self: stretch;
    }

    .ongoing-project-head,
    .project-content-grid,
    .project-activity-item {
        display: flex;
        flex-direction: column;
    }

    .project-activity-item time {
        white-space: normal;
    }

    .task-modal-title-row {
        flex-direction: column;
    }

    .task-modal-title-row span {
        max-width: none;
        text-align: left;
        margin-left: 1.9rem;
    }

    .attendance-task-modal-item p,
    .task-modal-meta {
        margin-left: 0;
    }

    .projects-toolbar-actions .btn,
    .projects-toolbar .btn-light,
    .project-filter-bar .btn,
    .project-filter-bar .form-select,
    .project-filter-bar .month-picker,
    .project-detail-toolbar .btn-light,
    .employee-directory-panel .panel-head .btn,
    .employee-row-actions,
    .employee-status-form,
    .employee-status-form .form-select,
    .attendance-filter,
    .attendance-filter .month-picker,
    .admin-attendance-filters,
    .admin-attendance-filters form,
    .admin-attendance-filters .form-select,
    .month-popover-wrap,
    .month-display-btn {
        width: 100%;
    }

    .month-popover {
        left: 0;
        right: auto;
        width: 100%;
    }

    .project-detail-summary {
        grid-template-columns: 1fr;
    }
}

@keyframes appFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rowReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPop {
    from {
        transform: scale(.96);
    }
    to {
        transform: scale(1);
    }
}

@keyframes focusPulse {
    0% {
        transform: scale(.995);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes liveDot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(47, 191, 113, .12);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(47, 191, 113, .05);
    }
}

@keyframes activeNavPulse {
    0%, 100% {
        opacity: .65;
    }
    50% {
        opacity: 1;
    }
}

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

/* CyFocus-style dark dashboard skin */
:root {
    --ink: #f3ebe7;
    --muted: #a79b96;
    --line: rgba(208, 196, 192, .12);
    --surface: rgba(29, 24, 22, .72);
    --page: #070505;
    --primary: #f13a0a;
    --primary-dark: #b92b09;
    --accent: #f59b38;
    --sidebar: rgba(19, 18, 17, .86);
    --cy-card: rgba(31, 27, 25, .68);
    --cy-card-strong: rgba(42, 36, 34, .78);
    --cy-border: rgba(208, 196, 192, .11);
    --cy-shadow: 0 22px 70px rgba(0, 0, 0, .42);
    --cy-glow: 0 0 0 1px rgba(241, 58, 10, .18), 0 18px 48px rgba(92, 24, 17, .32);
}

body {
    background:
        radial-gradient(circle at 25% 0%, rgba(179, 85, 55, .28), transparent 34%),
        radial-gradient(circle at 85% 8%, rgba(92, 24, 17, .34), transparent 28%),
        linear-gradient(135deg, #070505 0%, #141312 48%, #0b0d0d 100%);
    color: var(--ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 78%);
    z-index: -1;
}

.app-shell {
    background: transparent;
}

.sidebar {
    margin: .9rem 0 .9rem .9rem;
    height: calc(100vh - 1.8rem);
    border: 1px solid var(--cy-border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(28, 24, 22, .92), rgba(13, 14, 14, .88));
    box-shadow: var(--cy-shadow);
    backdrop-filter: blur(18px);
}

.brand-mark {
    background: linear-gradient(135deg, #f13a0a, #b35537);
    box-shadow: 0 0 24px rgba(241, 58, 10, .24);
}

.brand small,
.user-pill small,
.task-row small,
.task-row p,
.ongoing-project-head p,
.project-activity-item span,
.project-activity-item p,
.project-activity-item time,
.project-empty-line,
.timeline-item p,
.timeline-item small,
.form-hint,
.project-detail-summary span {
    color: var(--muted);
}

.sidebar .nav-link {
    color: #d0c4c0;
    background: transparent;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(208, 196, 192, .08);
    box-shadow: inset 0 0 0 1px rgba(208, 196, 192, .05);
}

.sidebar .nav-link.active::before {
    background: #f13a0a;
    box-shadow: 0 0 16px rgba(241, 58, 10, .6);
}

.main {
    color: var(--ink);
}

.topbar h1,
.panel-head h2,
.project-detail-toolbar h2,
.projects-toolbar h2,
.current-work-head h2,
.ongoing-project-card h3,
.login-card h2 {
    color: var(--ink);
}

.eyebrow {
    color: #f59b38;
}

.user-pill,
.la-clock,
.metric-card,
.panel,
.project-card,
.login-card,
.current-work,
.project-manager,
.projects-toolbar,
.ongoing-project-card,
.project-detail,
.attendance-hero,
.login-card {
    color: var(--ink);
    border-color: var(--cy-border);
    background: linear-gradient(180deg, rgba(38, 33, 31, .82), rgba(20, 20, 19, .72));
    box-shadow: var(--cy-shadow);
    backdrop-filter: blur(18px);
}

.metric-card:hover,
.panel:hover,
.ongoing-project-card:hover,
.project-detail:hover,
.project-manager:hover {
    box-shadow: var(--cy-glow);
}

.metric-card i,
.empty-current-task i,
.month-step,
.project-view-link {
    color: #f13a0a;
}

.metric-card span,
.table thead th {
    color: #a79b96;
}

.metric-card strong,
.project-detail-summary strong {
    color: #fff8f4;
}

.table {
    color: var(--ink);
}

.table > :not(caption) > * > * {
    color: var(--ink);
    background-color: transparent;
    border-color: rgba(208, 196, 192, .13);
}

.table thead th,
.current-task-table thead th,
.manage-project-table thead th,
.project-report-table thead th {
    color: #fff8f4;
    background: rgba(42, 36, 34, .96);
    border-color: rgba(208, 196, 192, .08);
}

.current-task-table tbody tr:hover,
.manage-project-table tbody tr:hover,
.project-report-table tbody tr:hover,
.data-table tbody tr:hover,
.row-focus {
    background: rgba(208, 196, 192, .06);
}

.task-row,
.project-activity-list,
.project-detail-summary div,
.project-activity-item,
.empty-current-task {
    color: var(--ink);
    border-color: rgba(208, 196, 192, .12);
    background: rgba(7, 5, 5, .32);
}

.project-divider {
    background: rgba(208, 196, 192, .14);
}

.status-badge,
.live-pill {
    color: #f4fff7;
    background: rgba(38, 80, 43, .68);
    box-shadow: inset 0 0 0 1px rgba(73, 187, 104, .16);
}

.live-pill.muted {
    color: #d0c4c0;
    background: rgba(208, 196, 192, .08);
    box-shadow: inset 0 0 0 1px rgba(208, 196, 192, .18);
}

.btn-primary,
.add-task-btn {
    color: #fff;
    background: linear-gradient(135deg, #f13a0a, #b35537);
    border-color: rgba(241, 58, 10, .8);
    box-shadow: 0 12px 28px rgba(162, 9, 3, .24);
}

.btn-primary:hover,
.add-task-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff4a16, #c65d3d);
    border-color: #ff4a16;
    box-shadow: 0 16px 34px rgba(162, 9, 3, .34);
}

.btn-outline-primary,
.btn-outline-light,
.btn-light {
    color: #f3ebe7;
    border-color: rgba(208, 196, 192, .22);
    background: rgba(208, 196, 192, .06);
}

.btn-outline-primary:hover,
.btn-outline-light:hover,
.btn-light:hover {
    color: #fff;
    border-color: rgba(241, 58, 10, .6);
    background: rgba(241, 58, 10, .18);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #26502b, #2f8e50);
    border-color: rgba(47, 142, 80, .85);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #a20903, #f13a0a);
    border-color: rgba(241, 58, 10, .85);
}

.form-control,
.form-select,
.task-input,
.task-select,
.status-select,
.month-picker {
    color: #fff8f4;
    border-color: rgba(208, 196, 192, .18);
    background-color: rgba(7, 5, 5, .34);
}

.form-control::placeholder,
.task-input::placeholder {
    color: rgba(208, 196, 192, .58);
}

.form-control:focus,
.form-select:focus,
.task-input:focus,
.task-select:focus,
.status-select:focus {
    color: #fff;
    border-color: rgba(241, 58, 10, .75);
    background-color: rgba(7, 5, 5, .46);
    box-shadow: 0 0 0 .18rem rgba(241, 58, 10, .16);
}

.form-select option,
.task-select option {
    color: #f3ebe7;
    background: #1d1816;
}

.task-select {
    background-color: rgba(42, 36, 34, .9);
}

.task-select:disabled {
    color: rgba(208, 196, 192, .7);
    background-color: rgba(42, 36, 34, .56);
}

.input-group-text {
    color: #d0c4c0;
    border-color: rgba(208, 196, 192, .18);
    background: rgba(208, 196, 192, .08);
}

.modal-content,
.dropdown-menu {
    color: var(--ink);
    border: 1px solid var(--cy-border);
    background: linear-gradient(180deg, rgba(38, 33, 31, .96), rgba(13, 14, 14, .96));
    box-shadow: var(--cy-shadow);
    backdrop-filter: blur(18px);
}

.modal-header,
.modal-footer {
    border-color: rgba(208, 196, 192, .12);
}

.btn-close {
    filter: invert(1) grayscale(1);
    opacity: .75;
}

.icon-btn,
.notes-pill,
.month-step {
    color: #f3ebe7;
    background: rgba(208, 196, 192, .08);
    box-shadow: inset 0 0 0 1px rgba(208, 196, 192, .08);
}

.icon-btn:hover,
.month-step:hover {
    color: #fff;
    background: rgba(241, 58, 10, .78);
}

.icon-btn.danger {
    color: #ffb2a2;
    background: rgba(162, 9, 3, .18);
}

.icon-btn.danger:hover {
    color: #fff;
    background: #a20903;
}

.contributors-list span {
    color: #f3ebe7;
    background: rgba(208, 196, 192, .08);
    box-shadow: inset 0 0 0 1px rgba(208, 196, 192, .08);
}

.project-live-dot {
    background: #4fce65;
}

.projects-section-title {
    color: #fff8f4;
    background: linear-gradient(90deg, #5c1811, #a20903 52%, #b35537);
}

.ongoing-project-list .ongoing-project-card:nth-child(odd) {
    border-color: rgba(241, 58, 10, .18);
    background: linear-gradient(180deg, rgba(43, 28, 24, .88), rgba(20, 20, 19, .74));
}

.ongoing-project-list .ongoing-project-card:nth-child(even) {
    border-color: rgba(79, 206, 101, .14);
    background: linear-gradient(180deg, rgba(30, 33, 28, .88), rgba(20, 20, 19, .74));
}

.ongoing-project-list .ongoing-project-card:nth-child(odd) .project-snapshot-card,
.ongoing-project-list .ongoing-project-card:nth-child(odd) .project-side-panel,
.ongoing-project-list .ongoing-project-card:nth-child(odd) .project-activity-list,
.ongoing-project-list .ongoing-project-card:nth-child(odd) .project-activity-item {
    border-color: rgba(241, 58, 10, .14);
    background: rgba(56, 22, 16, .22);
}

.ongoing-project-list .ongoing-project-card:nth-child(even) .project-snapshot-card,
.ongoing-project-list .ongoing-project-card:nth-child(even) .project-side-panel,
.ongoing-project-list .ongoing-project-card:nth-child(even) .project-activity-list,
.ongoing-project-list .ongoing-project-card:nth-child(even) .project-activity-item {
    border-color: rgba(79, 206, 101, .12);
    background: rgba(24, 46, 28, .18);
}

.ongoing-project-list .ongoing-project-card:nth-child(odd) .project-live-dot {
    background: #f26a38;
    box-shadow: 0 0 0 4px rgba(242, 106, 56, .12);
}

.ongoing-project-list .ongoing-project-card:nth-child(even) .project-live-dot {
    background: #4fce65;
    box-shadow: 0 0 0 4px rgba(79, 206, 101, .12);
}

.project-manager-top,
.projects-toolbar,
.project-detail-toolbar,
.current-work-head,
.add-task-head,
.login-page,
.login-wrap {
    background: transparent;
}

.login-page {
    background:
        radial-gradient(circle at 22% 8%, rgba(179, 85, 55, .32), transparent 34%),
        linear-gradient(135deg, #070505 0%, #141312 55%, #0b0d0d 100%);
}

.alert {
    color: #fff8f4;
    border-color: rgba(208, 196, 192, .14);
    background: rgba(42, 36, 34, .92);
}

.add-task-panel .task-note {
    color: #f3ebe7;
}

.add-task-panel .task-note strong {
    color: #fff8f4;
}

.add-task-panel .form-label {
    color: #d0c4c0;
}
