.header {
    background-color: #393939;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

    .logo img {
        width: 150px;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 14px;
        font-weight: bold;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background-color 0.3s ease;
        position: relative;
    }

    .nav-links img {
        width: 20px;
        height: 20px;
        filter: invert(100%);
    }

    .nav-links a:hover {
        background-color: #212121;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #ed1c24;
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

.login-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

    .login-link img {
        width: 20px;
        height: 20px;
        filter: invert(100%);
    }

    .login-link:hover {
        background-color: #212121;
    }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        margin: 3px 0;
    }

.nav-links.responsive {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #393939;
    width: 100%;
}

    .nav-links.responsive a {
        justify-content: center;
        width: 100%;
        padding: 15px 0;
    }

.nav-links.show {
    display: flex;
}

.responsive-nav-links {
    display: none;
}

.middle-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Horisontellt centrerad */
    background: url('https://www.trygghansa.se/siteassets/bilder/sp/hero/other/fronthero_1920x400.jpg?format=webp&width=1920&height=366&rxy=0.36%2c0.44&quality=80') no-repeat center center/cover;
    height: 250px;
    width: 100%;
    flex-shrink: 0;
}

.main-content {
    width: 100%;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: #393939;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-top: auto;
}

.social-icons {
    display: flex;
    gap: 10px;
}

    .social-icons img {
        width: 24px;
        height: 24px;
        filter: invert(100%);
    }

.footer-logo img {
    width: 150px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.form-container {
    background-color: #ffffff;
    border: 1px solid #d1d9e0;
    border-radius: 0.375rem;
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 20px;
}

.form-wrapper {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}


.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 14px;
    font-weight: bold;
    color: #24292f;
}

input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #d1d9e0;
    border-radius: 0.375rem;
    background-color: #f6f8fa;
    color: #24292f;
}

    input:focus {
        outline: none;
        border-color: #ed1c24;
        box-shadow: 0 0 3px rgba(237, 28, 36, 0.5);
    }

.submit-button {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #ed1c24;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .submit-button:hover {
        background-color: #c71e22;
    }

    .submit-button:active {
        background-color: #a31519;
    }

/* ===== ReportApiIssue.razor.css – themed to your design tokens ===== */
:root {
    --brand-red: #ed1c24;
    --brand-red-hover: #c51a1d;
    --border: #d0d7de;
    --bg: #f4f6f8;
    --bg-card: #ffffff;
    --text: #24292f;
    --shadow: 0 2px 6px rgba(0,0,0,.07);
    --radius: 10px;
}

.report-issue {
    max-width: 880px;
    margin: 0 auto;
}

.report-issue textarea {
    min-height: 180px;
    resize: vertical;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafafa;
}

.report-issue textarea:focus {
    outline: 2px solid var(--brand-red);
}

.report-issue .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.report-issue .card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.report-issue .card-header h2 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    color: var(--text);
}

.report-issue .muted {
    color: #57606a;
    font-size: .9rem;
}

.report-issue .stepper {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 16px 0;
    margin: 0;
}

.report-issue .step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background: #fafafa;
    color: var(--text);
    transition: background .2s, border-color .2s;
}

.report-issue .step .index {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    font-size: .8rem;
    border: 1px solid var(--border);
    background: #fff;
}

.report-issue .step .label {
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-issue .step.done {
    background: #fff5f5;
    border-color: #f1bcbc;
}

.report-issue .step.done .index {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.report-issue .step.active {
    background: #fff0f0;
    border-color: var(--brand-red);
    box-shadow: inset 0 0 0 1px var(--brand-red);
}

.report-issue .step.active .index {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.report-issue .step.todo {
    opacity: .8;
}

.report-issue .progress {
    height: 8px;
    background: #f0f2f4;
    border-radius: 999px;
    margin: 12px 16px 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.report-issue .progress .bar {
    height: 100%;
    width: 0%;
    background: var(--brand-red);
    transition: width .25s ease;
}

.report-issue .card-body {
    padding: 20px 24px 24px;
    display: grid;
    gap: 16px;
}

.report-issue .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.report-issue .field label {
    font-weight: 600;
    color: var(--text);
}

.report-issue .select {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 16px;
    background: #fafafa;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.report-issue .select:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-red) 30%, transparent);
    border-color: var(--brand-red);
    background: #fff;
}

@supports not (color-mix(in srgb, red 30%, transparent)) {
    .report-issue .select:focus {
        box-shadow: 0 0 0 2px rgba(237,28,36,.25);
    }
}

.report-issue .select:disabled {
    background: #f6f8fa;
    color: #9aa1a7;
    cursor: not-allowed;
}

.report-issue .summary {
    margin-top: 8px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}

.report-issue .summary.hidden {
    display: none;
}

.report-issue .summary-list {
    margin: 8px 0 16px;
    padding-left: 18px;
}

.report-issue .btn-primary {
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: background .15s, transform .02s;
}

.report-issue .btn-primary:hover {
    background: var(--brand-red-hover);
}

.report-issue .btn-primary:active {
    transform: translateY(1px);
}

.report-issue .btn-primary:disabled {
    opacity: .6;
    cursor: default;
}

.report-issue .btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 6px;
    margin-left: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.report-issue .btn-ghost:hover {
    background: #f6f8fa;
    border-color: color-mix(in srgb, var(--border) 70%, var(--brand-red) 30%);
}

@supports not (color-mix(in srgb, red 30%, white)) {
    .report-issue .btn-ghost:hover {
        border-color: #e1a0a0;
    }
}

.report-issue .success {
    color: #0a7a42;
    margin-top: 10px;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .report-issue * {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 520px) {
    .report-issue .step .label {
        display: none;
    }
}

@media (max-width: 768px) {
    .custom-table th,
    .custom-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

        .custom-table th:nth-child(2),
        .custom-table td:nth-child(2),
        .custom-table th:nth-child(3),
        .custom-table td:nth-child(3) {
            white-space: nowrap;
        }

    .main-container {
        flex-direction: column;
        align-items: stretch;
    }

    .menu {
        width: 100%;
        margin-bottom: 20px;
    }

    .menu-item {
        white-space: normal;
    }

    .nav-links {
        display: none;
    }

    .login-link {
        display: none;
    }

    .api-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .category-item {
        width: 100%;
        justify-content: center;
    }

    .api-list {
        flex-direction: column;
    }

    .api-item {
        flex: 1 1 100%;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1000;
    }

        .menu-toggle span {
            width: 100%;
            height: 3px;
            background-color: white;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

    .responsive-nav-links {
        position: absolute;
        top: 30px;
        right: -10px;
        background-color: #393939;
        width: 250px;
        padding: 15px;
        display: none;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

        .responsive-nav-links a {
            color: white;
            text-decoration: none;
            padding: 10px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid #555;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

            .responsive-nav-links a:last-child {
                border-bottom: none;
            }

        .responsive-nav-links img {
            width: 24px;
            height: 24px;
            filter: invert(100%);
        }

        .responsive-nav-links span {
            font-size: 14px;
            color: white;
        }

        .responsive-nav-links a:hover {
            background-color: #212121;
        }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .api-details-content {
        flex-direction: column;
        padding: 0 10px;
        width: 100%;
    }

    .menu {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .content-area {
        width: 100%;
    }
}
