div.settingsheader {
    margin-top: 1vw;
    padding-right: 1vw;
    height: 10vw;
    width: 30vw;
    text-align: right;
    display:inline-block;
}

div.settingsfullrow {
    margin-top: 4vw;
    height: 10vw;
    width: 100%;
}

div.settingsinput {
    margin-top: 1vw;
    height: 10vw;
    width: 50vw;
    display:inline-block;
}

div.settingsunit {
    margin-top: 1vw;
    height: 10vw;
    width: 5vw;
    display:inline-block;
    padding-left: 2vw;
    text-align:left;
}

div#settingsDisplay {
    line-height: 10vw;
}

/* Container */
.cover-editor {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Title */
.cover-editor-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #333;
}

/* Layout groups */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

/* Labels */
.form-group label {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 6px;
}

/* Inputs */
.form-input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* Image preview */
.image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f7f7f7;
    margin-right: 10px;
    flex-shrink: 0;
}

.image-preview.small {
    max-width: 120px;
    max-height: 120px;
}

/* Row for image + button */
.image-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn, .btn-primary {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn {
    background: #ddd;
    color: #333;
}

.btn:hover {
    background: #ccc;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0069d9;
}

/* Save button row */
.form-actions {
    text-align: center;
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 600px) {
    .cover-editor {
        padding: 15px;
    }

    .image-upload-row {
        flex-direction: column;
        align-items: stretch;
    }

    .image-preview {
        width: 100%;
    }
}
