/* Global CSS for Architecture Playbook */

/* ====== THEME & BASE ====== */
:root {
    --primary-color: #000000;
    --secondary-color: #191919;
    --background-color: #ffffff;
    --card-background: #f9f9f9;
    --text-color: #191919;
    --border-color: #e8e8e8;
    --border-radius: 6px;
    --blue: #007BFF;
    --dark-blue: #0056b3;
    --green: #28a745;
    --dark-green: #1e7e34;
    --red: #dc3545;
    --dark-red: #c82333;
    --yellow: #ffc107;
    --dark-yellow: #e0a800;
    --ring: 0 0 0 3px rgba(59, 130, 246, .35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ====== RIGHT SIDE NAVIGATION (FLOATING BUBBLES) ====== */
.right-side-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2000;
    pointer-events: none;
}

.nav-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
    cursor: pointer;
    pointer-events: auto;
}

.nav-bubble {
    height: 14px;
    width: 14px;
    background-color: #d1d5db;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.nav-item:hover .nav-bubble {
    width: auto;
    height: 36px;
    padding: 0 16px;
    background-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-item.active .nav-bubble {
    background-color: var(--blue);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.nav-item.active:hover .nav-bubble {
    transform: scale(1);
}

.nav-text {
    font-weight: 700;
    font-size: 13px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

/* Hide Nav on Mobile/Tablet */
@media (max-width: 1000px) {
    .right-side-nav {
        display: none;
    }
}

/* ====== PROJECT CARD ====== */
.project-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.project-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.status-update {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.select-status {
    flex-grow: 1;
    padding: .5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.btn {
    padding: .5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .3s ease, box-shadow .2s ease, transform .12s ease;
    font-weight: 600;
}

.btn-blue {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
    padding: .6rem 1rem;
    border-radius: 6px;
}

.btn-blue:hover {
    background: #fff;
    color: #007bff;
}

.btn-green {
    background: rgba(8, 241, 58, 1);
    color: #fff;
    border: 2px solid rgba(8, 241, 58, 1);
    padding: .6rem 1rem;
    border-radius: 6px;
}

.btn-green:hover {
    background: #fff;
    color: rgba(8, 241, 58, 1);
}

.btn-orange {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: #fff;
    border: 2px solid transparent;
    padding: .6rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-orange:hover {
    background: #fff;
    color: #FF8C00;
    border-color: #FF8C00;
}

.btn-primary {
    background: #007BFF;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.inline-block {
    display: inline-block
}

.w-auto {
    width: auto
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem
}

/* ====== VISUAL ALERTS ====== */
.missing-dates {
    border: 2px solid rgb(201, 19, 19);
    box-shadow: 0 0 10px rgba(235, 41, 15, .5);
    position: relative;
    animation: pulse 2s infinite;
}

.missing-dates:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(28, 184, 80, .7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(240, 74, 9, .5)
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 39, 2, .7)
    }

    100% {
        box-shadow: 0 0 10px rgba(230, 15, 15, .5)
    }
}

/* ====== ACCORDION STYLES (Mobile) ====== */
.accordion-header {
    display: block;
    width: 100%;
}

.accordion-icon {
    display: none;
    /* Hidden on desktop */
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.accordion-content {
    display: block;
    /* Visible by default on desktop */
}

/* ====== SECTIONS & TASK CARDS ====== */
.tasks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.task-card {
    position: relative;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: .3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
    margin-bottom: 1rem;
    overflow: hidden;
    width: calc(33.333% - 1.35rem);
    z-index: 1;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-5px);
    z-index: 10;
}

.task-card.Done {
    opacity: .9
}

.task-card.Done::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: background-color .3s ease;
}

.task-header:hover {
    background: #f1f1f1;
}

.task-expand-icon {
    transition: .3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.task-card.expanded .task-expand-icon {
    transform: rotate(180deg)
}

.task-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    font-size: .9rem;
}

.task-dates {
    display: flex;
    gap: 1rem;
    color: #666;
}

.task-status-badge {
    padding: .25rem .5rem;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-todo {
    background: var(--blue);
    color: #fff;
}

.status-progress {
    background: var(--yellow);
    color: #333;
}

.status-done {
    background: var(--green);
    color: #fff;
}

.task-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
}

.task-card.expanded .task-details {
    max-height: 1000px;
}

.task-description {
    margin: .5rem 0;
    color: #666;
    font-size: .95rem;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: .5rem 0;
    font-size: .9rem;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}

/* ====== COMMENTS ====== */
.comments-section {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    cursor: pointer;
}

.message-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.message-box.expanded {
    max-height: 300px;
    overflow-y: auto;
}

.message {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: .75rem;
    font-size: .9rem;
}

.message:last-child {
    border-bottom: none;
}

.comment-form {
    margin-top: .5rem;
}

.comment-form textarea {
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
    margin-bottom: .5rem;
    font-size: .9rem;
    min-height: 60px;
}

/* ====== STATUS GROUP HEADERS ====== */
.status-section-header {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-section .task-card {
    border-left: 4px solid var(--blue);
}

.in-progress-section .task-card {
    border-left: 4px solid var(--yellow);
}

.Done-section .task-card {
    border-left: 4px solid var(--green);
}

/* ====== FLOATING STATUS CHANGER ====== */
.floating-status-changer {
    position: absolute;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    padding: 6px;
    display: none;
    z-index: 1000;
    border: 1px solid var(--border-color);
    min-width: auto;
    white-space: nowrap;
}

.floating-status-changer.active {
    display: block;
}

.status-changer-buttons {
    display: flex;
    gap: 4px;
}

.status-changer-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
    text-transform: uppercase;
    letter-spacing: .3px;
    min-width: 50px;
}

.status-changer-btn.todo {
    background: var(--blue);
    color: #fff;
}

.status-changer-btn.todo:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.status-changer-btn.progress {
    background: var(--yellow);
    color: #333;
}

.status-changer-btn.progress:hover {
    background: var(--dark-yellow);
    transform: translateY(-1px);
}

.status-changer-btn.done {
    background: var(--green);
    color: #fff;
}

.status-changer-btn.done:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
}

.status-updating {
    opacity: .6;
    pointer-events: none;
    position: relative;
}

.status-updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* ====== TOGGLE ====== */
.custom-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.custom-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.custom-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: .4s;
    border-radius: 50%;
}

.custom-toggle input:checked+.custom-slider {
    background: #007bff;
}

.custom-toggle input:checked+.custom-slider::before {
    transform: translateX(24px);
}

/* ====== FRESHNESS === */
.freshness-badge {
    display: inline-block;
    min-width: 54px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    border: 1px solid transparent;
}

.freshness-badge.fresh {
    background: #e8f7ee;
    color: #0f8a3b;
    border-color: #bfe7cc;
}

.freshness-badge.okay {
    background: #fff8e6;
    color: #b26b00;
    border-color: #ffe1a1;
}

.freshness-badge.stale {
    background: #ffe9e9;
    color: #b00020;
    border-color: #ffc7c7;
}

.overdue-label {
    background: #ff4d4d;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.freshness-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-update-text {
    font-size: 11px;
    color: #666;
}

/* ====== COUNT CARDS ====== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 1rem 0 1.25rem 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.stat-number {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width:800px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* ====== GANTT TABLE (LEFT) ====== */
.gantt-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.gantt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gantt-table thead tr {
    background: #f1f5f9;
}

.gantt-table th {
    font-weight: 800;
    font-size: 12px;
    padding: 10px 12px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.gantt-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-weight: 700;
}

.gantt-table tr:hover {
    background: #f8fafc;
}

.gantt-status-cell {
    cursor: pointer;
    position: relative;
    transition: background-color .2s ease;
}

.gantt-status-cell:hover {
    background: #f8f9fa !important;
}

/* ====== TIMELINE (RIGHT) ====== */
.timeline-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;
    /* containment */
}

