:root {
    --primary-color: #007bff;
    --success-color: green;
    --exposure-color: orange;
    --padding-base: 24px;

    /* Primary Colors */
    --blue-midnight: #01232C;
    --brand-green: #00C57B;
    --orange-web: #F98D00;

    /* Secondary Colors */
    --dark-green: #009960;
    --light-green: #67E7B1;
    --extra-light-green: #F0FDF7;
    --soft-light-green: #FBFEFD;
    --info-blue: #365AC7;
    --info-light-blue: #A0B2E6;
    --beige: #E1D7D3;
    --light-beige: #F0EBE2;

    /* Greyscale */
    --black: #1A1A1A;
    --grey-600: #4E4E4E;
    --grey-500: #949899;
    --grey-400: #C6CBCC;
    --grey-300: #E1E5E5;
    --grey-200: #EDF1F2;
    --grey-100: #F8F9FA;

    /* Alert Colors */
    --red-danger: #FF1F1F;
    --warning: #FFCB45;
    --success: #00C57B;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 145%;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 125%;
}

.spline-sans-body16 {
    font-size: 16px;
}

.spline-sans-body14 {
    font-size: 14px;
}

.spline-sans-body12 {
    font-size: 12px;
}

.spline-sans-body16.semibold {
    font-weight: 600;
}

.spline-sans-body14.medium,
.spline-sans-body12.medium {
    font-weight: 500;
}

.spline-sans-body16.regular,
.spline-sans-body14.regular,
.spline-sans-body12.regular {
    font-weight: 400;
}

* {
    box-sizing: border-box;
}

/* QR Code Container Styling to match PreBindUpload */
#report-qrcode-container {
    position: fixed;
    top: 32px;
    left: calc(50% + 332px);
    background: white;
    padding: 16px;
    z-index: 200;
    width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

#report-qrcode-container p {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-500);
}

#continue-on-phone {
    height: 65px;
    width: auto;
}

#report-qrcode {
    margin: 0;
    padding: 0;
    width: 100%;
}

#report-qrcode img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* Report Layout Section */
#report-layout {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Flow Header Styles */
.flow-header {
    line-height: 1.5;
    color: var(--blue-midnight);
    text-align: left;
    padding: 16px 0;
}

.flow-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 auto;
    padding: 0;
    color: var(--blue-midnight);
}

#generatingMessage h3 {
    margin: 0 auto;
    width: 80%;
}

.flow-header h3 span {
    color: var(--brand-green);
}

.flow-header p {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--grey-600);
}

.flow-header p.center {
    text-align: center;
}

.flow-header#thankYouMessage {
    padding: 16px 20px;
    text-align: center;
}

.report-description {
    color: var(--grey-600);
    font-size: 14px;
    margin: 8px 0 16px 0;
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

/* Animation Classes */
.slide-up-fade-in {
    animation: slideUpFadeIn 0.4s ease-out;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Call Overlay */
#callOverlay {
    position: fixed;
    background-color: white;
    padding: 20px;
    height: 100dvh;
    width: 100dvw;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    z-index: 300;
}

.call-top-container {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
}

.call-top-container img {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.call-content-container {
    margin: 54px 0;
    text-align: center;
}

.call-content-container h3 {
    margin: 24px 0;
    font-size: 32px;
}

.call-content-container h3 a {
    text-decoration: none;
    color: var(--blue-midnight);
}

.call-content-container p {
    margin: 8px auto;
    max-width: 500px;
}

.call-content-container p a {
    color: var(--brand-green);
    text-decoration: none;
}

/* Body */
body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    width: 100%;
    min-height: 100dvh;
    font-family: "Spline Sans", sans-serif;
    font-size: 15px;
    font-optical-sizing: auto;
    letter-spacing: 0;
    font-style: normal;
    color: var(--blue-midnight);
    padding-bottom: 24px;
}

body,
.full-width-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header & Logo */
.page-header {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-right a {
    margin-right: 16px;
    text-decoration: none;
    color: var(--grey-600);
}

#newReportButton {
    display: flex;
    align-items: center;
}

.page-header a {
    line-height: 0;
}

.page-header .logo {
    width: 200px;
    height: auto;
    margin: 0;
}

#newReportButton {
    margin: 0;
}

