/* VTDLP Ingest Form Styles */

/* Screen reader only class - visually hidden but announced by screen readers */
.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: Arial, sans-serif;
    font-size: 1.0em;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: #222;
    /* Ensure all headings meet WCAG AAA */
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #222;
    /* Very dark text for strong contrast - 15.8:1 ratio */
}

p, li {
    color: #222;
    font-size: 1.25em;
}

a, a:visited {
    color: #005a9c;
}

a:active, a:hover {
    text-decoration: none;
}

.center {
    text-align: center;
}

/* Fieldset description styling */
.fieldset-description {
    margin: 0 0 1rem 0;
    font-weight: normal;
    font-size: 0.9em;
    color: #555;
}

ol.instruction_list li {
    margin-bottom: 1rem;
}

form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.25em;
    /* Increased font size for better readability - WCAG 1.4.4 */
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

div.ingest_type_radios, div.env_radios {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 2rem 0;
}

div#db-table-select {
    margin: 2rem 0;
}
.hidden {
    display: none;
}

#collection_identifier_status {
    margin-top: 5px;
}

#collection_parent_match {
    color: #b00000;
    font-weight: bold;
    margin-top: 10px;
}

input[type="date"] {
    margin-bottom: 1rem;
    color: #222;
    border: 1px solid #444;
    /* High contrast border - 8.6:1 ratio */
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"], 
input[type="file"],
input#collection_identifier,
input#parent_collection_identifier,
select {
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    color: #222;
    border: 1px solid #444;
    /* High contrast border - 8.6:1 ratio */
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus, 
select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Checkbox styling */
input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    accent-color: #005a9c;
    /* High-contrast blue for checkboxes - WCAG AA compliant */
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

label:has(input[type="checkbox"]):hover {
    color: #4CAF50;
}

button {
    background: #005a9c;
    /* High-contrast blue - 8.2:1 ratio - WCAG AA compliant */
    color: #fff;
    /* White text */
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25em;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}
button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:active {
    transform: translateY(1px);
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border-color: #45a049;
    background-color: white;
}
input#collection_metadata_input.incomplete,
input#archive_metadata_input.incomplete {
    border: 2px solid #b00;
}

input[type="file"]:hover {
    border-color: #000;
}

/* Placeholder text styling */
input::placeholder {
    color: #999;
    font-style: italic;
}

input.short {
    width: 25%;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    form {
        padding: 20px;
    }
}

/* Make section headings green */
h2.logs, h3 {
    color: #4CAF50; /* Green */
    font-size: 1.25em;   
    font-weight: bold;
    margin: 16px 0;
    letter-spacing: 0.5px;
}

/* Section styling for visual separation */
.form_section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 18px;
    margin: 2rem 0;
    border: 1px solid #e3e3e3;
    transition: box-shadow 0.3s;
}

.form_section.closed {
    opacity: 0.5;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s, max-height 0.5s;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

/* Section status indicator styling */
.section_status {
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
}
.section_status.incomplete { background: #ffe0e0; color: #b30000; }
.section_status.complete { background: #e0ffe0; color: #008000; }

.section_text {
    font-size: 1rem;
    margin-bottom: 8px;
}

.aside {
    font-size: 1rem;
}

#collection_identifier:invalid {
    border: 2px solid #b00000;
    background: #fff;
}

/* Error message styling */
.error-message {
    color: #b00000;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}

.header_bar {
    height: 110px;
}

.header_bar p {
    font-size: 1.0em;
    margin: 0;
}

.header_bar .header_left {
    display: block;
    float: left;
}

.header_bar .header_left .header_left_top_row {
    height: 80px;
}

.header_bar .header_right {
    display: block;
    float: right;
    height: 80px;
}

.header_bar .header_right .user_info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    height: 58px;
}
.header_bar .header_right .user_info p {
    align-self: flex-end;
    margin-bottom: 0;
}

.header_bar .header_left h1 {
    display: inline-block;
}




.app_logo {
    height: 39px;         /* 60px * 0.65 = 39px */
    max-width: 130px;     /* 200px * 0.65 = 130px */
    object-fit: contain;
    margin-right: 16px;
}

div#content {
    display: block;
    clear: both;
}

div#content .msg {
    color: #b00000;
}

#progress_container {
    margin: 16px 0;
}

.log_output {
    background: #f5f5f5; 
    border: 1px solid #ddd; 
    padding: 15px; 
    margin-bottom: 20px; 
    max-height: 200px; 
    overflow-y: auto; 
    font-family: monospace; 
    font-size: 12px; 
    white-space: pre-wrap;
}