body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding-top: 20px;
}

form {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    color: black;
    overflow: visible;
}

.lightmode form {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.form-section h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scrollable {
    max-height: 1050px;
    overflow-y: auto;
    padding-right: 5px;
}

form label {
    font-weight: bold;
    display: block;
    font-size: 14px;
}

form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

form input[type="color"] {
    height: 35px;
}

input[type="color"] {
    cursor: pointer;
}

#color-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

.popup-content h2 {
    margin-bottom: 15px;
}

.popup-content button {
    margin: 10px 5px;
}

#loading-bar-container {
    width: 220px;
    height: 28px;
    position: relative;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-box .scale {
    width: 100%;
    height: 20px;
    padding: 4px;
    border: 2px solid #373737;
    border-radius: 10px;
    box-sizing: border-box;
}

.progress-box .progress-bar {
    position: absolute;
    top: 8px;
    left: 4px;
    height: 12px;
    width: 0%;
    border-radius: 8px;
    background-color: #373737;
    transition: width 0.5s ease-in-out;
}

.btn-circle {
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 5px;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.1s, box-shadow 0.2s;
}

.btn-circle i {
    color: white;
    pointer-events: none;
}

.btn-circle:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0 18px 0;
    flex-wrap: wrap;
}

.toolbar button {
    background-color: #ffb74d;
    color: #111;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border: none;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toolbar button:hover {
    background-color: #ffa726;
}

.imported-file-info {
    color: #333;
    font-size: 13px;
    margin-left: 8px;
}

.preview-buttons {
    display: flex;
    gap: 8px;
}

.rmb-section {
    display: none;
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    background: #fafafa;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

.rmb-section.visible {
    display: flex;
    flex-direction: column;
    gap: 8px;
}