#showCallOverlayBtn {
    height: 24px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-green);
    cursor: pointer;
}

#showCallOverlayBtn img {
    width: auto;
    height: 100%;
    margin-left: 6px;
}

/* Button Styling */
button {
    font-family: "Spline Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
    padding: 8px 24px 8px 24px;
    border-radius: 100px;
    margin: 0;
    color: white;
    background-color: var(--brand-green);
    display: flex;
    justify-content: center;
    flex-direction: row;
    white-space: nowrap;
}

button img {
    vertical-align: bottom;
    margin-right: 4px;
}

button:disabled {
    cursor: not-allowed;
    background-color: var(--grey-300);
}

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

button.secondary:disabled {
    cursor: not-allowed;
    color: var(--grey-300);
    border-color: var(--grey-300);
}

.action-control-container {
    padding: 12px;
}

.bottom-button-container {
    padding: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#shareAndAddContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
}

.upload-prompt {
    text-align: left;
    width: 100%;
    height: 100%;
    line-height: normal;
    display: flex;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    white-space: wrap;
    margin: 0 auto;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-line {
    width: 100%;
    padding: 8px;
    font-size: 18px;
    box-sizing: border-box;
    position: relative;
}

.dropdown-content {
    z-index: 100000000;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    margin-top: 2px;
}

.dropdown-content div {
    color: black;
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-content div:hover {
    background-color: #ddd;
}

#imageInput {
    display: none;
}

img {
    height: auto;
}

.prompt-container {
    position: relative;
    width: 100%;
    padding: 20px;
    background-color: var(--grey-100);
}

/* HECA Header */
#reportHeader a,
#reportHeader span {
    line-height: 0;
}

#hecaInfo {
    width: 20px;
    height: 20px;
    position: relative;
    top: 3px;
}

/* Report Headers */
#reportHeader, #hybridReportHeader {
    padding: 0 12px;
}

div#reportDesc {
    font-size: 14px;
    padding: 20px 16px;
    position: relative;
}

/* Report description sparkle icon styling */
#reportDesc .sparkle-icon {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
}

/* Hazards */
#hazardReports {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    position: relative;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}

/* SDS */
#sdsReports {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--grey-200);
    padding: 12px;
    margin-top: 20px;
}

