:root {
    --ink: #13232d;
    --ink-soft: #41545f;
    --muted: #6e8089;
    --paper: #f2f1ec;
    --white: #ffffff;
    --navy: #102d40;
    --navy-deep: #091b27;
    --blue: #1c6d93;
    --blue-light: #dcecf3;
    --green: #236d58;
    --green-light: #deeee7;
    --red: #a44238;
    --red-light: #f6e4e1;
    --amber: #9a6327;
    --amber-light: #f5eadc;
    --line: #ccd4d7;
    --line-dark: #9daab0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.auth-body {
    background: var(--paper);
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(500px, 1.1fr);
}

.auth-brand-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 52px 60px;
    color: var(--white);
    background:
        linear-gradient(
            155deg,
            #091b27 0%,
            #102f43 68%,
            #16445d 100%
        );
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    text-decoration: none;
}

.brand-symbol {
    width: 45px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    font-size: 24px;
    font-weight: 900;
}

.auth-brand strong,
.sidebar-brand strong {
    display: block;
    font-size: 21px;
    line-height: 1;
}

.auth-brand small,
.sidebar-brand small {
    display: block;
    margin-top: 6px;
    color: #a9c3d0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-brand-copy {
    max-width: 610px;
    margin: auto 0;
    padding: 80px 0;
}

.auth-label,
.signin-kicker,
.dashboard-kicker,
.panel-kicker {
    color: #8fc5dc;
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    margin-top: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 5vw, 72px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.045em;
}

.auth-brand-copy p {
    max-width: 600px;
    margin-top: 28px;
    color: #cfdee5;
    font-size: 17px;
    line-height: 1.75;
}

.auth-security-note {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #a9bdc7;
    font-size: 12px;
}

.auth-form-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 55px;
}

.signin-box {
    width: min(100%, 500px);
}

.signin-heading h2,
.setup-card h1 {
    margin-top: 14px;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.signin-heading p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-dark);
    border-radius: 0;
    outline: none;
}

.form-group input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(28, 109, 147, 0.12);
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.signin-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.signin-button:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.signin-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.message {
    margin-top: 24px;
    padding: 14px 16px;
    border-left: 4px solid;
    font-size: 13px;
    line-height: 1.55;
}

.message-error {
    color: #742c25;
    background: var(--red-light);
    border-color: var(--red);
}

.message-success {
    color: #174f3e;
    background: var(--green-light);
    border-color: var(--green);
}

.setup-body {
    display: grid;
    place-items: center;
    padding: 45px 20px;
    background: var(--navy-deep);
}

.setup-container {
    width: min(100%, 720px);
}

.setup-card {
    padding: 42px;
    background: var(--white);
    border-top: 6px solid var(--blue);
}

.setup-warning {
    margin-top: 18px;
    padding: 13px 15px;
    color: #742c25;
    background: var(--red-light);
    border-left: 4px solid var(--red);
    font-weight: 700;
}

.dashboard-body {
    background: #eef1f2;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 22px;
    color: var(--white);
    background: var(--navy-deep);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 8px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.sidebar-nav {
    display: grid;
    gap: 5px;
    margin-top: 28px;
}

.nav-link {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 9px;
    padding: 13px 11px;
    color: #bacbd3;
    border-left: 3px solid transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border-left-color: #78bad6;
}

.nav-link.disabled {
    cursor: default;
    opacity: 0.52;
}

.nav-number {
    color: #6f91a1;
    font-family: "Courier New", monospace;
    font-size: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 22px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-practice {
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.sidebar-role {
    margin-top: 5px;
    color: #8fa7b2;
    font-size: 11px;
}

.dashboard-main {
    min-width: 0;
    padding: 38px 42px 55px;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: 31px;
    border-bottom: 1px solid var(--line);
}

.dashboard-kicker {
    color: var(--blue);
}

.dashboard-header h1 {
    margin-top: 12px;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.dashboard-header p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-user form {
    margin: 0;
}

.user-details {
    text-align: right;
}

.user-details strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}

.user-details span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.logout-button {
    min-height: 42px;
    padding: 0 17px;
    color: var(--navy);
    background: transparent;
    border: 1px solid var(--line-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.logout-button:hover {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 34px;
    background: var(--white);
    border-top: 3px solid var(--navy);
}

.summary-item {
    min-height: 180px;
    padding: 25px;
    border-right: 1px solid var(--line);
}

.summary-item:last-child {
    border-right: 0;
}

.summary-label {
    color: var(--muted);
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary-number {
    margin-top: 15px;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 56px;
    line-height: 1;
}

.summary-copy {
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.summary-item.alert .summary-number {
    color: var(--red);
}

.summary-item.warning .summary-number {
    color: var(--amber);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 28px;
    margin-top: 28px;
}

.operations-panel,
.practice-overview {
    background: var(--white);
    border: 1px solid var(--line);
}

.operations-panel {
    min-width: 0;
}

.panel-header {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 24px 27px;
    border-bottom: 1px solid var(--line);
}

.panel-kicker {
    color: var(--blue);
}

.panel-header h2 {
    margin-top: 8px;
    color: var(--navy-deep);
    font-size: 22px;
}

.panel-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.task-table-wrap {
    overflow-x: auto;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th,
.task-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.task-table th {
    color: var(--muted);
    background: #f8f9f9;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task-table td {
    color: var(--ink-soft);
    font-size: 12px;
}

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

.priority {
    display: inline-block;
    min-width: 61px;
    padding: 5px 8px;
    border: 1px solid;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}

.priority-low {
    color: var(--green);
    border-color: var(--green);
}

.priority-normal {
    color: var(--blue);
    border-color: var(--blue);
}

.priority-high {
    color: var(--amber);
    border-color: var(--amber);
}

.priority-urgent {
    color: var(--red);
    border-color: var(--red);
}

.empty-state {
    padding: 65px 30px;
    text-align: center;
}

.empty-state strong {
    display: block;
    color: var(--navy-deep);
    font-size: 17px;
}

.empty-state p {
    max-width: 510px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.practice-overview {
    align-self: start;
}

.overview-heading {
    padding: 21px;
    color: var(--white);
    background: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.overview-row {
    padding: 18px 21px;
    border-bottom: 1px solid var(--line);
}

.overview-row span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.overview-row strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 13px;
}

.status-active {
    color: var(--green) !important;
}

.overview-note {
    padding: 21px;
    color: var(--muted);
    background: #f7f8f8;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-item:nth-child(2) {
        border-right: 0;
    }

    .summary-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

    .auth-brand-panel {
        min-height: auto;
    }

    .auth-brand-copy {
        padding: 75px 0;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 70px 30px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-footer {
        margin-top: 25px;
    }
}

@media (max-width: 680px) {
    .auth-brand-panel {
        padding: 35px 25px;
    }

    .auth-brand-copy h1 {
        font-size: 44px;
    }

    .auth-form-panel {
        padding: 55px 22px;
    }

    .signin-heading h2,
    .setup-card h1 {
        font-size: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .setup-card {
        padding: 28px 22px;
    }

    .dashboard-main {
        padding: 27px 18px 45px;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .header-user {
        width: 100%;
        justify-content: space-between;
    }

    .user-details {
        text-align: left;
    }

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

    .summary-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .summary-item:last-child {
        border-bottom: 0;
    }

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

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
    

.sidebar-brand-logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.sidebar-logo-image {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 42px;
    object-fit: contain;
}

.sidebar-logo-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-logo-copy strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.sidebar-logo-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .sidebar-logo-image {
        max-width: 115px;
    }
}
