/* Context Menu Buttons - Standardized Design */
.btn-group-vertical.btn-group-sm {
    width: 100%;
}

.btn-group-vertical.btn-group-sm .btn {
    border-radius: 0.25rem !important;
    margin-bottom: 0.125rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-group-vertical.btn-group-sm .btn:last-child {
    margin-bottom: 0;
}

/* Page Action Buttons - Horizontal Groups */
.btn-group .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-group .btn i {
    font-size: 0.875rem;
    width: 1rem;
    text-align: center;
}

/* Tooltip improvements */
.btn[title] {
    position: relative;
}

/* Ensure tooltips are visible */
.tooltip {
    font-size: 0.75rem;
}

/* Button hover effects */
.btn-group-vertical .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Icon sizing consistency */
.btn-group-vertical .btn i {
    font-size: 0.875rem;
    width: 1rem;
    text-align: center;
}

/* Color consistency for different button types */
.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group-vertical.btn-group-sm .btn {
        padding: 0.5rem;
        font-size: 1rem;
        min-height: 2.5rem;
    }
    
    .btn-group-vertical .btn i {
        font-size: 1rem;
    }
}

/* Card footer adjustments */
.card-footer .btn-group-vertical {
    margin-top: 0.5rem;
}

/* Table cell adjustments */
td .btn-group-vertical {
    min-width: 2.5rem;
}
