/* Visual Dividers Styles */
.visual-divider {
    margin: 0.75rem 0;
    position: relative;
    width: 100%;
}

.visual-divider-with-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.visual-divider-line-only {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.visual-divider-label {
    background: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    white-space: nowrap;
    z-index: 1;
}

.visual-divider-line {
    flex: 1;
    height: 1px;
    background: #dee2e6;
    position: relative;
}

.visual-divider-remove {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.visual-divider:hover .visual-divider-remove {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visual-divider-with-label {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .visual-divider-line-only {
        gap: 0.5rem;
    }

    .visual-divider-label {
        order: -1;
    }
}

/* For respond page - simpler styling without edit controls */
.respond-page .visual-divider-remove {
    display: none;
}

.respond-page .visual-divider {
    margin: 0 !important;
    padding: 0 1rem;
}

.respond-page .visual-divider-line {
    background: transparent;
    opacity: 0;
    height: 1px;
}

/* Ensure dividers work well in list-group context */
.list-group .visual-divider {
    border: none;
    background: none;
    padding: 1rem 0;
}

/* Responsive button wrapper for mobile stacking */
@media (max-width: 768px) {
    .button-wrapper-responsive {
        flex-direction: column !important;
        gap: 0.75rem;
        align-items: stretch !important;
    }
    
    .button-wrapper-responsive .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}