@import url('./sandbox-professional.css'); /* PHISHING_TRIAGE_SANDBOX_PROFESSIONAL_UX_V2 */
@import url('./sandbox-progress.css'); /* PHISHING_TRIAGE_SANDBOX_PROGRESS_VISUAL_V1_1 */
@import url('./sandbox-results.css'); /* PHISHING_TRIAGE_SANDBOX_RESULT_VISUAL_V1_1 */
@import url('./dashboard-visual.css'); /* PHISHING_TRIAGE_DASHBOARD_VISUAL_EXECUTIVE_V5 */
:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --text: #122033;
    --muted: #667085;
    --brand: #103b5f;
    --brand-2: #0e7490;
    --border: #dbe4ee;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(16, 59, 95, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    padding: 24px;
    background: linear-gradient(180deg, #0b2339, #103b5f);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    font-weight: 800;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.7);
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255,255,255,.82);
}

.nav a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.logout-form {
    margin-top: auto;
}

.logout-form button,
.login-card button {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 700;
}

.logout-form button {
    background: rgba(255,255,255,.14);
}

.main {
    margin-left: 280px;
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

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

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.user-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.card,
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card {
    padding: 22px;
}

.card span {
    color: var(--muted);
    font-size: 14px;
}

.card strong {
    display: block;
    margin: 10px 0;
    font-size: 34px;
}

.card p,
.panel p {
    color: var(--muted);
}

.panel {
    padding: 26px;
}

.panel h2 {
    margin-top: 0;
}

.timeline {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.timeline-item {
    padding: 13px 14px;
    border-radius: 14px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
}

.timeline-item.done::before {
    content: "\2713 ";
    color: #027a48;
    font-weight: 900;
}

.timeline-item.next::before {
    content: "\2192 ";
    color: var(--brand-2);
    font-weight: 900;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(14,116,144,.18), transparent 35%),
        linear-gradient(135deg, #e9f3f8, #f7fafc);
}

.login-shell {
    width: min(1120px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--panel);
}

.login-hero {
    padding: 56px;
    background:
        linear-gradient(135deg, rgba(16,59,95,.94), rgba(14,116,144,.88)),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.22), transparent 28%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.86);
}

.login-hero h1 {
    font-size: 56px;
    margin: 20px 0 12px;
}

.login-hero p {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255,255,255,.82);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.hero-grid div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
}

.hero-grid span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.login-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.login-card h2 {
    margin: 0;
    font-size: 32px;
}

.login-card p,
.login-card small {
    margin: 0;
    color: var(--muted);
}

.login-card label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

.login-card input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: var(--danger);
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: auto;
    }

    .main {
        margin-left: 0;
    }

    .cards,
    .login-shell,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .login-hero h1 {
        font-size: 40px;
    }
}
.page-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.page-actions h2 {
    margin: 0;
    font-size: 26px;
}

.page-actions p {
    margin: 6px 0 0;
    color: var(--muted);
}

.button,
.form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 700;
    text-decoration: none;
}

.button.secondary {
    color: var(--brand);
    background: var(--panel-soft);
    border: 1px solid var(--border);
}

.actions-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.table-link {
    color: var(--brand-2);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.priority-high,
.priority-critical {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.priority-medium {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.priority-low {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #027a48;
}

.status-pending {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

.status-reviewed {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #027a48;
}

.empty-state {
    text-align: center;
    padding: 34px 18px;
}

.empty-state h3 {
    margin-top: 0;
}

.empty-state p,
.muted {
    color: var(--muted);
}

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

.field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.field.full,
.form-actions.full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.field textarea {
    resize: vertical;
    line-height: 1.5;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 20px;
    margin-bottom: 22px;
}

.detail-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
}

.email-body {
    max-height: 520px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 18px;
    padding: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    font-family: Consolas, Monaco, monospace;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .page-actions,
    .detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

.analysis-form {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.analysis-form button {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 700;
}

.analysis-form small {
    color: var(--muted);
}

.analysis-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 20px;
    margin-bottom: 22px;
}

.score-box {
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(16,59,95,.08), rgba(14,116,144,.12));
    border: 1px solid var(--border);
}

.score-box span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.score-box strong {
    font-size: 42px;
}

.explanation-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
}

.explanation-box p {
    margin-bottom: 0;
}

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

.triage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.triage-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.triage-form .field.full,
.triage-form .form-actions.full {
    grid-column: 1 / -1;
}

.alert.success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #027a48;
    margin-bottom: 18px;
}

.review-list {
    display: grid;
    gap: 14px;
}

.review-item {
    border: 1px solid var(--border);
    background: var(--panel-soft);
    border-radius: 18px;
    padding: 16px;
}

.review-item div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.review-item p {
    margin: 0 0 10px;
    color: var(--text);
}

.review-item small {
    color: var(--muted);
}

@media (max-width: 900px) {
    .triage-grid,
    .triage-form {
        grid-template-columns: 1fr;
    }
}

.metrics-cards {
    margin-bottom: 22px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.metric-panel h3 {
    margin-bottom: 16px;
}

.metric-bars {
    display: grid;
    gap: 16px;
}

.metric-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    align-items: center;
}

.metric-bar span {
    color: var(--muted);
    font-weight: 700;
}

.metric-bar strong {
    color: var(--brand);
}

.metric-bar div {
    grid-column: 1 / -1;
    height: 12px;
    border-radius: 999px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    overflow: hidden;
}

.metric-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}

.kpi-row div {
    padding: 16px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
}

.kpi-row span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.kpi-row strong {
    font-size: 26px;
    color: var(--brand);
}

@media (max-width: 900px) {
    .metrics-grid,
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

.report-hero {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 22px;
    padding: 28px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16,59,95,.96), rgba(14,116,144,.86));
    color: #fff;
    box-shadow: var(--shadow);
}

.report-hero span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 700;
}

.report-hero h3 {
    margin: 0 0 10px;
    font-size: 30px;
}

.report-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.6;
}

.report-hero dl {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
}

.report-hero dt {
    color: rgba(255,255,255,.68);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.report-hero dd {
    margin: 0 0 8px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .report-hero {
        grid-template-columns: 1fr;
    }
}

.defense-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    padding: 30px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16,59,95,.96), rgba(14,116,144,.88));
    color: #fff;
    box-shadow: var(--shadow);
}

.defense-hero span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 700;
}

.defense-hero h3 {
    margin: 0 0 12px;
    font-size: 32px;
}

.defense-hero p {
    margin: 0;
    color: rgba(255,255,255,.84);
    line-height: 1.65;
}

.defense-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.defense-stats div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
}

.defense-stats strong {
    display: block;
    font-size: 30px;
}

.defense-stats span {
    padding: 0;
    margin: 6px 0 0;
    background: transparent;
    color: rgba(255,255,255,.72);
}

.defense-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.defense-index {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 8px;
}

.defense-index h3 {
    margin-top: 0;
}

.defense-index a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--brand);
    font-weight: 700;
}

.defense-content {
    display: grid;
    gap: 18px;
}

.defense-section span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand-2);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
}

.defense-section p {
    margin: 0;
    line-height: 1.75;
    color: var(--text);
}

@media (max-width: 900px) {
    .defense-hero,
    .defense-layout,
    .defense-stats {
        grid-template-columns: 1fr;
    }

    .defense-index {
        position: static;
    }
}
