﻿:root {
    --svsd-blue: #1f2a6b;
    --svsd-blue2: #2d3f97;
    --svsd-light: #eef2ff;
    --svsd-bg: #f5f7fb;
    --svsd-border: #d9deea;
    --svsd-text: #1f2937;
    --svsd-red: #c1121f;
    --svsd-green: #2d6a4f;
    --svsd-orange: #f77f00;
}

body {
    margin: 0;
    padding: 0;
    background: var(--svsd-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--svsd-text);
}

/* Top bar */
.topbar {
    background: linear-gradient(90deg, var(--svsd-blue), var(--svsd-blue2));
    color: white;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 700;
}

    .brand img {
        height: 52px;
        background: white;
        border-radius: 10px;
        padding: 5px;
    }

/* Main container */
.page-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Card */
.card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(31,42,107,0.08);
    border: 1px solid var(--svsd-border);
}

/* Headings */
h1 {
    margin-top: 0;
    color: var(--svsd-blue);
    font-size: 38px;
    margin-bottom: 20px;
}

h2 {
    color: var(--svsd-blue);
    margin-top: 35px;
    margin-bottom: 15px;
}

h3 {
    color: var(--svsd-blue);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Warning box */
.alert-warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 36px;
}

.form-full {
    grid-column: 1 / -1;
}

/* Labels */
.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--svsd-blue);
}

/* Inputs */
input[type=text],
input[type=email],
input[type=password],
input[type=date],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--svsd-border);
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.2s;
    background: white;
}

    input[type=text]:focus,
    input[type=email]:focus,
    input[type=password]:focus,
    input[type=date]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--svsd-blue2);
        box-shadow: 0 0 6px rgba(45,63,151,0.25);
    }

textarea {
    min-height: 130px;
    resize: vertical;
}

/* Buttons */
input[type=submit],
input[type=button],
button,
.aspNetButton,
.btn-primary {
    background: var(--svsd-blue);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: 0.2s;
}

    input[type=submit]:hover,
    input[type=button]:hover,
    button:hover,
    .aspNetButton:hover,
    .btn-primary:hover {
        background: var(--svsd-blue2);
    }

/* Secondary button */
.btn-secondary {
    background: #6c757d !important;
}

    .btn-secondary:hover {
        background: #565e64 !important;
    }

/* Danger button */
.btn-danger {
    background: var(--svsd-red) !important;
}

    .btn-danger:hover {
        background: #a50f1b !important;
    }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

    table th {
        background: var(--svsd-blue);
        color: white;
        padding: 12px;
        text-align: left;
        font-weight: 700;
    }

    table td {
        padding: 10px;
        border-bottom: 1px solid #e3e7ef;
    }

    table tr:hover {
        background: #f5f8ff;
    }

/* Dashboard counters */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 25px 0;
}

.stat-box {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, var(--svsd-blue), var(--svsd-blue2));
    color: white;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(31,42,107,0.18);
}

    .stat-box h2 {
        margin: 0;
        font-size: 34px;
        color: white;
    }

    .stat-box span {
        font-size: 15px;
        opacity: 0.95;
    }

/* Status badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.badge-new {
    background: #0d6efd;
}

.badge-review {
    background: var(--svsd-orange);
}

.badge-escalated {
    background: var(--svsd-red);
}

.badge-closed {
    background: #6c757d;
}

/* Severity styles */
.severity-critical {
    background: #b00020 !important;
    color: white !important;
}

.severity-high {
    background: #ff9800 !important;
    color: black !important;
}

.severity-medium {
    background: #fff3cd !important;
}

.severity-low {
    background: #d1e7dd !important;
}

/* Images */
img {
    max-width: 100%;
    border-radius: 10px;
}

/* Links */
a {
    color: var(--svsd-blue2);
    text-decoration: none;
    font-weight: 600;
}

    a:hover {
        text-decoration: underline;
    }

/* GridView buttons alignment */
.grid-center {
    text-align: center;
}

