@font-face {
    font-family: 'Galano Grotesque';
    src: url('/fonts/GalanoGrotesqueRegular.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('/fonts/GalanoGrotesqueMedium.otf') format('opentype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --app-bg: #edf5ff;
    --app-bg-deep: #dcecff;
    --app-ink: #062a66;
    --app-muted: #58739b;
    --app-line: rgba(6, 42, 102, 0.12);
    --app-surface: rgba(255, 255, 255, 0.88);
    --app-surface-strong: #ffffff;
    --app-sidebar: #062a66;
    --app-sidebar-soft: rgba(255, 255, 255, 0.1);
    --app-primary: #0046ad;
    --app-primary-strong: #003784;
    --app-secondary: #00a6df;
    --app-success: #0a7bc1;
    --app-warning: #4eb9e6;
    --app-danger: #d64545;
    --app-shadow: 0 24px 60px rgba(6, 42, 102, 0.12);
    --app-radius: 28px;
    --app-radius-md: 20px;
    --app-radius-sm: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Galano Grotesque', sans-serif;
    font-weight: 400;
    color: var(--app-ink);
    background:
        radial-gradient(circle at top left, rgba(0, 166, 223, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0, 70, 173, 0.16), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 100%);
}

body.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

.app-shell.is-sidebar-collapsed {
    grid-template-columns: 132px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100vh;
    padding: 1.75rem;
    background:
        radial-gradient(circle at top right, rgba(0, 166, 223, 0.3), transparent 24%),
        linear-gradient(180deg, #09357e 0%, #041f4d 100%);
    color: #f6f1ea;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding 0.24s ease;
}

.app-sidebar-top {
    display: grid;
    gap: 0.9rem;
}

.app-sidebar-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.app-brand-mark {
    width: 3.7rem;
    min-width: 3.7rem;
    height: 3.7rem;
    display: grid;
    place-items: center;
    padding: 0.45rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(0, 31, 92, 0.22);
}

.app-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-brand-copy small,
.app-kicker {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(246, 241, 234, 0.65);
}

.app-brand-copy strong {
    display: block;
    margin-top: 0.12rem;
    font-size: 1.55rem;
    line-height: 1.02;
    font-weight: 500;
    color: #fff;
}

.app-sidebar-caption {
    margin: 0;
    color: rgba(246, 241, 234, 0.72);
    font-size: 0.92rem;
    line-height: 1.6;
}

.app-nav {
    display: grid;
    gap: 0.55rem;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: rgba(246, 241, 234, 0.8);
    transition: all 0.2s ease;
}

.app-nav-link:hover,
.app-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 166, 223, 0.18), rgba(255, 255, 255, 0.06));
    border-color: rgba(0, 166, 223, 0.22);
    transform: translateX(2px);
}

.sidebar-toggle {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 24, 72, 0.22);
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.sidebar-toggle:hover {
    background: rgba(0, 166, 223, 0.18);
    border-color: rgba(0, 166, 223, 0.22);
}

.sidebar-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.app-shell.is-sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.app-nav-icon {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--app-sidebar-soft);
    font-size: 0.85rem;
}

.login-shell {
    width: min(100%, 1080px);
    padding: 1.5rem;
}

