:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17202a;
    background: #f4f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f8f9fa;
}

.app-header {
    border-bottom: 1px solid #d8e1ec;
    background: #ffffff;
}

.app-header__inner {
    display: flex;
    width: min(100%, 1120px);
    min-height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header__link {
    border-radius: 6px;
    padding: 8px 12px;
    color: #465668;
    font-weight: 600;
    text-decoration: none;
}

.app-header__link:hover {
    color: #0d6efd;
    background: #eef5ff;
}

.app-header__actions {
    margin: 0;
}

.app-header__logout {
    color: #465668;
    background: #ffffff;
    border-color: #ced4da;
}

.app-header__logout:hover {
    color: #ffffff;
    background: #465668;
    border-color: #465668;
}

.page {
    display: grid;
    min-height: calc(100vh - 64px);
    place-items: center;
    padding: 32px;
}

.page--workspace {
    display: block;
    padding: 32px 24px;
}

.workspace {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.page-heading {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-heading h1 {
    margin-bottom: 0;
}

.filters {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-field {
    min-width: 180px;
}

.panel {
    width: min(100%, 720px);
    padding: 40px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgb(23 32 42 / 10%);
}

.eyebrow {
    margin: 0 0 12px;
    color: #3f6f8f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

p {
    margin: 0;
    max-width: 56ch;
    color: #465668;
    font-size: 18px;
    line-height: 1.6;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #17202a;
    font-size: 15px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7edf5;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th {
    color: #465668;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination__current {
    color: #465668;
    font-weight: 600;
}

.pagination__disabled {
    opacity: 0.55;
    cursor: default;
}

.inline-form {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.status {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
}

.status--active {
    color: #0f5132;
    background: #d1e7dd;
}

.status--blocked {
    color: #842029;
    background: #f8d7da;
}

.empty-state {
    max-width: none;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
}

.form-card {
    max-width: 720px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-field {
    display: block;
}

.form-actions {
    display: flex;
    margin-top: 24px;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.alert {
    max-width: 720px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
}

.alert-danger {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.bg-light {
    background-color: #f8f9fa;
}

.min-vh-100 {
    min-height: 100vh;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.card {
    background-color: #ffffff;
    border: 1px solid rgb(0 0 0 / 13%);
    border-radius: 6px;
}

.card-body {
    color: #212529;
}

.signin-card {
    width: min(100% - 32px, 420px);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.p-4 {
    padding: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.h3 {
    margin-top: 0;
    color: #212529;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.small {
    font-size: 0.875rem;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-primary {
    color: #0d6efd;
}

.fw-semibold {
    font-weight: 600;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #212529;
    font-size: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    color: #212529;
    background-color: #ffffff;
    font: inherit;
    line-height: 1.5;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
    outline: 0;
}

.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-secondary {
    color: #ffffff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-danger {
    color: #ffffff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.action-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

@media (min-width: 768px) {
    .p-md-5 {
        padding: 3rem;
    }
}
