/* Workload tracker styles (extends /css/main.css) */

:root {
    --tracker-success: #2ee59d;
    --tracker-warning: #fbbf24;
    --tracker-danger: #ff4d9d;
}

/* Active nav underline */
.nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 247, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Layout helpers retained from older templates */
.flexContainer {
    width: min(var(--max-width), calc(100% - 3.2rem));
    margin-inline: auto;
    display: flex;
    gap: 1.8rem;
}

.flexColumn {
    min-width: 0;
}

.vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1000px) {
    .flexContainer {
        flex-direction: column;
    }
}

/* Button extensions */
.button--small {
    padding: 0.6rem 1.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.button--danger {
    --button-bg: rgba(255, 77, 157, 0.12);
    --button-bg-hover: rgba(255, 77, 157, 0.22);
    --button-text: var(--color-text);
    --button-border: rgba(255, 77, 157, 0.35);
    --button-border-hover: rgba(255, 77, 157, 0.6);
    --button-shadow: inset 0 0 0 1px rgba(255, 77, 157, 0.25);
    --button-shadow-hover: inset 0 0 0 1px rgba(255, 77, 157, 0.45), 0 14px 32px rgba(255, 77, 157, 0.18);
}

.appInlineForm .button {
    white-space: nowrap;
}

/* Sections */
.appSection,
.authSection {
    padding: 4rem 0 5rem;
}

.authSection {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
}

.authContainer {
    justify-content: center;
}

.authCard {
    position: relative;
    padding: 2.4rem;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(18, 16, 46, 0.85), rgba(12, 11, 30, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08), var(--shadow-soft);
    overflow: hidden;
    max-width: 560px;
    width: 100%;
}

.authCard::after {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 60%);
    filter: blur(50px);
    opacity: 0.65;
    pointer-events: none;
}

.authCard p {
    color: var(--color-text-dim);
}

.authForm {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.authForm label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.authForm input[type="email"],
.authForm input[type="password"] {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.22);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.authForm input[type="email"]::placeholder,
.authForm input[type="password"]::placeholder {
    color: rgba(214, 219, 255, 0.55);
}

.authForm input[type="email"]:focus,
.authForm input[type="password"]:focus {
    border-color: rgba(38, 224, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(38, 224, 255, 0.18);
    background: rgba(17, 15, 42, 0.3);
    outline: none;
}

.authRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.authCheckbox {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(245, 247, 255, 0.85);
    font-size: 0.95rem;
}

.authCheckbox input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--color-secondary);
}

.authHint {
    font-size: 0.85rem;
    color: rgba(214, 219, 255, 0.55);
}

.authAlert {
    border-radius: 20px;
    border: 1px solid rgba(255, 77, 157, 0.45);
    background: rgba(255, 77, 157, 0.1);
    color: rgba(245, 247, 255, 0.92);
    padding: 0.9rem 1rem;
}

.authAlert p {
    color: rgba(245, 247, 255, 0.92);
}

.authSubtle {
    color: rgba(214, 219, 255, 0.55);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .authCard {
        padding: 2rem;
    }
}

/* Tracker UI */
.appContainer {
    gap: 1.8rem;
}

.appHero {
    padding: 0.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.appHeaderRow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.appHeaderActions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.appGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

@media (max-width: 900px) {
    .appGrid {
        grid-template-columns: 1fr;
    }
}

.appCard {
    position: relative;
    padding: 1.9rem;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(18, 16, 46, 0.85), rgba(12, 11, 30, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08), var(--shadow-soft);
    overflow: hidden;
}

.appCard::after {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 60%);
    filter: blur(50px);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}

.appCard:hover::after {
    opacity: 0.9;
    transform: scale(1.05);
}

.appCardHeader {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.appMuted {
    color: var(--color-text-dim);
}

.appSmall {
    font-size: 0.9rem;
}

.appBodyText {
    color: rgba(245, 247, 255, 0.92);
    white-space: normal;
}

.appPill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.25);
    color: rgba(245, 247, 255, 0.85);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.appRow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.appLink {
    color: var(--color-secondary);
    text-decoration: none;
}

.appLink:hover {
    opacity: 0.85;
}

