:root {
    --bg: #f4f8fc;
    --bg-2: #eef4fa;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-solid: #ffffff;
    --surface-soft: #f7fbff;
    --surface-tint: #f2f8fd;

    --text: #162334;
    --text-muted: #66758b;
    --text-soft: #8a97aa;

    --border: #dbe6f1;
    --border-soft: #e7eef6;

    --brand-dark: #101a28;
    --brand-dark-2: #18263a;
    --brand-accent: #18b7ff;
    --brand-accent-2: #53d0ff;
    --brand-accent-dark: #0b8fcd;

    --brand-glow: rgba(24, 183, 255, 0.14);
    --brand-glow-soft: rgba(24, 183, 255, 0.08);

    --success-bg: #eafaf2;
    --success-text: #16784d;

    --danger-bg: #fff2f2;
    --danger-text: #b42318;

    --info-bg: #edf8ff;
    --info-text: #0d6c9f;

    --shadow-xs: 0 4px 10px rgba(16, 26, 40, 0.04);
    --shadow-sm: 0 10px 24px rgba(16, 26, 40, 0.06);
    --shadow-md: 0 18px 42px rgba(16, 26, 40, 0.09);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(24, 183, 255, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(24, 183, 255, 0.04), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 230px;
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-dark-2) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
    margin-bottom: 28px;
    padding: 8px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sidebar-brand-text {
    display: inline-block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(24, 183, 255, 0.10);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-link.is-active {
    background: linear-gradient(90deg, rgba(24, 183, 255, 0.18) 0%, rgba(24, 183, 255, 0.08) 100%);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--brand-accent);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219, 230, 241, 0.8);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    height: 36px;
    width: auto;
}

.topbar-user {
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(247, 251, 255, 0.9);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
}

.content {
    padding: 28px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    color: var(--brand-dark);
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(24, 183, 255, 0.14);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 251, 255, 0.96) 100%);
    box-shadow: var(--shadow-md);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(24, 183, 255, 0.10), transparent 26%),
        radial-gradient(circle at bottom left, rgba(24, 183, 255, 0.05), transparent 20%);
    pointer-events: none;
}

.hero-card__content,
.hero-card__meta {
    position: relative;
    z-index: 1;
}

.hero-card__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--brand-glow-soft);
    border: 1px solid rgba(24, 183, 255, 0.14);
    color: var(--brand-accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-card h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    color: var(--brand-dark);
    max-width: 760px;
}

.hero-card p {
    margin: 0;
    max-width: 760px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 15px;
}

.hero-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-card__meta {
    display: grid;
    gap: 14px;
    align-content: start;
}

.hero-meta-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(219, 230, 241, 0.95);
    box-shadow: var(--shadow-xs);
}

.hero-meta-card__label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-meta-card strong {
    font-size: 16px;
    color: var(--brand-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 252, 255, 0.97) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.panel-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 250, 255, 0.92) 100%);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before,
.panel::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin: -22px -22px 18px;
    background: linear-gradient(90deg, rgba(24, 183, 255, 0.85) 0%, rgba(83, 208, 255, 0.45) 100%);
}

.stat-card h2,
.panel h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--brand-dark);
}

.stat-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
}

.stat-note {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.panel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.data-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(244, 249, 253, 0.92);
}

.data-table thead th:first-child {
    border-top-left-radius: 12px;
}

.data-table thead th:last-child {
    border-top-right-radius: 12px;
}

.data-table tbody tr td {
    background: rgba(255, 255, 255, 0.58);
}

.data-table tbody tr:hover td {
    background: rgba(245, 251, 255, 0.96);
}

.data-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.data-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.cell-break {
    word-break: break-word;
    max-width: 300px;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-muted {
    background: #edf3f8;
    color: #4d6178;
}

.btn {
    display: inline-block;
    padding: 11px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(24, 183, 255, 0.20);
}

.btn-primary:hover {
    box-shadow: 0 12px 26px rgba(24, 183, 255, 0.26);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-dark);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-soft);
}

.btn-small {
    padding: 8px 11px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.flash {
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    box-shadow: var(--shadow-xs);
}

.flash-success {
    background: var(--success-bg);
    border-color: #caefdd;
    color: var(--success-text);
}

.flash-error {
    background: var(--danger-bg);
    border-color: #ffd6d2;
    color: var(--danger-text);
}

.flash-info {
    background: var(--info-bg);
    border-color: #cfeafb;
    color: var(--info-text);
}

.footer {
    padding: 18px 28px 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfdae6;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 4px rgba(24, 183, 255, 0.12);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef4f9;
}

.detail-list dt {
    font-weight: 700;
    color: #3a5670;
}

.detail-list dd {
    margin: 0;
    color: var(--text);
    word-break: break-word;
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1180px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .detail-grid,
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 820px) {
    .sidebar {
        width: 88px;
    }

    .sidebar-brand-text {
        display: none;
    }

    .sidebar-link {
        font-size: 12px;
        padding: 10px 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 14px 16px;
    }

    .content {
        padding: 16px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-card h1 {
        font-size: 28px;
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-link__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.sidebar-link__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.sidebar-link__text {
    display: inline-block;
}

.status-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.status-summary-card {
    position: relative;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.96) 100%);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.status-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(24, 183, 255, 0.85) 0%, rgba(83, 208, 255, 0.40) 100%);
}

.status-summary-card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-summary-card strong {
    display: block;
    font-size: 18px;
    color: var(--brand-dark);
    line-height: 1.3;
    padding-right: 28px;
}

.status-indicator {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.status-indicator.is-success {
    background: #1fb978;
}

.status-indicator.is-warning {
    background: #f59e0b;
}

.status-indicator.is-muted {
    background: #94a3b8;
}

@media (max-width: 1100px) {
    .status-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sidebar-link {
        justify-content: center;
    }

    .sidebar-link__text {
        display: none;
    }

    .status-summary-grid {
        grid-template-columns: 1fr;
    }
}
.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-form {
    max-width: 980px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group-checkbox {
    margin-bottom: 4px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--brand-dark);
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-accent-dark);
}

.form-help {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(244, 249, 253, 0.85);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-help p {
    margin: 0;
}

@media (max-width: 820px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.badge-warning {
    background: #fff4df;
    color: #a16207;
}

.text-muted {
    color: var(--text-muted);
}

.issue-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}

.issue-list li {
    margin-bottom: 4px;
}

.code-preview {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f1724;
    color: #d9e7f5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.55;
}