/* Container Width Tester Styles */

/* Preview wrapper */
#containerPreviewWrapper {
    min-height: 300px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
}

/* Container preview */
#containerPreview {
    background-color: #e9ecef;
    position: relative;
    transition: all 0.3s ease;
    min-height: 100px;
}

/* Container with padding */
#containerPreview.with-padding {
    padding: 1.5rem;
}

/* Container with max-width indicator */
#containerPreview.with-max-width::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--container-max-width);
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 2px dashed #0d6efd;
    border-right: 2px dashed #0d6efd;
    pointer-events: none;
}

/* Content styles */
.sample-text {
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.grid-item {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.image-content {
    padding: 1rem;
}

.image-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Breakpoint markers */
.breakpoint-markers {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.breakpoint-marker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.breakpoint-marker .color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.breakpoint-marker.active {
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #containerPreviewWrapper {
        min-height: 200px;
    }
}

/* 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;
}