/* VTDLP Ingest Form Styles */
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

p {
    color: #666;
    line-height: 1.6;
}

form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    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-section {
    margin: 2rem 0;
}

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


input[type="text"], 
input[type="file"],
input#collection_identifier,
input#parent_collection_identifier,
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    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);
}

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

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

/* Section headers with visual separation */
/*
form div:nth-child(4)::before {
    content: "AWS Configuration";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

form div:nth-child(7)::before {
    content: "Collection Configuration";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

form div:nth-child(10)::before {
    content: "DynamoDB Configuration";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

form div:nth-child(13)::before {
    content: "Path Configuration";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

form div:nth-child(16)::before {
    content: "NOID Configuration";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

form div:nth-child(18)::before {
    content: "Media Configuration";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

form div:nth-child(19)::before {
    content: "Processing Options";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0 10px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}
    */

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    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#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 */
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: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

#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 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-bottom: 24px;
}

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