* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #e5e7eb;
    background: #0b1120;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            #172554 0,
            #0b1120 40%
        );
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
}

.muted {
    color: #94a3b8;
}

.login-card {
    width: min(420px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 12vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.login-card h1 {
    margin-top: 48px;
    margin-bottom: 10px;
    font-size: 32px;
}

.login-card form {
    margin-top: 32px;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    color: #cbd5e1;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 8px;
    outline: none;
    background: #111827;
    color: #f8fafc;
}

input:focus {
    border-color: #3b82f6;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: #2563eb;
    color: white;
    font-weight: 600;
}

button:hover {
    background: #1d4ed8;
}

.login-card button {
    width: 100%;
    margin-top: 26px;
}

.error {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #450a0a;
    color: #fecaca;
    font-size: 14px;
}

.topbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.92);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.button-secondary {
    background: #1e293b;
    color: #cbd5e1;
}

.button-secondary:hover {
    background: #334155;
}

.content {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 60px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
}

.page-header p {
    margin-top: 8px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.stat-card {
    padding: 22px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
}

.stat-label {
    color: #94a3b8;
    font-size: 14px;
}

.stat-value {
    margin-top: 10px;
    font-size: 34px;
    font-weight: 700;
}

.panel {
    margin-top: 28px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.panel-header {
    padding: 20px 22px;
    border-bottom: 1px solid #1e293b;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
}

.project {
    padding: 20px 22px;
    border-bottom: 1px solid #1e293b;
}

.project:last-child {
    border-bottom: 0;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
}

.project-description {
    margin-top: 6px;
    color: #94a3b8;
}

.loading {
    padding: 24px;
    color: #94a3b8;
}

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

@media (max-width: 520px) {
    .topbar {
        padding: 0 16px;
    }

    .topbar .brand-subtitle {
        display: none;
    }

    .content {
        width: min(100% - 24px, 1200px);
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
.project-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;

    background: #111827;
    border: 1px solid #26344d;
    border-radius: 12px;

    padding: 18px;
    margin-bottom: 12px;

    color: inherit;
    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.project-card:hover {
    background: #172033;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.project-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-weight: 700;
    font-size: 18px;
}

.project-name {
    font-size: 17px;
    font-weight: 600;
}

.project-description {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 14px;
}

.project-arrow {
    font-size: 24px;
    color: #64748b;
}

.project-card:hover .project-arrow {
    color: #60a5fa;
}

.target-row,
.scan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 0;

    border-bottom: 1px solid #26344d;
}

.target-row:last-child,
.scan-row:last-child {
    border-bottom: none;
}

.target-name,
.scan-title {
    font-weight: 600;
}

.target-value,
.scan-meta,
.target-type {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 14px;
}

.target-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #064e3b;
    color: #6ee7b7;
}

.badge-muted {
    background: #334155;
    color: #cbd5e1;
}

.badge-completed {
    background: #064e3b;
    color: #6ee7b7;
}

.badge-running {
    background: #1e3a8a;
    color: #93c5fd;
}

.badge-queued {
    background: #78350f;
    color: #fcd34d;
}

.badge-failed {
    background: #7f1d1d;
    color: #fca5a5;
}

.empty {
    padding: 24px 0;
    color: #94a3b8;
}

.back-button {
    margin-bottom: 20px;
}
