﻿.app-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: stretch;
}

.app-hero-card,
.app-kpi-card,
.app-panel-card,
.app-form-card,
.app-auth-card {
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.app-hero-card {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.app-hero-copy h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    color: #111827;
}

.app-hero-copy p {
    margin: 8px 0 0;
    color: #6b7280;
    font-weight: 700;
    font-size: 14px;
    max-width: 760px;
}

.app-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: .15s ease;
}

.app-btn-primary {
    background: #0b5fff;
    color: #fff;
}

.app-btn-primary:hover {
    background: #0847c7;
    color: #fff;
}

.app-btn-ghost {
    background: rgba(17,24,39,.06);
    color: #111827;
}

.app-btn-ghost:hover {
    background: rgba(17,24,39,.10);
    color: #111827;
}

.app-btn-danger {
    background: #dc2626;
    color: #fff;
}

.app-btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.app-kpi-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.app-kpi-card {
    padding: 16px 18px;
}

.app-kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    font-weight: 900;
    margin-bottom: 8px;
}

.app-kpi-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    word-break: break-word;
}

.app-kpi-sub {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.app-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: 18px;
    align-items: start;
}

.app-panel-card,
.app-form-card,
.app-auth-card {
    overflow: hidden;
}

.app-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(17,24,39,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.app-panel-title-wrap {
    min-width: 0;
}

.app-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.app-panel-sub {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.app-panel-meta {
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
}

.app-table-wrap {
    overflow: auto;
}

.app-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.app-table th,
.app-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(17,24,39,.06);
    vertical-align: top;
    text-align: left;
}

.app-table th {
    width: 170px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    font-weight: 900;
    white-space: nowrap;
}

.app-table td {
    font-size: 14px;
    color: #111827;
    font-weight: 800;
}

.app-table tbody tr:hover {
    background: rgba(11,95,255,.025);
}

.app-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-maintext {
    font-weight: 900;
    color: #111827;
    word-break: break-word;
}

.app-subtext {
    font-size: 12px;
    color: #6b7280;
    font-weight: 800;
}

.app-checklist {
    list-style: none;
    margin: 0;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.app-checklist-mark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    background: rgba(11,95,255,.08);
    color: #0b5fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    margin-top: 1px;
}

.app-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 18px 18px;
}

.app-mini-card {
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 14px;
    background: rgba(17,24,39,.02);
    padding: 14px;
}

.app-mini-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    font-weight: 900;
    margin-bottom: 8px;
}

.app-mini-value {
    font-size: 15px;
    font-weight: 900;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.app-mini-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    line-height: 1.45;
}

.app-form-card-body,
.app-auth-body {
    padding: 18px;
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    font-weight: 900;
}

.app-input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(17,24,39,.12);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    background: #fff;
    outline: none;
    transition: .15s ease;
}

.app-input:focus {
    border-color: rgba(11,95,255,.45);
    box-shadow: 0 0 0 4px rgba(11,95,255,.10);
}

textarea.app-input {
    min-height: 120px;
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.app-validation,
.field-validation-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
}

.app-alert,
.validation-summary-errors {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}

.app-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.app-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.app-auth-shell {
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-auth-wrap {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.app-auth-card {
    align-self: center;
}

.app-auth-side {
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-auth-side .app-panel-head {
    border-bottom: 1px solid rgba(17,24,39,.07);
}

.app-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #111827;
}

.app-auth-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #0b5fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.app-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.app-auth-links a {
    color: #0b5fff;
    text-decoration: none;
    font-weight: 900;
}

.app-auth-links a:hover {
    color: #0847c7;
    text-decoration: underline;
}

media (max-width: 1199.98px) {
    .app-hero {
        grid-template-columns: 1fr;
    }

    .app-kpi-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

media (max-width: 991.98px) {
    .app-kpi-wrap {
        grid-template-columns: 1fr;
    }

    .app-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-mini-grid {
        grid-template-columns: 1fr;
    }

    .app-table th {
        width: 120px;
    }

    .app-auth-wrap {
        grid-template-columns: 1fr;
    }

    .app-auth-side {
        display: none;
    }
}