body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #eaeaea;
}
h1, h2 { 
    color: #2c3e50; 
}
.section, .sections-menu {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.section {
    display: none;
}
.sections-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.menu-item {
    display: flex;
    flex-direction: column;
    width: calc(50% - 10px);
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #eeeeee;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.menu-item-icon {
    width: 100px;
    height: 100px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 10px;
    flex-shrink: 0;
    background-color: #ebecf7;
    border-radius: 6px;
}
.menu-item-icon.vertical {
    background-image: url('../img/vertical-icon.svg');
}
.menu-item-icon.horizontal {
    background-image: url('../img/horizontal-icon.svg');
}
.menu-item-icon.overlay {
    background-image: url('../img/overlay-icon.svg');
}
.menu-item-title {
    font-weight: 600;
    font-size: 20px;
    color: #7e5daf;
}
.menu-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}
.menu-item:hover .menu-item-title {
    color: #7e5daf;
}

.back-to-menu {
    border-bottom: 1px dotted #7e5daf;
    color: #7e5daf;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 0 6px;
    margin-bottom: 24px;
}
.back-to-menu::before {
    content: '';
    transform: rotate(45deg);
    width: 4px;
    height: 4px;
    border-left: 2px solid #7e5daf;
    border-bottom: 2px solid #7e5daf;
    flex-shrink: 0;
    margin-right: 6px;
}
.back-to-menu:hover { 
    color: #5b437e; 
}
.back-to-menu:hover::before {
    border-color: #5b437e;
}
.controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
label { 
    font-weight: bold; font-size: 0.9em; 
}
input[type="number"], input[type="text"], select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="color"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 35px;
    background: transparent;
    padding: 2px;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
button {
    background-color: #7e5daf;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
button:hover { 
    background-color: #5b437e; 
}

.outputs {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}
.output-box {
    display: flex;
    flex-direction: column;
    width: calc(50% - 10px);
}
textarea {
    width: 100%;
    height: 300px;
    font-family: monospace;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    background: #272822;
    color: #f8f8f2;
    box-sizing: border-box;
}
.output-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.copy-btn {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background: #7e5daf;
    border: none;
    border-radius: 4px;
    transition: 0.3s ease-in-out;
}
.copy-btn:hover {
    background: #5b437e;
}
.live-demo-wrapper h3 {
    margin-bottom: 0;
}

.advanced-settings, 
.content-settings {
    display: flex;
    gap: 8px 24px;
    flex-wrap: wrap;
    width: 100%;
}

.advanced-settings.hidden, 
.content-settings.hidden {
    display: none;
}

.toggle-advanced-btn-wrapper, 
.toggle-content-btn-wrapper {
    width: 100%;
}

.toggle-advanced-btn, 
.toggle-content-btn {
    cursor: pointer;
    transition: 0.3s ease-in-out;
    width: fit-content;
    margin-left: auto;
    font-size: 16px;
    line-height: 16px;
    padding-bottom: 4px;
    border-bottom: 1px dotted #7e5daf;
    color: #7e5daf;
}

.toggle-advanced-btn:hover, 
.toggle-content-btn:hover {
    border-bottom: 1px dotted #5b437e;
    color: #5b437e;
}

.advanced-settings .control-group, 
.content-settings .control-group {
    margin-bottom: 10px;
}

.divider {
    width: 100%;
    border: none;
    border-top: 1px dashed #ccc;
    margin: 0;
}

.content-fields-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    gap: 20px;
}

.content-fields-wrapper h4 {
    margin: 8px 0;
}

.content-fields-wrapper textarea {
    height: 100px;
}

@media (max-width: 768px) {
    .outputs { 
        flex-direction: column;
    }
    .output-box {
        width: 100%;
    }
    .sections-menu {
        padding: 15px;
    }
    .menu-item {
        width: 100%;
        max-width: none;
        padding: 20px;
    }
    .menu-item-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    .menu-item-title {
        font-size: 20px;
    }
}