.timeline-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: .5rem;
}

.btn-today {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    transition: transform .12s ease, box-shadow .12s ease;
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 14px rgba(0, 0, 0, .06);
}

.btn-today:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 10px 18px rgba(59, 130, 246, .25);
}

.btn-today:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 480px;
    /* dynamically overridden */
    overflow: auto;
    /* pannable */
    background: linear-gradient(180deg, #fff, #f9fafb),
        repeating-linear-gradient(90deg, rgba(226, 232, 240, .45) 0 1px, transparent 1px 28px);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .02);
    cursor: grab;
    user-select: none;
    overscroll-behavior: contain;
}

.viewport:active {
    cursor: grabbing;
}

.today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3b82f6;
    opacity: .95;
}

.today-pill {
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    padding: 3px 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    user-select: none;
}

.row-bg {
    position: absolute;
    left: 0;
    right: 0;
    height: 112px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(241, 245, 249, .65), rgba(241, 245, 249, .4));
}

.task-bar {
    position: absolute;
    height: 84px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    padding: 12px 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .10);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
    isolation: isolate;
    overflow: hidden;
}

.task-bar[data-status="To Do"] {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.task-bar[data-status="In Progress"] {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.task-bar[data-status="Done"] {
    background: linear-gradient(180deg, #10b981, #059669);
}

.task-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
    border-color: rgba(255, 255, 255, .85);
}

.task-bar.is-compact {
    padding: 0;
}

.task-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.task-title-line {
    font-size: 15px;
    font-weight: 900;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .01em;
}

.task-statusline {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    opacity: .95;
}

.task-left-date,
.task-right-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .01em;
    opacity: .96;
}

.task-left-date {
    left: 10px;
}

.task-right-date {
    right: 10px;
}

.task-date-chip {
    position: absolute;
    top: -24px;
    height: 20px;
    font-size: 11px;
    font-weight: 900;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transform: translateY(4px) scale(.98);
    transition: opacity .16s ease, transform .16s ease, left .16s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    white-space: nowrap;
}

.task-bar:hover .task-date-chip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.detail-ribbon {
    position: absolute;
    z-index: 3;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, left .14s ease;
}

.detail-ribbon .r-title {
    font-weight: 900;
    letter-spacing: .01em;
}

.detail-ribbon .r-sep {
    opacity: .5;
    padding: 0 6px;
}

.detail-ribbon .r-dates {
    font-weight: 800;
    opacity: .9;
}

.detail-ribbon .r-status {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 900;
}

.is-linked-hover {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
    border-radius: 12px;
}

/* ====== MEDIA QUERIES FOR MOBILE ====== */
@media (max-width:1200px) {
    .task-card {
        width: calc(50% - 1rem)
    }
}

@media (max-width:1024px) {
    .dual-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:768px) {
    .task-card {
        width: 100%;
    }

    .task-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .task-dates {
        flex-direction: column;
        gap: .25rem;
    }

    .task-actions {
        flex-direction: column;
    }

    .task-actions a,
    .task-actions button {
        width: 100%;
        text-align: center;
    }

    .status-changer-buttons {
        flex-direction: column;
        gap: 2px;
    }

    .status-changer-btn {
        min-width: 80px;
    }

    .viewport {
        height: 420px;
    }

    .task-title-line {
        font-size: 14px;
    }

    .task-statusline {
        font-size: 11px;
    }

    .task-left-date,
    .task-right-date {
        font-size: 10px;
    }

    /* Mobile Accordion */
    .project-card,
    .schedule-wrapper,
    #section-tasks,
    .charts-container {
        margin-bottom: 10px;
        padding: 15px;
    }

    .accordion-icon {
        display: block;
    }

    .accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0 !important;
        /* Override existing margin */
    }

    .accordion-content {
        display: none;
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #eee;
        animation: fadeIn 0.3s ease;
    }

    .expanded .accordion-content {
        display: block;
    }

    .expanded .accordion-icon {
        transform: rotate(180deg);
    }

    /* Hide "Center Today" button if timeline is hidden */
    .timeline-toolbar {
        display: block;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== MILESTONES CSS ====== */

/* Minimal styling to match a modern SaaS dashboard. */
.milestones-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.milestone-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    padding: 14px;
    width: 320px;
    box-shadow: 0 6px 18px rgba(11, 20, 37, 0.04);
}

.milestone-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0b1325;
}

