body {
    font-family: inherit;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    height: auto;
    overflow-y: auto;
}
.container {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    width: 90%;
    z-index: 100;
    margin-top: 20px;
    border: 1px solid var(--border);
}
h1 {
    color: var(--brand);
    text-align: center;
    margin: 0 0 6px 0;
}
ol {
    line-height: 1.6; 
    margin-bottom: 30px;
}

li {
    margin-bottom: 10px;
}

.description {
    text-align: center;
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 16px;
}
.dropzone {
    width: 97%;
    max-width: 100%;
    min-height: 110px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 16px;
    margin: 20px 0;
    cursor: pointer;
    text-align: center;
    padding: 16px;
    overflow-y: auto;
    flex-direction: column;
    background-color: rgba(0, 123, 255, 0.04);
    transition: background-color .2s ease, border-color .2s ease, transform .06s ease;
}
.dropzone.dragover {
    background-color: rgba(0, 123, 255, 0.08);
    border-color: var(--brand);
    transform: scale(0.998);
}
.message {
    display: none;
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
    white-space: pre-line;
}
.message.success {
    color: #1a7f37;
}
.message.error {
    color: #dc3545;
}
.progress {
    font-size: 15px;
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
}
.progress-bar {
    width: 0;
    height: 12px;
    background-color: var(--brand);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: width 0.35s ease;
}
.preview-container {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.preview-item-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview-item {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.remove-button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(220, 53, 69, 0.92);
    color: white;
    border: none;
    border-radius: 8px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
button[type="submit"] {
    background-color: var(--brand);
    color: white;
    border: 1px solid transparent;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: block;
    width: 100%;
    margin-top: 18px;
}
button[type="submit"]:hover {
    background-color: var(--brand-600);
}
.toggle-switch {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
    display: none;
}
.toggle-switch-label {
    position: relative;
    margin-top: 10px;
    width: 60px;
    height: 30px;
    background-color: #cbd5e1;
    border-radius: 15px;
    transition: background-color 0.2s;
}
.toggle-switch-label::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label {
    background-color: #ff784a;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label::after {
    transform: translateX(30px);
}
.toggle-switch-text {
    margin-left: 10px;
    margin-top: 10px;
    font-size: 15px;
    color: var(--muted);
}

.example {
    border: 1px solid var(--border);
    margin-bottom: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    background-color: var(--card);
    transition: transform 0.2s;
}
.example:hover {
    transform: translateY(-2px);
}
.example-body {
    padding: 16px;
}
.example-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
}
.example-text {
    font-size: 14px;
    color: var(--muted);
}
.example-image {
    width: 33%;
    height: auto;
    border-bottom: 1px solid var(--border);
    object-fit: cover;
}

@media (max-width: 900px) {
    .preview-container {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}
@media (max-width: 720px) {
    .preview-container {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
    .dropzone {
        min-height: 130px;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    button[type="submit"] {
        font-size: 15px;
        padding: 10px 16px;
    }
}