.chemicalContainerHeader {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.chemicalContainerHeader p {
    margin: 0;
}

.chemicalList {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hide-chemicals {
    display: none;
}

.show-chemicals {
    display: flex;
}

/* Hazard Element & Job Step Styling */
.hazard-element {
    border: 1px solid var(--grey-300);
    padding: 12px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    background-color: var(--grey-100);
    border-radius: 6px;
}

.job-step-container {
    margin-bottom: 20px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    width: 100%;
}

.job-step-header {
    background-color: var(--grey-100);
    padding: 12px 16px;
    border-bottom: 1px solid var(--grey-200);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.job-step-header:hover {
    background-color: var(--grey-200);
}

.job-step-container.reorder-mode .job-step-header {
    cursor: default;
}

.job-step-container.reorder-mode .job-step-header:hover {
    background-color: var(--grey-100);
}

.job-step-header h3 {
    margin: 0;
    color: var(--blue-midnight);
}

.job-step-hazards {
    padding: 8px;
}

.job-step-hazards .hazard-element {
    margin-bottom: 8px;
}

.job-step-hazards .hazard-element:last-child {
    margin-bottom: 0;
}

.hazard-description-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#hazard-description-title {
    display: flex;
    align-items: center;
}

#exposureFlag p span {
    color: var(--red-danger);
}

.hazard-description-container img {
    width: 24px;
    object-fit: contain;
    height: 100%;
    margin-right: 8px;
}

.hazard-element p {
    margin: 0;
}

.hazard-element button {
    font-size: 14px;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 8px 0;
    display: block;
    color: var(--brand-green);
    background-color: transparent;
}

.hazard-element button.delete-button {
    color: var(--red-danger);
}

.direct-control-options {
    text-align: left;
}

.direct-control-options label {
    display: flex;
    align-items: baseline;
    margin: 8px 0;
    font-size: 14px;
}

.direct-control-options .option {
    position: relative;
    top: -4px;
    margin-left: 4px;
    flex: 1;
}

/* Control Type Label */
.controlType {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: var(--grey-200);
    color: var(--grey-600);
    text-transform: uppercase;
    vertical-align: middle;
}

/* Checkboxes */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    visibility: hidden;
    margin: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: relative;
    box-sizing: content-box;
    margin: 4px;
    min-height: 16px;
    min-width: 16px;
    border-radius: 2px;
    border: 1.5px solid var(--grey-500);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkmark:after {
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

input:checked~.checkmark:after {
    display: block;
}

input[type="checkbox"]:checked:hover~.checkmark,
input[type="checkbox"]:checked~.checkmark {
    background-color: var(--brand-green);
    border: 1.5px solid var(--brand-green);
}

input[type="checkbox"]:hover~.checkmark {
    background-color: var(--grey-300);
}

/* Company Info Form Styles */
.company-info-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 60vh;
    justify-content: flex-start;
    align-items: stretch;
}

.company-info-form h3,
.upload-prompt h3 {
    color: var(--blue-midnight);
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-group textarea {
    width: 100%;
    height: 18vh;
    padding: 16px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    font-size: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Form and Input Styling */
.form-group input,
.form-group select,
.asset-field input,
.asset-field select,
.control-name-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Spline Sans', sans-serif;
    background-color: white;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.asset-field input:focus,
.asset-field select:focus,
.control-name-input input:focus {
    outline: none;
    border-color: var(--info-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder,
.form-group select::placeholder,
.asset-field input::placeholder,
.asset-field select::placeholder,
.control-name-input input::placeholder {
    color: #9ca3af;
}

/* Company Info Form Styles */
.company-info-form button {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

/* Sample Photo Overlay Styling */
div#sampleOverlay {
    background-color: rgba(0,0,0,0.25);
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100dvw;
    z-index: 100;
    display: none;    
}

div#sampleOverlayContent {
    position: absolute;
    top: 5dvh;
    left: 50dvw;
    transform: translateX(-50%);
    width: 600px;
    height: 90dvh;
    margin: 0;
    padding: 0;
    background-color: white;
    border-radius: 6px;
    border: 24px white solid;
    display: flex;
    flex-direction: column;
}

#sampleOverlayImages {
    overflow-y: scroll;
    -ms-overflow-style: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-400);
}

#sampleOverlayImages::-webkit-scrollbar {
    height: 6px;
}

#sampleOverlayImages::-webkit-scrollbar-track {
    background: var(--white);
}

#sampleOverlayImages::-webkit-scrollbar-thumb {
    background: var(--grey20);
    border-radius: 4px;
}

img.sample-image {
    display: block;
    width: 100%;
    height: 35dvh;
    object-fit: cover;
    object-position: center;
    margin-bottom: 6px;
    cursor: pointer;
}

img#closeSampleOverlayBtn {
    cursor: pointer;
    width: 36px;
    height: 36px;
}

div#sampleHeader {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 0;
}

#sampleHeader h1 {
    font-size: 20px;
    text-align: center;
    flex: 2;
}

#sampleHeader::after {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
}

/* Guidance Content Styles */
.guidance-content {
    text-align: left;
}

.guidance-content ul, 
.guidance-content ol {
    list-style-type: none;
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 0;
}

.guidance-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 920px) {
    #report-qrcode-container {
        display: none;
    }
}

@media screen and (max-width: 700px) {
    /* Header & Logo */
    .page-header {
        flex-wrap: wrap;
    }

    .page-header .logo {
        width: 150px;
    }

    .upload-prompt {
        font-size: 16px;
    }

    div#sampleOverlayContent {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        background-color: white;
        border-radius: 0;
        border: none;
    }
    
    div#sampleHeader {
        padding: 12px 16px;
    }

    /* Buttons */
    .column-button-container {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        padding: 0 24px;
    }

    .hazard-element .column-button-container {
        display: block;
        padding: 0;
    }

    .hazard-element .column-button-container button {
        text-align: left;
        width: unset;
    }

    .hazard-element {
        width: 100%;
        flex-wrap: wrap;
    }

    .hazard-element button {
        margin: 8px 0;
    }

    .hazard-headers {
        display: none;
    }
    
    .flow-header h3 {
        width: 100%;
    }
}

