/* Icon Legend Styling */
.legend-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.icon-legend-section {
    margin-top: 2rem;
}

.icon-legend-section .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.icon-legend-section .card-body {
    padding: 1.5rem;
}

.icon-legend-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.icon-legend-section small {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Border top styling */
.icon-legend-section .border-top {
    border-top: 1px solid #e9ecef !important;
}

/* Horizontal layout improvements */
.icon-legend-section .d-flex.flex-wrap {
    align-items: center;
    gap: 1rem;
}

.icon-legend-section .d-flex.flex-wrap > div {
    flex-shrink: 0;
    white-space: nowrap;
}

.icon-legend-section .d-flex.flex-wrap .d-flex {
    align-items: center;
    min-height: 24px;
}

/* Responsive horizontal layout */
@media (max-width: 768px) {
    .icon-legend-section .d-flex.flex-wrap {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .icon-legend-section .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .icon-legend-section .d-flex.flex-wrap > div {
        white-space: normal;
    }
}

/* Status circle styling (like in view-registration.php) */
.status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-circle.bg-success {
    background-color: #198754 !important;
}

.status-circle.bg-warning {
    background-color: #ffc107 !important;
}

.status-circle.bg-danger {
    background-color: #dc3545 !important;
}

.status-circle.bg-info {
    background-color: #0dcaf0 !important;
}

.status-circle.bg-secondary {
    background-color: #6c757d !important;
}

/* Icon buttons styling */
.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-icon:focus {
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.btn-icon-lg {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
}

/* Icon button groups - horizontal alignment with spacing */
.btn-icon-group {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-icon-group .btn-icon {
    margin: 0;
    flex-shrink: 0;
}

/* Table cell alignment for action buttons */
td .btn-icon-group {
    justify-content: center;
    min-width: 120px;
}

/* Responsive button group */
@media (max-width: 768px) {
    .btn-icon-group {
        gap: 4px;
        justify-content: center;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .btn-icon-sm {
        width: 28px;
        height: 28px;
    }
}

/* Responsive legend */
@media (max-width: 768px) {
    .icon-legend-section .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .btn-icon-sm {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .icon-legend-section .card-body {
        padding: 0.75rem;
    }
    
    .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .btn-icon-sm {
        width: 26px;
        height: 26px;
    }
}

/* Specific button styling for different contexts */
.btn-icon.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

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

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

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

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

.btn-icon.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-icon.btn-outline-secondary {
    background: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

.btn-icon.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}
