body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("../images/background/room.png") center/cover no-repeat fixed;
    color: #f8fafc;
}

[hidden] {
    display: none !important;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
    background: #000000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding: 6px 10px;
}

.logo-area img {
    height: 90px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    margin: 0;
    font-size: 20px;
}

.logo-text span {
    font-size: 12px;
    color: #94a3b8;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #3b82f6;
}

.report-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px;
}

.site-disclaimer {
    width: min(1200px, 96vw);
    margin: 0 auto 28px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.site-disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.site-disclaimer p + p {
    margin-top: 6px;
}

.report-panel {
    width: min(1200px, 96vw);
    min-height: 70vh;
    max-height: 90vh;
    overflow: auto;
    background: rgba(13, 13, 13, 0.82);
    border: 1px solid rgba(88, 88, 88, 0.25);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.report-header {
    text-align: center;
    margin-bottom: 24px;
}

.report-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.report-header p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
}

.report-header-copy {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.report-header-copy p {
    margin: 0;
    max-width: 760px;
    color: #e2e8f0;
    line-height: 1.55;
}

.report-form {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.report-form label {
    font-size: 12px;
    color: #cbd5e1;
}

.report-form textarea,
.report-form select,
.report-form input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(49, 49, 49, 0.6);
    color: #f8fafc;
    padding: 10px 12px;
    font-family: inherit;
    box-sizing: border-box;
}

.report-form textarea {
    padding: 12px;
    resize: vertical;
}

.report-form select option {
    background: #0f172a;
    color: #f8fafc;
}

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

.form-actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #facc15;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.form-actions .secondary-btn {
    background: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.form-actions .helper-btn {
    background: rgba(250, 204, 21, 0.12);
    color: #fde68a;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.form-actions button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.status-text {
    font-size: 12px;
    color: #e2e8f0;
}

.report-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(148, 163, 184, 0.3);
    border-top-color: #facc15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.report-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.report-content {
    flex: 1;
    min-height: 0;
}

.single-report {
    background: rgba(6, 7, 9, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.report-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.report-box-header h3 {
    margin: 0;
    font-size: 16px;
}

.copy-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn.copied {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.report-block h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #e2e8f0;
}

.section-body {
    font-size: 13px;
    color: #e2e8f0;
}

.risk-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.5);
    color: #facc15;
}

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.list-block {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #e2e8f0;
}

.list-block div {
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.report-placeholder {
    color: #94a3b8;
}

.report-section {
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.report-section:last-child {
    border-bottom: none;
}

.report-groups {
    display: grid;
    gap: 12px;
}

.report-group {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(9, 12, 20, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
}

.report-group-title {
    font-size: 12px;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-section-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.report-fields {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: #e2e8f0;
}

.report-field {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
}

.report-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-value {
    font-size: 13px;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.report-value-monospace {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.report-value-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-items {
    display: grid;
    gap: 6px;
    padding-left: 16px;
}

.report-items-ordered {
    padding-left: 20px;
}

.report-item {
    list-style: disc;
    font-size: 13px;
    color: #e2e8f0;
}

.report-items-ordered .report-item {
    list-style: decimal;
}

.report-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 8px 14px;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
        padding-bottom: 6px;
    }

    nav a {
        margin-left: 0;
    }

    .site-disclaimer {
        padding: 12px 14px;
        margin-bottom: 20px;
    }

    .site-disclaimer p {
        font-size: 12px;
    }
}