/* Mobile */
@media screen and (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-container {
        padding: 10px;
    }

    h1 {
        font-size: 30px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 18px;
    text-align: center;
    background: var(--svsd-blue);
    color: white;
    font-size: 14px;
    border-top: 4px solid var(--svsd-blue2);
}

    .footer a {
        color: #ffffff;
        font-weight: 700;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }


.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 18px;
    margin-bottom: 30px;
}

.dashboard-card {
    display: block;
    background: white;
    border: 1px solid var(--svsd-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 5px 16px rgba(31,42,107,0.08);
    text-decoration: none;
    color: var(--svsd-text);
    transition: 0.2s;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(31,42,107,0.16);
        text-decoration: none;
    }

    .dashboard-card h3 {
        margin-top: 0;
        color: var(--svsd-blue);
    }

    .dashboard-card p {
        margin-bottom: 0;
        color: #555;
    }


/* Modern Admin Home Dashboard */
.app-shell {
    min-height: 100vh;
    background: var(--svsd-bg);
}

.topbar-user {
    font-weight: 700;
    font-size: 15px;
}

.brand span {
    font-size: 14px;
    font-weight: 400;
}

.dashboard-page {
    max-width: 1300px;
    margin: 32px auto;
    padding: 0 24px;
}

.hero-card {
    background: linear-gradient(135deg, var(--svsd-blue), var(--svsd-blue2));
    color: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 28px rgba(31,42,107,0.22);
    margin-bottom: 34px;
}

    .hero-card h1 {
        color: white;
        margin: 0 0 10px 0;
    }

    .hero-card p {
        margin: 0;
        font-size: 17px;
        opacity: 0.95;
    }

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.tool-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.tool-card {
    background: white;
    border: 1px solid var(--svsd-border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 6px 18px rgba(31,42,107,0.08);
    color: var(--svsd-text);
    text-decoration: none;
    transition: 0.2s ease;
    min-height: 145px;
}

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(31,42,107,0.18);
        text-decoration: none;
    }

.tool-icon {
    width: 56px;
    height: 56px;
    background: var(--svsd-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.tool-card h3 {
    margin: 0 0 10px 0;
    color: var(--svsd-blue);
}

.tool-card p {
    margin: 0;
    color: #555;
    line-height: 1.45;
}

.primary-card {
    border-left: 7px solid var(--svsd-blue2);
}

.green-card {
    border-left: 7px solid var(--svsd-green);
}

.primary-card .tool-icon {
    background: #e6ecff;
}

.green-card .tool-icon {
    background: #e6f4ef;
}

@media screen and (max-width: 800px) {
    .hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .tool-grid-large {
        grid-template-columns: 1fr;
    }
}


.status-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 15px;
    margin: 24px 0;
}

.status-card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 6px 18px rgba(31,42,107,0.08);
    border: 1px solid var(--svsd-border);
    min-width: 0;
}

    .status-card h2 {
        margin: 4px 0 0 0;
        font-size: 36px;
    }

    .status-card span {
        font-weight: 700;
        color: #444;
    }

.status-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.status-new {
    border-left: 7px solid #0d6efd;
}

    .status-new .status-icon {
        background: #e7f1ff;
    }

.status-review {
    border-left: 7px solid #f59f00;
}

    .status-review .status-icon {
        background: #fff4db;
    }

.status-escalated {
    border-left: 7px solid #dc3545;
}

    .status-escalated .status-icon {
        background: #fde8ea;
    }

.status-closed {
    border-left: 7px solid #198754;
}

    .status-closed .status-icon {
        background: #e7f5ee;
    }

.status-false {
    border-left: 7px solid #b00020;
}

    .status-false .status-icon {
        background: #fde2e2;
    }




.filter-bar {
    background: white;
    border: 1px solid var(--svsd-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 22px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: end;
    box-shadow: 0 5px 16px rgba(31,42,107,0.06);
}

.filter-item {
    min-width: 220px;
}

    .filter-item label {
        display: block;
        font-weight: 700;
        color: var(--svsd-blue);
        margin-bottom: 6px;
    }


.table-card table td {
    padding: 7px 10px;
    vertical-align: middle;
}

.table-card table th {
    padding: 10px;
}

.table-card table tr {
    min-height: 38px;
}

.row-closed {
    background: #f3f4f6 !important;
}

    .row-closed td {
        color: #9aa1ad !important;
    }

    /* keep badges readable */
    .row-closed .badge,
    .row-closed .status-closed-badge,
    .row-closed .severity-critical,
    .row-closed .severity-high,
    .row-closed .severity-medium,
    .row-closed .severity-low {
        opacity: 1 !important;
        filter: none !important;
    }

    /* fade normal text only */
    .row-closed td:not(:last-child) {
        opacity: 0.65;
    }

    /* keep buttons visible */
    .row-closed .btn-primary,
    .row-closed .btn-view,
    .row-closed a {
        opacity: 1 !important;
    }

.badge {
    display: inline-block;
    min-width: 70px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08);
}

.badge-critical {
    background: #b00020;
    color: white;
}

.badge-high {
    background: #ff9800;
    color: #111;
}

.badge-medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe08a;
}