.appLinkStrong {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.appLinkStrong:hover {
    opacity: 0.85;
}

.appList {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.appListItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    background: rgba(17, 15, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.appListItem:hover {
    transform: translateY(-1px);
    border-color: rgba(38, 224, 255, 0.25);
    background: rgba(17, 15, 42, 0.32);
}

.appListItemStack {
    align-items: flex-start;
}

.appListMain {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.appListMeta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.appForm {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.appFormCompact {
    margin-top: 1.25rem;
}

.appInlineForm {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.appForm label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.appInput,
.appTextarea,
.appSelect,
.appFile {
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.22);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    width: 100%;
}

.appFile {
    padding: 0.65rem 0.9rem;
}

.appInput::placeholder,
.appTextarea::placeholder {
    color: rgba(214, 219, 255, 0.55);
}

.appInput:focus,
.appTextarea:focus,
.appSelect:focus,
.appFile:focus {
    border-color: rgba(38, 224, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(38, 224, 255, 0.18);
    background: rgba(17, 15, 42, 0.3);
    outline: none;
}

.appTextarea {
    resize: vertical;
}

.appSelect {
    appearance: auto;
    -webkit-appearance: auto;
}

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

@media (max-width: 900px) {
    .appFormRow {
        grid-template-columns: 1fr;
    }
}

.appAlert {
    border-radius: 20px;
    border: 1px solid rgba(255, 77, 157, 0.45);
    background: rgba(255, 77, 157, 0.1);
    color: rgba(245, 247, 255, 0.92);
    padding: 0.95rem 1.1rem;
}

.appAlert p {
    color: rgba(245, 247, 255, 0.92);
}

.appKeyValues {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.appKeyValue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
}

.appChecklist {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.appChecklistItem {
    padding: 0.35rem 0;
}

.appCheckbox {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(245, 247, 255, 0.9);
}

.appCheckbox input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--color-secondary);
}

.appDoneText {
    color: rgba(214, 219, 255, 0.55);
    text-decoration-line: line-through;
}

.appDetails {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}

.appSummary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    cursor: pointer;
}

.appSummary::marker {
    content: "";
}

.appMessages {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.appMessage {
    border-radius: 24px;
    background: rgba(17, 15, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.appMessageMine {
    background: rgba(38, 224, 255, 0.08);
    border-color: rgba(38, 224, 255, 0.25);
}

.appMessageMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.appMessageBody {
    color: rgba(245, 247, 255, 0.9);
    white-space: normal;
}

/* Status / priority / visibility pills */
.appPillStatus--todo {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.22);
    color: rgba(214, 219, 255, 0.75);
}

.appPillStatus--in_progress {
    border-color: rgba(38, 224, 255, 0.35);
    background: rgba(38, 224, 255, 0.1);
    color: var(--color-secondary);
}

.appPillStatus--blocked {
    border-color: rgba(255, 77, 157, 0.35);
    background: rgba(255, 77, 157, 0.1);
    color: var(--color-tertiary);
}

.appPillStatus--done,
.appPillStatus--resolved {
    border-color: rgba(46, 229, 157, 0.35);
    background: rgba(46, 229, 157, 0.1);
    color: var(--tracker-success);
}

.appPillStatus--waiting {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.1);
    color: var(--tracker-warning);
}

.appPillStatus--open {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.1);
    color: rgba(214, 219, 255, 0.9);
}

.appPillStatus--closed {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.22);
    color: rgba(214, 219, 255, 0.75);
}

.appPillPriority--low {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.22);
    color: rgba(214, 219, 255, 0.75);
}

.appPillPriority--medium {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.1);
    color: rgba(214, 219, 255, 0.9);
}

.appPillPriority--high {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.1);
    color: var(--tracker-warning);
}

.appPillPriority--urgent {
    border-color: rgba(255, 77, 157, 0.35);
    background: rgba(255, 77, 157, 0.1);
    color: var(--tracker-danger);
}

.appPillVisibility--public {
    border-color: rgba(46, 229, 157, 0.35);
    background: rgba(46, 229, 157, 0.1);
    color: var(--tracker-success);
}

.appPillVisibility--private {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(17, 15, 42, 0.22);
    color: rgba(214, 219, 255, 0.75);
}

/* Long-form policy pages */
.prose {
    max-width: 900px;
}

.prose p {
    color: rgba(214, 219, 255, 0.75);
}

.prose a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