.milestone-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.progress-wrap {
    background: #f3f4f6;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #6366f1);
    width: 0%;
    transition: width 400ms ease;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0b1325;
}

.small {
    font-size: 12px;
    color: #374151;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.modal {
    width: 440px;
    max-width: 95%;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-title {
    font-weight: 700;
    color: #0b1325;
}

.close-btn {
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

/* Form */
.form-row {
    margin-bottom: 12px;
}

.input,
textarea {
    width: 100%;
    border: 1px solid #e6e9ee;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
}

.btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: #6366f1;
    color: #fff;
}

.btn-muted {
    background: #f1f5f9;
    color: #0b1325;
}

.hint {
    font-size: 12px;
    color: #6b7280;
}

/* small helpers */
.center {
    text-align: center;
    color: #6b7280;
    padding: 10px 0;
}

.error {
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 8px;
}

.success {
    color: #16a34a;
    font-size: 13px;
    margin-bottom: 8px;
}

@media (max-width:720px) {
    .milestone-card {
        width: 100%;
    }
}

/* checkbox list */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid #f3f4f6;
}

.task-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.task-title {
    font-size: 13px;
    color: #0b1325;
}

.task-meta {
    font-size: 12px;
    color: #6b7280;
}

.select-all {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

/* ====== EXTRACTED INLINE STYLES ====== */

/* Overview Section */
.overview-card {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.overview-title {
    font-size: 2.2rem;
    color: #191919;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.overview-arrow {
    display: none;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.overview-content {
    display: block;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.dashboard-btn-wrapper {
    display: inline-block !important;
    margin: 0 !important;
    width: calc(33.33% - 0.75rem);
}

.dashboard-btn {
    display: block;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #fff;
    color: #111;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-decoration: none;
}

.project-desc-box {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: #555;
    line-height: 1.7;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.action-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.action-btn {
    background: #fff;
    color: #444;
    border: 1px solid #e8e8e8;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
}

.report-btn {
    color: #111;
    font-weight: 700;
}

.status-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.status-select {
    flex-grow: 1;
    padding: .5rem;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 1rem;
}

.status-update-btn {
    background: #10b981;
    color: #fff;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Milestones Section */
.milestones-section {
    margin-top: 30px;
}

.milestone-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.page-title {
    margin: 0;
    font-size: 1.8rem;
}

.add-milestone-btn {
    background: #06b6d4;
    margin-left: 15px;
    font-size: 12px;
}

.milestone-msg-area {
    margin-top: 8px;
}

.ms-desc-text {
    margin: 8px 0 10px 0;
    color: #444;
    font-size: 0.95rem;
}

.ms-desc-empty {
    margin: 8px 0 10px 0;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
}

.ms-tasks-label {
    margin-top: 10px;
}

.ms-tasks-label strong {
    font-size: 0.95rem;
}

.ms-task-list {
    list-style: none;
    padding-left: 0;
    margin-top: 6px;
}

.ms-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #fafafa;
}

.ms-task-info {
    overflow: hidden;
}

.ms-task-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-task-sub {
    font-size: 0.85rem;
    color: #666;
}

.ms-task-status-wrapper {
    margin-left: 12px;
    white-space: nowrap;
}

.ms-task-status-done {
    padding: 4px 8px;
    border-radius: 12px;
    background: #d4f5d8;
    color: #1b7a2f;
    font-weight: 700;
    font-size: 0.85rem;
}

.ms-task-status-progress {
    padding: 4px 8px;
    border-radius: 12px;
    background: #fff4d6;
    color: #8a6100;
    font-weight: 700;
    font-size: 0.85rem;
}

.ms-task-status-todo {
    padding: 4px 8px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
    font-weight: 700;
    font-size: 0.85rem;
}

.ms-no-tasks {
    color: #888;
    margin-top: 6px;
}

.ms-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.ms-tasks-container-box {
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    max-height: 200px;
    overflow: auto;
    padding: 6px;
    background: #fff;
}

/* ====== SCHEDULE TRACKER & COST SECTION ====== */
.schedule-wrapper {
    margin-top: 30px;
}

.section-title-1-8rem {
    margin: 0;
    font-size: 1.8rem;
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cost-section {
    margin: 20px 0;
}

.cost-heading {
    margin: 0;
    font-size: 1.8rem;
}

.charts-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charts-container h2 {
    text-align: center;
}

/* ====== LEDGER MODALS ====== */
.ledger-modal-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.ledger-modal-wrapper.open {
    display: flex;
}

.ledger-modal-content {
    width: 720px;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
}

.ledger-table thead tr {
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ledger-table th {
    padding: 6px;
}

.ledger-table td {
    padding: 6px;
}

.ledger-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.ledger-input {
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.ledger-input-amount {
    width: 120px;
}

.ledger-input-txn {
    flex: 1;
}

.ledger-summary {
    margin: 8px 0;
}

/* ====== PREFILLED TASKS MENU ====== */
.relative {
    position: relative;
}

.pf-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 420px;
    max-height: 360px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 50;
    display: none;
}

.pf-menu.open {
    display: block;
}

.pf-search-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.pf-search {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.pf-select-all {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.9rem;
}

.pf-list {
    margin-bottom: 0.5rem;
}

.pf-row {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.pf-row:hover {
    background: #f9fafb;
}

.pf-title {
    font-weight: 700;
    color: #111827;
}

.pf-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

.pf-empty-msg {
    padding: 0.6rem;
    color: #6b7280;
}

.pf-close-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0.5rem;
}

/* ====== TASK SECTION HEADERS ====== */
.tasks-section-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.add-tasks-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-green {
    background: #10b981;
    color: #fff;
    border: 2px solid #10b981;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-green:hover {
    background: #fff;
    color: #10b981;
}

.collapse-btn {
    background: #eee;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.collapse-btn:hover {
    background: #ddd;
}

/* ====== MISSING DATE BADGE ====== */
.missing-date {
    color: #dc2626;
    font-weight: 700;
}

/* ====== FILE INPUT ====== */
.file-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.file-input label {
    font-weight: 600;
}

/* ====== STAT NUMBERS (SCHEDULE SECTION) ====== */
.stat-number-todo {
    color: #0f172a;
}

.stat-number-progress {
    color: #d97706;
}

.stat-number-done {
    color: #059669;
}

.stat-number-overdue {
    color: #dc2626;
}

/* ====== NAVBAR CONSOLIDATION ====== */
/* Main navbar header and navigation */
.navbar-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-nav {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.navbar-nav-item {
    margin: 0 20px;
}

.navbar-nav-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-nav-link:hover {
    color: #666;
}

.navbar-logo {
    font-size: 24px;
    font-weight: bold;
    margin-right: 30px;
}

/* Navbar button styles */
.navbar-btn {
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navbar-btn:hover {
    background-color: #333;
}

/* Navbar form logout styling */
.navbar-form {
    display: inline;
}

/* Navbar animation for scroll */
.navbar-animated {
    transition: transform 0.3s ease;
}

/* Google Translate button styles */
.google-translate-element {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
}

.google-translate-element-gadget {
    display: inline-block;
}

.google-translate-element-gadget span {
    display: none;
}

.google-translate-element-gadget img {
    display: none;
}

.google-translate-element:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.google-translate-element:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Portfolio grid styles (from navbar.html) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-description {
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-description.expanded {
    -webkit-line-clamp: unset;
}

.read-more {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #666;
}

/* Image popup styles */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.image-popup.active {
    display: flex;
}

.popup-content {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.popup-image-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    overflow: hidden;
}

.popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popup-details {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.popup-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-description {
    font-size: 16px;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.6;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e5e5e5;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #000;
    color: #fff;
}

/* Main page styles */
.page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .popup-image-container {
        height: 50vh;
    }

    .popup-details {
        max-height: 50vh;
    }

    .google-translate-element {
        bottom: 10px;
        right: 10px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    .navbar-nav-item {
        margin: 0;
    }
}

/* ====== FORUM STYLES ====== */
.forum-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.forum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.forum-category {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forum-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.forum-category-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.forum-category-description {
    text-align: center;
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.forum-category-link {
    display: inline-block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    color: #fff;
    background: rgb(0, 0, 0);
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.forum-category-link:hover {
    background-color: #333;
}

/* ====== CONTROL CENTER NOTIFICATION STYLES ====== */
.notification-card {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    text-align: center;
}

.notification-card-title {
    font-size: 2rem;
}

/* ====== LANDING PAGE FLOATING ELEMENTS ====== */
.floating-element {
    position: absolute;
}

.floating-element-accent {
    top: 20%;
    left: 15%;
    width: 40px;
    height: 40px;
    background: var(--accent);
}

.floating-element-primary {
    bottom: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
}

/* ====== COMPLETED WORK SECTION ====== */
.work-section {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 4px solid #000;
    background-color: #f8f8f8;
}

.work-section-title {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ====== AUTH PAGE STYLES ====== */
.auth-oauth-link {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #db4437;
    color: white;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.auth-oauth-link:hover {
    background-color: #c5221e;
}

.auth-form-divider {
    margin-top: 15px;
}

/* ====== REPORTS PAGE STYLES ====== */
.report-section {
    margin-bottom: 30px;
}

.report-heading {
    font-size: 20px;
    margin: 0;
    letter-spacing: -1px;
    color: var(--primary);
}

.report-meta {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.report-content-wrapper {
    background: #f8fafc;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.report-action-button {
    background: var(--primary);
    color: #fff;
}

.report-action-button.secondary {
    background: #f1f5f9;
    color: var(--primary);
    border: 1px solid var(--border);
}

.timeline-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(64, 1fr);
    grid-template-rows: repeat(auto-fill, 112px);
    z-index: 0;
    pointer-events: none;
}

/* Vertical grid lines */
.timeline-grid>div {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

