/**
 * Styles for the visual style builder interface
 */

.login-awp-style-builder {
    margin: 20px 0;
}

.login-awp-style-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.login-awp-style-controls {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-awp-control-panel {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-awp-control-panel h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.login-awp-control-group {
    margin-bottom: 15px;
}

.login-awp-control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.login-awp-control-group select,
.login-awp-control-group input[type="text"] {
    width: 100%;
}

/* Color picker styles */
.wp-picker-container {
    width: 100%;
}

.wp-picker-container .wp-color-result.button {
    margin: 0 0 5px 0;
}

/* Slider controls */
.login-awp-slider-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-awp-slider-control input[type="range"] {
    flex: 1;
}

.login-awp-slider-value {
    min-width: 40px;
    text-align: center;
    font-size: 12px;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 2px 5px;
}

/* Preview section */
.login-awp-style-preview {
    flex: 2;
    min-width: 400px;
}

.login-awp-preview-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.login-awp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.login-awp-loading-overlay .spinner {
    float: none;
    margin: 0 0 10px 0;
}

.login-awp-loading-overlay p {
    margin: 0;
    color: #555;
}

#style-preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    z-index: 5;
}

/* Action buttons */
.login-awp-style-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

/* CSS code display */
.login-awp-style-code {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-awp-style-code h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#login-awp-custom-css {
    width: 100%;
    font-family: monospace;
    font-size: 12px;
    background-color: #f7f7f7;
    border-color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .login-awp-style-editor {
        flex-direction: column;
    }
    
    .login-awp-style-preview {
        min-width: 100%;
    }
    
    .login-awp-preview-container {
        height: 400px;
    }
}