.badge-low {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.badge-new {
    background: #e7f1ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.badge-review {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe08a;
}

.badge-closed {
    background: #e2e3e5;
    color: #41464b;
    border: 1px solid #d3d6d8;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #111;
}

.badge-soft {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.table-card table tr:nth-child(even) td {
    background-color: #f8faff;
}

.table-card table tr:nth-child(odd) td {
    background-color: #ffffff;
}

.table-card table td {
    border-bottom: 2px solid #d8deeb;
}

.table-card table tr:hover td {
    background-color: #eef3ff !important;
}

.table-card table tr.row-closed td {
    background-color: #f1f1f1 !important;
}


.page-nav {
    max-width: 1300px;
    margin: 18px auto 0 auto;
    padding: 0 24px;
}

.nav-button {
    display: inline-block;
    background: white;
    color: var(--svsd-blue);
    border: 1px solid var(--svsd-border);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(31,42,107,0.06);
    transition: 0.2s;
}

    .nav-button:hover {
        background: var(--svsd-blue);
        color: white;
        text-decoration: none;
    }


.report-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 14px 18px;
    align-items: end;
    margin-bottom: 16px;
}

.report-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.report-filter-grid .filter-item label {
    display: block;
    font-weight: 700;
    color: var(--svsd-blue);
    margin-bottom: 6px;
}

.report-filter-grid .filter-item select,
.report-filter-grid .filter-item input {
    width: 100%;
    max-width: none;
}

@media screen and (max-width: 900px) {
    .report-filter-grid {
        grid-template-columns: 1fr;
    }
}

.status-filter-card {
    text-decoration: none !important;
    color: inherit !important;
}

    .status-filter-card:hover {
        text-decoration: none !important;
    }

.status-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .status-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 28px rgba(31,42,107,0.18);
    }

.status-all {
    border-left: 8px solid var(--svsd-blue);
}

    .status-all .status-icon {
        background: #eef2ff;
    }

.notification-card {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #ef4444;
    color: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239,68,68,0.35);
    border: 3px solid white;
    z-index: 5;
}

.tool-card.notification-card {
    position: relative !important;
    overflow: visible !important;
}

    .tool-card.notification-card .notification-badge {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        border: 3px solid #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        box-shadow: 0 4px 12px rgba(239,68,68,0.35) !important;
        z-index: 20 !important;
    }



.details-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.assign-box {
    background: #f5f7fb;
    border: 1px solid var(--svsd-border);
    border-radius: 16px;
    padding: 18px;
    min-width: 420px;
}

    .assign-box label {
        display: block;
        font-weight: 700;
        color: var(--svsd-blue);
        margin-bottom: 8px;
    }

.assign-row {
    display: flex;
    gap: 10px;
}

    .assign-row input[type=text] {
        max-width: none;
    }

