/* Column Layout Generator Styles */

/* Tool-specific styles */
#layoutPreview {
    border: 1px dashed #ccc;
    padding: 15px;
    transition: all 0.3s ease;
}

.column-preview {
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.column-preview.bordered {
    border: 1px solid #dee2e6;
}

.column-preview.alt-bg:nth-child(odd) {
    background-color: #f8f9fa;
}

.column-preview.alt-bg:nth-child(even) {
    background-color: #e9ecef;
}

/* Custom range input labels */
.form-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: -8px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Width controls */
.width-control {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.width-control label {
    min-width: 100px;
    margin-right: 10px;
    margin-bottom: 0;
}

.width-control input {
    flex-grow: 1;
}

/* Custom checkbox alignment */
.form-check {
    margin-bottom: 0.5rem;
}

/* Code output styling */
pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #layoutPreview {
        min-height: 200px;
    }
    
    .width-control {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .width-control label {
        margin-bottom: 5px;
    }
}

/* Animation for copy buttons */
@keyframes flash {
    0% { background-color: transparent; }
    50% { background-color: rgba(25, 135, 84, 0.2); }
    100% { background-color: transparent; }
}

.copied {
    animation: flash 1s;
}