@media screen and (max-width: 410px) {
    .column-button-container {
        flex-direction: column-reverse;
    }

    .column-button-container button {
        width: 100%;
    }
}

/* Save as PDF Styling */
@media print {
    * {
        text-align: left;
    }
    
    section#report-layout {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 0 !important;
        display: flex;
        flex-direction: column;
    }
    
    #showCallOverlayBtn,
    #report-qrcode-container,
    .column-button-container,
    #printButton,
    #copyButton,
    #thankYouMessage img,
    #closePagePrompt {
        display: none !important;
        padding: 0;
    }
    
    #thankYouMessage p::after {
        content: '.';
    }
    
    #reportDesc {
        order: 2;
        padding-top: 0 !important;
    }
    
    #reportDesc .flow-header {
        padding-top: 0 !important;
    }
    
    .flow-header h3,
    .flow-header p,
    #reportInfo {
        margin: 8px 0;
        text-align: left !important;
    }
}

/* Risk Score Styling */
#riskScoreDisplay {
    padding: 6px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-align: center;
}

#riskScoreDisplay p {
    margin: 0;
}

#riskScoreDisplay small {
    opacity: 0.7;
    font-size: 10px;
}

/* Risk classification styles based on QRP.css */
.job-risk-score-container {
    margin: 0 auto;
}
.job-risk-score-container h1 {
    border-radius: 8px;
    margin: 0 auto;
    padding: 4px 16px;
    font-style: normal;
    font-weight: bold;
    font-size: 1.5em;
    white-space: nowrap;
}

.job-risk-score-container .action-steps {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px;
    padding: 0 16px;
}

.level-i {
    color: var(--success-dark);
    background-color: var(--success-light);
    border: 1px solid var(--success);
}

.level-i span {
    color: var(--success-dark);
    font-weight: 600;
}
.level-ii {
    color: var(--success-dark);
    background-color: var(--success-light);
    border: 1px solid var(--success);
}

.level-ii span {
    color: var(--success-dark);
    font-weight: 600;
}

.level-iii {
    color: var(--warning-dark);
    background-color: #FDF3AD;
    border: 1px solid var(--warning-dark);
}

.level-iii span {
    color: var(--warning-dark);
    font-weight: 600;
}

.level-iv {
    color: var(--warning-superdark);
    background-color: var(--warning);
    border: 1px solid var(--warning-dark);
}

.level-iv span {
    color: var(--warning-superdark);
    font-weight: 600;
}

.level-v {
    color: var(--danger-dark);
    background-color: var(--danger-light);
    border: 1px solid var(--danger);
}

.level-v span {
    color: var(--danger-dark);
    font-weight: 600;
}

.level-vi {
    color: #6a1b9a;
    background-color: #cc83f9;
    border: 1px solid #370e51;
}

.level-vi span {
    color: #6a1b9a;
    font-weight: 600;
}

/* Asset Info Fields Styles */
.asset-info-container {
    margin-top: 12px;
}

.asset-field {
    margin-top: 8px;
    position: relative;
}

.asset-field:first-child {
    margin-top: 0;
}

.asset-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Report Metadata Display */
.report-metadata {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: 'Spline Sans', sans-serif;
}

