/* Wrapper to center the tool and set a max width */
.martha-scanning-tool-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

/* Base form styles */
.martha-scanning-tool-wrapper .scanning-tool-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Drop zone styling */
.martha-scanning-tool-wrapper .drop-zone {
    width: 100%;
    min-height: 150px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    margin-bottom: 10px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Drop zone hover and focus states */
.martha-scanning-tool-wrapper .drop-zone:hover,
.martha-scanning-tool-wrapper .drop-zone:focus {
    border-color: #F6821F;
    background-color: #faf3ec;
    color: #F6821F;
}

/* Hide the native file input */
.martha-scanning-tool-wrapper .drop-zone input[type="file"] {
    display: none;
}

.martha-scanning-tool-wrapper .drop-zone span {
    pointer-events: none;
}

/* Selected file area styling */
.martha-scanning-tool-wrapper .file-area {
    margin-bottom: 10px;
    font-style: italic;
    color: #333;
}

/* URL input field styling */
.martha-scanning-tool-wrapper .scanning-tool-form input[type="url"] {
    width: calc(100% - 8px);
    margin-bottom: 10px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* URL input focus state */
.martha-scanning-tool-wrapper .scanning-tool-form input[type="url"]:focus {
    outline: none;
    border-color: #F6821F;
    box-shadow: 0 0 0 2px #f6821f33;
}

/* Shared button styles for submit and reset */
.martha-scanning-tool-wrapper .scanning-tool-form input[type="submit"],
.martha-scanning-tool-wrapper .scanning-tool-form .reset-button {
    display: inline-block;
    width: 300px;
    margin: 8px 4px 8px 0;
    padding: 12px 15px;
    border: 2px solid;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Submit button primary style (orange) */
.martha-scanning-tool-wrapper .scanning-tool-form input[type="submit"] {
    background-color: #F6821F;
    color: #fff;
    border-color: #F6821F;
}

/* Submit button hover and focus */
.martha-scanning-tool-wrapper .scanning-tool-form input[type="submit"]:hover,
.martha-scanning-tool-wrapper .scanning-tool-form input[type="submit"]:focus {
    background-color: transparent;
    color: #F6821F;
    border-color: #F6821F;
}

/* Reset button secondary style (dark blue) */
.martha-scanning-tool-wrapper .scanning-tool-form .reset-button {
    background-color: #005677;
    color: #fff;
    border-color: #005677;
}

/* Reset button hover and focus */
.martha-scanning-tool-wrapper .scanning-tool-form .reset-button:hover,
.martha-scanning-tool-wrapper .scanning-tool-form .reset-button:focus {
    background-color: transparent;
    color: #005677;
    border-color: #005677;
}

/* Responsive adjustments: stack buttons on narrow screens */
@media (max-width: 640px) {
    .martha-scanning-tool-wrapper .scanning-tool-form input[type="submit"],
    .martha-scanning-tool-wrapper .scanning-tool-form .reset-button {
        width: 100%;
        margin-right: 0;
    }
}

/* Feedback message styling */
.martha-scanning-tool-wrapper .form-feedback p {
    margin: 0;
    font-size: 14px;
}

/* Result table styling */
.martha-scanning-tool-wrapper .scanning-tool-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.martha-scanning-tool-wrapper .scanning-tool-results th,
.martha-scanning-tool-wrapper .scanning-tool-results td {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
}

.martha-scanning-tool-wrapper .scanning-tool-results th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.martha-scanning-tool-wrapper .scanning-tool-results td {
    background-color: #fff;
}

.martha-scanning-tool-wrapper .scanning-tool-results tr:nth-child(even) td {
    background-color: #fafafa;
}