@media screen and (max-width: 900px) {
    .details-header {
        flex-direction: column;
    }

    .assign-box {
        min-width: 100%;
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
}

.details-left {
    flex: 1;
}

.assign-box {
    width: 520px;
    background: #f5f7fb;
    border: 1px solid #d9deea;
    border-radius: 16px;
    padding: 18px;
}

    .assign-box label {
        display: block;
        font-weight: 700;
        color: #1f2a6b;
        margin-bottom: 10px;
    }

.assign-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.assign-input {
    flex: 1;
}

@media screen and (max-width: 1000px) {

    .details-header {
        flex-direction: column;
    }

    .assign-box {
        width: 100%;
    }
}

.card .details-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 30px !important;
}

    .card .details-header .details-left {
        flex: 1 1 auto !important;
    }

    .card .details-header .assign-box {
        flex: 0 0 520px !important;
        width: 520px !important;
        max-width: 520px !important;
    }

    .card .details-header .assign-row {
        display: flex !important;
        flex-direction: row !important;
    }

.thankyou-wrapper {
    text-align: center;
    padding: 30px 20px;
}

.thankyou-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: #e8f7ed;
    color: #1f9d55;
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(31, 157, 85, 0.15);
}

.thankyou-wrapper h1 {
    color: var(--svsd-blue);
    margin-bottom: 15px;
}

.thankyou-text {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 25px;
}

.thankyou-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 16px;
    border-radius: 12px;
    margin: 0 auto 30px auto;
    max-width: 700px;
    font-size: 16px;
}

.report-number-box {
    background: linear-gradient(135deg, #1f2a6b, #3340a7);
    color: white;
    padding: 24px;
    border-radius: 18px;
    max-width: 500px;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 25px rgba(31, 42, 107, 0.25);
}

.report-label {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.report-number {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
}

.thankyou-note {
    color: #6b7280;
    font-size: 15px;
}

/* Keep semantic badges readable regardless of theme */
.badge {
    opacity: 1 !important;
    filter: none !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.badge-critical {
    background: #b00020 !important;
    color: #ffffff !important;
}

.badge-high {
    background: #ff9800 !important;
    color: #111111 !important;
}

.badge-medium {
    background: #fff3cd !important;
    color: #5f4300 !important;
    border: 1px solid #e6c45c !important;
}

.badge-low {
    background: #d1e7dd !important;
    color: #0f5132 !important;
    border: 1px solid #9fcbb8 !important;
}

.badge-new {
    background: #e7f1ff !important;
    color: #084298 !important;
    border: 1px solid #9ec5fe !important;
}

.badge-review {
    background: #fff3cd !important;
    color: #5f4300 !important;
    border: 1px solid #e6c45c !important;
}

.badge-closed {
    background: #e2e3e5 !important;
    color: #343a40 !important;
    border: 1px solid #c6c8ca !important;
}

.badge-danger {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.badge-warning {
    background: #ffc107 !important;
    color: #111111 !important;
}

.badge-soft {
    background: #f1f3f5 !important;
    color: #343a40 !important;
    border: 1px solid #ced4da !important;
}


.severity-critical {
    background: #b00020 !important;
    color: #ffffff !important;
}

.severity-high {
    background: #ff9800 !important;
    color: #111111 !important;
}

.severity-medium {
    background: #fff3cd !important;
    color: #5f4300 !important;
    border: 1px solid #e6c45c !important;
}

.severity-low {
    background: #d1e7dd !important;
    color: #0f5132 !important;
    border: 1px solid #9fcbb8 !important;
}

.status-new-badge {
    background: #e7f1ff !important;
    color: #084298 !important;
    border: 1px solid #9ec5fe !important;
}

.status-review-badge {
    background: #fff3cd !important;
    color: #5f4300 !important;
    border: 1px solid #e6c45c !important;
}

.status-escalated-badge {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.status-closed-badge {
    background: #e2e3e5 !important;
    color: #343a40 !important;
    border: 1px solid #c6c8ca !important;
}

.status-card.status-false {
    border-left: 7px solid #b00020 !important;
}

    .status-card.status-false .status-icon {
        background: #fde2e2 !important;
    }