.report-meta-item {
    margin: 8px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.report-meta-item:first-child {
    margin-top: 0;
}

.report-meta-item:last-child {
    margin-bottom: 0;
}

.report-meta-item strong {
    color: #111827;
    font-weight: 600;
}

.frequency-label {
    font-weight: 600;
    color: #111827;
    display: inline-block;
    margin-top: 8px;
}

/* Bottom Risk Score Styling */
.bottom-risk-score {
    margin: 32px auto 24px auto;
    text-align: center;
}

.bottom-risk-score h2 {
    border-radius: 8px;
    margin: 0 auto;
    padding: 8px 20px;
    font-style: normal;
    font-weight: bold;
    font-size: 1.25em;
    white-space: nowrap;
    max-width: fit-content;
}

/* Add Hazard/Job Step Button Styles */
.add-hazard-button,
.add-job-step-button {
    font-size: 14px;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 8px 0;
    display: block;
    color: var(--brand-green);
    background-color: transparent;
    width: auto;
}

.add-hazard-button:hover,
.add-job-step-button:hover {
    color: var(--brand-green-dark);
    background-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .asset-field input,
    .asset-field select {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .report-metadata {
        margin: 12px 0;
        padding: 12px;
    }
    
    .report-meta-item {
        font-size: 13px;
    }
}

/* Remove Zone Styles */
.remove-zone {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* Lower than dragged elements (1000) but above normal content */
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(255, 71, 87, 0.3);
    pointer-events: auto; /* Ensure it can receive touch/mouse events */
}

.remove-zone.visible {
    transform: translateY(0);
}

.remove-zone.drag-over {
    background: linear-gradient(135deg, #ff3742, #ff2d3a);
    transform: translateY(0) scale(1.02);
    box-shadow: 0 -6px 25px rgba(255, 71, 87, 0.5);
}

.remove-zone.hidden {
    transform: translateY(100%);
    pointer-events: none; /* Disable interaction when hidden */
}

.remove-zone-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    pointer-events: none; /* Let events pass through to the parent remove zone */
}

.remove-zone-content img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Make icon white */
}

/* Container positioning no longer needed for fixed positioning */
#hazardReports {
    position: relative;
}

@media (max-width: 768px) {
    .remove-zone {
        height: 70px;
    }
    
    .remove-zone-content {
        font-size: 14px;
        gap: 8px;
    }
    
    .remove-zone-content img {
        width: 20px;
        height: 20px;
    }
}

.jsa-workflow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--green-500, #10b981);
    color: white;
    z-index: 1000;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jsa-workflow-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.jsa-workflow-title {
    font-weight: 600;
    font-size: 16px;
}

.jsa-workflow-container #saveJSAButton {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    min-width: auto;
}

.jsa-workflow-container #saveJSAButton:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Add top padding to body when JSA workflow bar is visible */
body:has(.jsa-workflow-container:not([style*="display: none"])) {
    padding-top: 60px;
}

/* Fallback for browsers that don't support :has() */
.jsa-workflow-active {
    padding-top: 60px !important;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
}

.nsc-branding {
    display: flex;
    align-items: center;
    max-width: 90%;
}

.nsc-branding img {
    height: 100%;
    width: 100%;
}

.nsc-branding {
    position: relative;
}

.beta-tag {
    position: absolute;
    top: -2px;
    right: -24px;
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: var(--brand-green);
    color: white;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* .flow-header h3, p {
    margin: unset;
    padding: unset;
    text-align: left;
    width: 100%;
} */

/* Report Completed Header */
.report-completed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.report-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-header-icon {
    width: 32px;
    height: 32px;
    color: var(--brand-green);
}

.report-completed-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
}

.save-button-top, .save-button-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.save-button-top:hover {
    background-color: var(--dark-green);
}

/* Sign Up Modal */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
}

.modal-header .highlight {
    color: var(--brand-green);
}

.close {
    color: var(--red-danger);
    font-size: 48px;
    font-weight: lighter;
    margin-top: -40px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--black);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 24px 0;
    color: var(--grey-600);
    font-size: 16px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.modal .form-group input::placeholder {
    color: #9ca3af;
}

.modal .error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.modal .form-group small {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.signup-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.signup-submit-btn:hover {
    background-color: var(--dark-green);
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.modal-footer p {
    margin: 0;
    color: var(--grey-600);
    font-size: 14px;
}

.modal-footer a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
}

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

.messages {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.messages.success {
    background-color: #f0f9ff;
    border-color: #7dd3fc;
    color: #0369a1;
}

/* Sign Up CTA Section */
.signup-cta-section {
    background-color: var(--blue-midnight);
    padding: 40px 20px;
    margin-top: 32px;
    text-align: center;
}

.signup-cta-content h2 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.signup-cta-content h2 .highlight {
    color: var(--brand-green);
    padding: 8px 0 0 0;
    display: inline-block;
}

.signup-cta-content p {
    color: white;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.signup-cta-button {
    background-color: var(--brand-green) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.2s ease;
    border: none;
    width: 90%;
}

.signup-cta-button:hover {
    background-color: var(--dark-green) !important;
}