/* Button Color Scheme Generator Styles */
.button-generator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Preview Section */
.button-preview-section {
    margin-bottom: 30px;
}

.button-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.button-preview {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.button-default {
    /* Will be set dynamically */
}

.button-hover {
    /* Will be set dynamically */
}

.button-active {
    /* Will be set dynamically */
}

.button-focus {
    /* Will be set dynamically */
    outline: none;
    position: relative;
}

.button-disabled {
    /* Will be set dynamically */
    cursor: not-allowed;
}

/* Controls Section */
.button-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .button-controls {
        grid-template-columns: 1fr;
    }
}

/* Base Style Controls */
.base-style-controls {
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

/* State Controls */
.state-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.state-control-group {
    margin-bottom: 15px;
}

.state-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
}

/* Slider Controls */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-input {
    flex: 1;
}

.slider-value {
    width: 40px;
    text-align: center;
    font-size: 14px;
}

/* Button Style Options */
.button-style-options {
    margin-bottom: 20px;
}

.style-option {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.style-option:hover {
    border-color: #0d6efd;
}

.style-option.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Output Section */
.output-section {
    grid-column: 1 / -1;
    background: #f1f3f5;
    padding: 15px;
    border-radius: 6px;
}

.output-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.css-output {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: none;
    min-height: 200px;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn {
    background: #6c757d;
    color: white;
}

.copy-btn:hover {
    background: #5c636a;
}

.copy-btn.copied {
    background: #198754;
}

.reset-btn {
    background: #dc3545;
    color: white;
}

.reset-btn:hover {
    background: #bb2d3b;
}

/* Slider Customization */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #dee2e6;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Focus ring style */
.focus-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 8px;
    pointer-events: none;
}