/* Advanced CSS Color Effects Generator Stylesheet */
.css-gen-container, .css-gen-container * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.css-gen-container {
    background-color: #f4f4f4;
    color: #1a1a1a;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Centered Header Bar styling */
.css-gen-header {
    background-color: #e0e0e0;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #d0d0d0;
}

.css-gen-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Main workspace - grid style via display tables fallback/block structure for standard responsiveness */
.css-gen-workspace {
    display: block;
    padding: 25px;
}

@media (min-width: 850px) {
    .css-gen-workspace {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    .css-gen-controls {
        display: table-cell;
        width: 55%;
        vertical-align: top;
        padding-right: 25px;
    }
    .css-gen-preview-panel {
        display: table-cell;
        width: 45%;
        vertical-align: top;
    }
}

.css-gen-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.css-gen-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #1a1a1a;
    border-left: 4px solid #39ff14;
    padding-left: 10px;
}

.css-gen-control-group {
    margin-bottom: 15px;
}

.css-gen-control-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.css-gen-control-group label span {
    float: right;
    color: #666;
    font-weight: normal;
}

.css-gen-control-group input[type="range"] {
    width: 100%;
    margin: 0;
    background: #e0e0e0;
    accent-color: #39ff14;
}

.css-gen-control-group input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.css-gen-control-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.checkbox-group {
    display: block;
}
.checkbox-group input {
    margin-right: 8px;
    accent-color: #39ff14;
}
.checkbox-group label {
    display: inline;
    cursor: pointer;
}

/* Sticky Preview Panel Setup */
.css-gen-sticky-wrap {
    position: -webkit-sticky;
    position: sticky;
    top: 40px;
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.css-gen-sticky-wrap h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Interactive Preview Box Area */
.css-preview-container {
    background-color: #fcfcfc;
    border: 1px dashed #ccc;
    border-radius: 6px;
    height: 220px;
    display: flex; /* Supported natively within interactive internal preview content components */
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

/* Elements using absolute dynamic fallback inside flex containers just in case */
#css-preview-box {
    width: 160px;
    height: 160px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    text-align: center;
}

#css-preview-text {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

/* Textarea Output Code Formatting */
.css-code-container textarea {
    width: 100%;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background-color: #1a1a1a;
    color: #f4f4f4;
    padding: 12px;
    border-radius: 4px;
    border: none;
    resize: none;
    margin-bottom: 15px;
}

/* Action Buttons Design - Light Neon Green Theme */
.css-actions-row {
    display: block;
    width: 100%;
}

.css-gen-btn {
    display: block;
    width: 100%;
    background-color: #39ff14;
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.css-gen-btn:hover {
    background-color: #32e610;
}

.css-gen-btn:active {
    opacity: 0.85;
}
