* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #17202a;
    background: #eef2f6;
}

a {
    color: #1f6feb;
    text-decoration: none;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 480px) minmax(320px, 1fr);
    min-height: 100vh;
}

.auth-shell-centered {
    place-items: center;
    grid-template-columns: 1fr;
    padding: 24px;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: #ffffff;
}

.auth-shell-centered .auth-panel {
    width: min(100%, 420px);
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.10);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
}

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

.brand small,
.intro p,
.auth-side span,
.dev-note {
    color: #667085;
}

.intro {
    margin-bottom: 28px;
}

.intro p {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.intro h1 {
    margin: 0;
    max-width: 420px;
    font-size: 28px;
    line-height: 1.1;
}

.auth-shell-centered .intro {
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label span {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 16px;
}

.auth-form input:focus {
    border-color: #1f6feb;
    outline: 3px solid rgba(31, 111, 235, 0.14);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.align-end {
    justify-content: flex-end;
}

button {
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.hide {
    display: none !important;
}

.float-start {
    float: left;
}

.float-end {
    float: right;
}

.alert {
    margin-bottom: 18px;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
}

.alert-error {
    background: #fff1f1;
    color: #b42318;
}

.alert-success {
    background: #ecfdf3;
    color: #027a48;
}

.auth-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 64px;
    background: linear-gradient(135deg, #101828, #22304a 48%, #006d77);
    color: #ffffff;
}

.auth-side h2 {
    max-width: 620px;
    margin: 10px 0;
    font-size: 42px;
    line-height: 1.08;
}

.auth-side p {
    max-width: 520px;
    color: #d6e3ea;
    font-size: 18px;
}

.back-link,
.dev-note {
    margin-top: 18px;
    font-size: 14px;
}

.dashboard {
    min-height: 100vh;
    background: #f8fafc;
}

.dashboard nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 32px;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
}

.dashboard section {
    padding: 48px 32px;
}

.dashboard h1 {
    margin: 0 0 12px;
    font-size: 36px;
}

.app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: #f5f7fa;
}

.sidebar {
    padding: 24px 18px;
    background: #111827;
    color: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    color: #ffffff;
}

.sidebar-brand .brand-mark {
    background: #ffffff;
    color: #111827;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a,
.nav-group summary {
    border-radius: 8px;
    padding: 11px 12px;
    color: #d0d5dd;
    font-size: 15px;
}

.sidebar-nav a:hover,
.nav-group summary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-group {
    display: grid;
    gap: 4px;
}

.nav-group summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary::after {
    float: right;
    content: "+";
    color: #98a2b3;
}

.nav-group[open] summary::after {
    content: "-";
}

.nav-group a {
    display: block;
    margin-left: 10px;
    padding: 9px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.25;
}

.app-main {
    padding: 25px;
    overflow-x: auto;
}

.page-title {
    border-bottom: 1px solid rgba(221, 230, 233, 0.48);
    border-radius: 5px 5px 0 0;
    background: #ffffff;
    color: #444444;
}

.page-title h1 {
    float: left;
    margin: 0;
    padding: 20px 16px;
    font-size: 20px;
    font-weight: 600;
}

.page-title .btn {
    margin: 16px 5px;
}

.project-summary {
    padding: 14px 16px 16px;
    border-bottom: 1px solid #eef1f9;
    border-radius: 0 0 5px 5px;
}

.project-summary span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.project-summary p {
    margin: 0;
    color: #4e5e6a;
    font-size: 14px;
}

.page-header {
    margin-bottom: 26px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header p {
    margin: 0 0 6px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 30px;
}

.page-header span {
    color: #667085;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
}

.summary-grid article,
.panel-form,
.table-panel {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.summary-grid article {
    display: grid;
    gap: 6px;
    padding: 20px;
}

.summary-grid strong {
    color: #101828;
    font-size: 20px;
}

.summary-grid span {
    color: #667085;
}

.split-view {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.form-page {
    max-width: 720px;
}

.form-page .panel-form {
    gap: 18px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.panel-form,
.table-panel {
    padding: 20px;
}

.panel-form {
    display: grid;
    gap: 14px;
}

.panel-form h2,
.table-panel h2 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 20px;
}

.panel-form label span {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    font-size: 15px;
}

.panel-form input,
.panel-form select {
    height: 42px;
    padding: 0 12px;
}

.panel-form textarea {
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical;
}

.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus {
    border-color: #1f6feb;
    outline: 3px solid rgba(31, 111, 235, 0.14);
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-check input {
    width: 18px;
    height: 18px;
}

.inline-check span {
    margin: 0;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 999px;
    vertical-align: middle;
}

.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 8px;
    padding: 0 12px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.btn-default {
    border: 1px solid #f2f4f6;
    background-color: #ffffff;
    color: #595959;
}

.btn-default:hover {
    border-color: #e6e6e6;
    background-color: #e6e6e6;
    color: #595959;
}

.single-view {
    display: grid;
}

.inline-form {
    border: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: none;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.inline-form .wide {
    grid-column: 1 / -1;
}

#kanban-wrapper {
    overflow-x: auto;
    border-radius: 0;
    background: #d9dee2;
    min-height: calc(100vh - 245px);
    padding-bottom: 14px;
}

.kanban-container {
    min-width: max-content;
    margin: 0;
    padding: 15px 0 0;
    background: #d9dee2;
}

.kanban-container:before,
.kanban-container:after,
.clearfix:before,
.clearfix:after {
    display: table;
    content: " ";
}

.kanban-container:after,
.clearfix:after {
    clear: both;
}

.kanban-col {
    float: left;
    width: 303px;
    margin: 0 15px;
    list-style-type: none;
}

.kanban-col-title {
    margin-right: 3px;
    margin-bottom: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 17px 15px;
    background: #ffffff;
    color: #4e5e6a;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.kanban-item-count {
    float: right;
    color: #667085;
    font-weight: 700;
}

.kanban-item-list {
    height: calc(100vh - 330px);
    max-height: none;
    min-height: 520px;
    overflow-y: auto;
}

.kanban-item {
    display: table;
    width: 300px;
    margin: 0 3px 10px 0;
    border-radius: 5px;
    padding: 10px 10px 9px;
    background-color: #ffffff;
    color: #4e5e6a;
    cursor: default;
    min-height: 41px;
}

.kanban-item:before,
.kanban-item:after {
    display: table;
    content: " ";
}

.kanban-item:after {
    clear: both;
}

.kanban-item:hover,
.kanban-item:active,
.kanban-item:focus {
    background: #eef1f9;
    color: #444444;
    text-decoration: none;
}

.kanban-item .avatar {
    float: left;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    background: #e4e7ec;
    color: #4e5e6a;
    font-size: 11px;
    font-weight: 700;
}

.task-title {
    display: block;
    min-height: 22px;
    font-size: 14px;
    line-height: 22px;
}

.task-description {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.task-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #667085;
    font-size: 12px;
}

.empty-state {
    width: 300px;
    margin: 0 3px 10px 0;
    border-radius: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.45);
    color: #667085;
    font-size: 13px;
}

.card {
    margin-bottom: 20px;
    border: none;
    border-radius: 5px 5px 0 0;
    background: #ffffff;
}

.card.mb0 {
    margin-bottom: 0;
}

.card.mt10 {
    margin-top: 10px;
}

.card-header {
    border-bottom: 1px solid #eef1f9;
    border-radius: 5px 5px 0 0;
    padding: 12px 16px;
    background-color: #ffffff;
}

.title-tab h4,
.card-header h4 {
    margin: 10px 0;
    color: #4e5e6a;
    font-size: 18px;
    font-weight: 600;
}

.title-button-group {
    float: right;
}

.title-button-group .btn {
    margin: 0.55rem 0.25rem;
}

.bg-white {
    border-color: #f2f4f6;
    background: #ffffff;
}

.kanban-filter-strip {
    min-height: 54px;
    border-bottom: 1px solid #eef1f9;
}

.task-form-shell {
    border-bottom: 1px solid #eef1f9;
    background: #ffffff;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tabs a {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 9px 12px;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.tabs a.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border-bottom: 1px solid #eaecf0;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.table-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.table-link {
    color: #1f6feb;
    font-weight: 700;
}

th {
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
}

td {
    color: #101828;
}

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

    .auth-panel {
        padding: 32px 22px;
    }

    .auth-side {
        display: none;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-shell,
    .split-view,
    .summary-grid,
    .inline-form {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 18px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .nav-group {
        grid-column: auto;
    }

    .app-main {
        padding: 22px;
    }

    .page-header-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kanban-col {
        width: 175px;
        margin: 0 10px;
    }

    .kanban-col-title {
        margin-bottom: 10px;
        padding: 10px;
    }

    .kanban-item,
    .empty-state {
        width: 175px;
        margin: 0 0 6px 0;
        padding: 5px 8px;
    }
}