.login-panel {
    max-width: 560px;
    padding: 2rem;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--app-shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.login-brand-mark {
    width: 5.4rem;
    min-width: 5.4rem;
    height: 5.4rem;
    display: grid;
    place-items: center;
    padding: 0.8rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(0, 31, 92, 0.14);
}

.login-brand h1 {
    margin: 0.2rem 0 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 0.98;
    color: var(--app-ink);
}

.login-copy,
.login-footnote {
    color: var(--app-muted);
    line-height: 1.7;
}

.login-copy {
    margin-bottom: 1.5rem;
}

.login-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-shell.is-sidebar-collapsed .app-brand {
    justify-content: flex-start;
    flex: 0 1 auto;
}

.app-shell.is-sidebar-collapsed .app-brand-copy,
.app-shell.is-sidebar-collapsed .app-sidebar-caption,
.app-shell.is-sidebar-collapsed .app-nav-link span:last-child {
    display: none;
}

.app-shell.is-sidebar-collapsed .app-brand-mark {
    width: 3.15rem;
    min-width: 3.15rem;
    height: 3.15rem;
    padding: 0.35rem;
    border-radius: 1rem;
}

.app-shell.is-sidebar-collapsed .app-sidebar-head {
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
}

.app-shell.is-sidebar-collapsed .sidebar-toggle {
    position: static;
    width: 2.15rem;
    height: 2.15rem;
}

.app-shell.is-sidebar-collapsed .app-nav-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.app-shell.is-sidebar-collapsed .app-sidebar {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.app-main {
    min-width: 0;
    padding: 2rem;
}

.page-shell {
    max-width: 1380px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.page-header h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(2.15rem, 4vw, 3.75rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.page-description {
    max-width: 720px;
    margin: 0.9rem 0 0;
    color: var(--app-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.page-header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.app-user-menu {
    position: relative;
}

.app-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(23, 33, 43, 0.08);
    color: var(--app-ink);
}

.app-user-toggle svg {
    width: 1rem;
    height: 1rem;
    color: var(--app-muted);
}

.app-user-avatar {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.app-user-summary {
    display: grid;
    text-align: left;
    min-width: 0;
}

.app-user-name {
    font-weight: 500;
    line-height: 1.15;
}

.app-user-email {
    color: var(--app-muted);
    font-size: 0.84rem;
    line-height: 1.15;
}

.app-user-dropdown {
    width: min(320px, calc(100vw - 2rem));
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 48px rgba(23, 33, 43, 0.12);
}

.app-user-dropdown-head {
    padding: 0.65rem 0.75rem 0.45rem;
}

.app-user-dropdown-head strong {
    display: block;
    margin-top: 0.18rem;
    font-weight: 500;
}

.app-user-dropdown-head p {
    margin: 0.4rem 0 0;
    color: var(--app-muted);
    line-height: 1.45;
    word-break: break-word;
}

.app-user-dropdown .dropdown-divider {
    margin: 0.35rem 0;
}

.app-user-logout {
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    color: var(--app-ink);
    font-weight: 500;
}

.app-user-logout:hover,
.app-user-logout:focus {
    background: rgba(0, 70, 173, 0.08);
    color: var(--app-ink);
}

.alert {
    border: 0;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

.app-surface,
.card,
.content-panel {
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(18px);
}

.card,
.content-panel {
    overflow: hidden;
}

.card-header,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem 0;
    background: transparent;
    border: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    background: transparent;
    border: 0;
}

.section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.section-copy {
    margin: 0.25rem 0 0;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--app-radius-md);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
        linear-gradient(135deg, rgba(0, 70, 173, 0.1), rgba(0, 166, 223, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--app-shadow);
}

.metric-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%);
}

.metric-label {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.metric-icon {
    width: 2.9rem;
    height: 2.9rem;
    display: inline-grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(0, 70, 173, 0.12), rgba(0, 166, 223, 0.18));
    color: var(--app-primary);
    box-shadow: inset 0 0 0 1px rgba(0, 70, 173, 0.08);
    flex: 0 0 auto;
}

.metric-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.metric-value {
    margin-top: 0.55rem;
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1;
    font-weight: 500;
}

.metric-meta {
    margin-top: 0.85rem;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.table-responsive {
    overflow: auto;
}

.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 1rem 1rem;
    border-bottom-color: var(--app-line);
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--app-muted);
    font-weight: 500;
    border-bottom-width: 1px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.52);
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.table-actions form {
    margin: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.btn-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
}

.table code {
    white-space: normal;
}

.data-list {
    display: grid;
    gap: 0.85rem;
}

.data-list-head,
.data-list-row {
    display: grid;
    align-items: center;
    gap: 1rem;
}

.data-list-head {
    padding: 0 1.2rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.data-list-row {
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(6, 42, 102, 0.08);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 16px 28px rgba(6, 42, 102, 0.06);
}

.data-list-row:hover {
    background: rgba(255, 255, 255, 0.82);
}

.data-grid-servers {
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(8.5rem, 0.95fr)
        minmax(4rem, 0.45fr)
        minmax(5.5rem, 0.75fr)
        minmax(7.8rem, 0.8fr)
        minmax(4.8rem, 0.5fr)
        minmax(18rem, 1.9fr);
}

.data-grid-applications {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 0.7fr) auto;
}

.data-grid-logs {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.6fr) minmax(0, 0.85fr) minmax(0, 1fr) auto;
}

.data-grid-authorized-users {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 1fr);
}

.data-cell {
    min-width: 0;
}

.data-label {
    display: none;
    margin-bottom: 0.35rem;
    color: var(--app-muted);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.data-value,
.data-value code {
    overflow-wrap: anywhere;
}

.data-subtle {
    margin-top: 0.2rem;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.authorized-date {
    white-space: normal;
}

.server-name,
.server-hostname {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.server-ip,
.server-username,
.data-grid-servers .status-pill {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.server-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.55rem;
}

.server-action-button {
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border-radius: 999px;
}

.data-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.list-actions-head {
    text-align: center;
    justify-self: center;
}

.list-actions {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.55rem;
}

.action-label {
    white-space: nowrap;
}

.list-action-button {
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border-radius: 999px;
}

.list-action-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.btn {
    border-radius: 999px;
    padding: 0.72rem 1.15rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.btn-sm {
    padding: 0.58rem 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--app-primary-strong), #00285f);
    border-color: transparent;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(23, 33, 43, 0.12);
    color: var(--app-ink);
}

.btn-outline-danger {
    color: var(--app-danger);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover {
    color: #fff;
    background: var(--app-primary-strong);
    border-color: var(--app-primary-strong);
}

.btn-outline-danger:hover {
    background: var(--app-danger);
    border-color: var(--app-danger);
    color: #fff;
}

.form-label {
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    color: var(--app-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-control,
.form-select {
    min-height: 3.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(23, 33, 43, 0.1);
    background: rgba(255, 255, 255, 0.82);
    color: var(--app-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea.form-control {
    min-height: unset;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(0, 70, 173, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(0, 166, 223, 0.14);
}

.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    background: rgba(23, 33, 43, 0.07);
    color: var(--app-ink);
}

.status-active,
.status-production,
.status-laravel {
    background: rgba(0, 70, 173, 0.12);
    color: #003784;
}

.status-error,
.status-critical,
.status-alert,
.status-emergency {
    background: rgba(214, 69, 69, 0.12);
    color: #a92f2f;
}

.status-warning {
    background: rgba(0, 166, 223, 0.14);
    color: #0077a3;
}

.status-info,
.status-notice,
.status-debug {
    background: rgba(0, 166, 223, 0.12);
    color: #006d99;
}

.status-inactive {
    background: rgba(214, 69, 69, 0.12);
    color: #a92f2f;
}

.status-uat,
.status-staging,
.status-development,
.status-private_key,
.status-password,
.status-log,
.status-gz {
    background: rgba(0, 166, 223, 0.11);
    color: #006f9b;
}

.list-group-item {
    padding: 1rem 0;
    border-color: var(--app-line);
    background: transparent;
}

.dashboard-audit-item {
    overflow: hidden;
}

.dashboard-audit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.dashboard-audit-copy,
.dashboard-audit-title,
.dashboard-audit-context,
.dashboard-audit-path {
    min-width: 0;
}

.dashboard-audit-title,
.dashboard-audit-context {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-audit-path code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-audit-date {
    white-space: nowrap;
}

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

.detail-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.55);
}

.detail-label {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--app-muted);
}

.detail-value {
    margin: 0;
    line-height: 1.65;
}

.info-stack {
    display: grid;
    gap: 0.85rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--app-line);
}

.info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-row span {
    color: var(--app-muted);
}

.empty-state {
    padding: 2rem;
    text-align: center;
    border: 1px dashed rgba(23, 33, 43, 0.14);
    border-radius: 1.35rem;
    color: var(--app-muted);
    background: rgba(255, 255, 255, 0.42);
}

.hero-banner {
    position: relative;
    padding: 1.85rem;
    margin-bottom: 1.5rem;
    border-radius: var(--app-radius);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0, 166, 223, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(0, 70, 173, 0.12), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--app-shadow);
}

.hero-banner h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
}

.hero-banner p {
    max-width: 700px;
    margin: 0.8rem 0 0;
    color: var(--app-muted);
    line-height: 1.7;
}

.resource-grid {
    display: grid;
    gap: 1rem;
}

.resource-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.65);
}

.resource-card h6,
.resource-card h5 {
    margin: 0 0 0.4rem;
    font-weight: 500;
}

.resource-title,
.resource-subtitle,
.resource-path,
.resource-path code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resource-card p {
    margin: 0;
    color: var(--app-muted);
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.75rem 0 1rem;
}

.code-chip,
code {
    display: inline-block;
    padding: 0.35rem 0.55rem;
    border-radius: 0.7rem;
    background: rgba(23, 33, 43, 0.06);
    color: #21313f;
    font-family: 'Galano Grotesque', sans-serif;
    font-size: 0.88rem;
}

.toolbar-card {
    padding: 1.2rem;
}

.toolbar-card .row > * {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-card-error,
.log-card-warning,
.log-card-info,
.log-card-debug,
.log-card-critical,
.log-card-alert,
.log-card-emergency,
.log-card-notice {
    border-left: 4px solid transparent;
}

.log-card-error {
    border-left-color: var(--app-danger);
}

.log-card-warning {
    border-left-color: var(--app-warning);
}

.log-card-info,
.log-card-notice {
    border-left-color: #3182ce;
}

.log-card-debug {
    border-left-color: #7b8794;
}

.log-card-critical,
.log-card-alert,
.log-card-emergency {
    border-left-color: #b45309;
}

pre.log-raw {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #233445;
}

.env-search-panel {
    display: grid;
    gap: 1rem;
}

.env-search-status {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.env-search-content {
    max-height: 70vh;
    overflow: auto;
    padding-right: 0.25rem;
}

.env-search-hit {
    background: rgba(245, 196, 0, 0.38);
    color: inherit;
    padding: 0.05rem 0.15rem;
    border-radius: 0.3rem;
    box-shadow: inset 0 0 0 1px rgba(176, 122, 0, 0.18);
}

.env-search-hit.is-active {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.22);
}

.pagination {
    gap: 0.45rem;
    margin-top: 1.35rem;
}

.page-link {
    border: 0;
    border-radius: 999px !important;
    padding: 0.62rem 0.92rem;
    color: var(--app-ink);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.08);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
}

.text-muted {
    color: var(--app-muted) !important;
}

.shadow-sm,
.shadow {
    box-shadow: none !important;
}

@media (max-width: 1199.98px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-label {
        display: none;
    }

    .data-actions .btn {
        padding-left: 0.78rem;
        padding-right: 0.78rem;
    }
}

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

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

    .app-sidebar {
        position: relative;
        height: auto;
        padding-bottom: 1.25rem;
    }

    .app-sidebar-head {
        align-items: center;
    }

    .app-main {
        padding: 1.1rem;
    }

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

    .page-header-side {
        width: 100%;
        justify-content: space-between;
        align-items: flex-start;
    }

    .page-actions {
        justify-content: flex-start;
    }

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

    .data-list-head {
        display: none;
    }

    .data-grid-servers,
    .data-grid-applications,
    .data-grid-logs,
    .data-grid-authorized-users {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .data-label {
        display: block;
    }

    .data-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

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

    .page-header h1 {
        font-size: 2.3rem;
    }

    .page-header-side {
        align-items: stretch;
    }

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

    .app-user-summary {
        flex: 1 1 auto;
    }

    .app-sidebar,
    .card-body,
    .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-header,
    .section-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .data-grid-servers,
    .data-grid-applications,
    .data-grid-logs,
    .data-grid-authorized-users {
        grid-template-columns: 1fr;
    }

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

    .dashboard-audit-date {
        white-space: normal;
        text-align: left !important;
    }

    .data-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.app-block-ui {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(4, 31, 77, 0.34);
    backdrop-filter: blur(6px);
}

.app-block-ui[hidden] {
    display: none;
}

.app-block-ui-card {
    width: min(100%, 24rem);
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.6rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px rgba(6, 42, 102, 0.2);
    text-align: center;
}

.app-block-ui-card strong {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--app-ink);
}

.app-block-ui-card p {
    margin: 0;
    color: var(--app-muted);
}

.app-block-ui-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(0, 70, 173, 0.16);
    border-top-color: var(--app-primary);
    border-radius: 50%;
    animation: app-block-ui-spin 0.85s linear infinite;
}

body.is-ui-blocked {
    cursor: progress;
}

body.is-ui-blocked a,
body.is-ui-blocked button {
    pointer-events: none;
}

@keyframes app-block-ui-spin {
    to {
        transform: rotate(360deg);
    }
}
