body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* background-color is now set dynamically by JS */
    color: #333;
    line-height: 1.6;
    margin: 0;
    /* Padding removed to allow full-page background */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.container {
    max-width: 900px;
    margin: 20px auto; /* Re-add margin since body padding is gone */
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    /* Add a frosted glass effect */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

h1, h2 {
    color: #03027e;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Adjust h2 when it's a summary for a collapsible section */
summary h2 {
    display: inline-block; /* Keep it on the same line as the disclosure triangle */
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0; /* Remove bottom margin to avoid extra space when collapsed */
}

.form-section {
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    align-items: center;
}

label {
    font-weight: bold;
}

input[type="text"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="color"] {
    width: 100%; /* Or a fixed width like 50px if you prefer */
    height: 35px; /* Increased height */
    padding: 2px; /* Minimal padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding and border don't add to width/height */
}

.info-display {
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-height: 21.6px; /* Match input height */
    display: block;
    box-sizing: border-box;
    color: #555;
}

button {
    background-color: #03027e;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0503a8;
}

.add-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.section-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}
.section-item.dragging {
    opacity: 0.5;
    border: 2px dashed #03027e;
}

.drag-over-marker {
    height: 2px;
    background-color: #03027e;
    margin: 5px 0; /* Adjust as needed */
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h3 {
    margin: 0;
    text-transform: capitalize;
}

.section-header .delete-btn {
    background-color: #e74c3c;
}
.section-header .delete-btn:hover {
    background-color: #c0392b;
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
} /* Closing brace for pre was missing, added it. Assuming it was a typo from previous context. */

.formatted-content-area {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.scripture-slide-preview {
    margin-bottom: 8px;
    padding: 5px;
    border: 1px dashed #ccc;
}

.scripture-slide-content { /* New style for the div replacing pre */
    white-space: pre-wrap; /* Allow text to wrap within the pre tag */
    word-wrap: break-word;
    margin: 0;
    font-size: 0.9em; /* Smaller font for preview */
}

.scripture-slide-content sup {
    vertical-align: super;
    font-size: 0.75em; /* Adjust as needed, smaller than parent */
    line-height: 0; /* Helps prevent sup from increasing line spacing */
}
.scripture-slide-content .prayer-bold {
    font-weight: bold;
}

/* --- Tab Styles --- */
.tab-container {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    border-bottom: 3px solid transparent;
    font-size: 1em;
    color: #555;
    margin-right: 5px;
}

.tab-button.active {
    color: #03027e;
    border-bottom-color: #03027e;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.disclaimer {
    grid-column: 1 / -1; /* Span across both columns in the grid */
    font-size: 0.9em;
    color: #666;
    background-color: #f9f9f9;
    border-left: 3px solid #f0ad4e;
    padding: 10px;
    margin-top: 15px;
}

.formatted-content-details {
    margin-top: 15px;
}

.formatted-content-details > summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
}

/* General style for all summaries to make them clickable */
details > summary {
    cursor: pointer;
}