/* Light Mode Action Button Styling - Bordered Boxes */
/* Only applies when NOT in dark mode */
body:not(.dark-mode) table .btn.btn-link,
body:not(.dark-mode) tbody .btn.btn-link,
body:not(.dark-mode) .btn-link.edit-level,
body:not(.dark-mode) .btn-link.delete-level,
body:not(.dark-mode) .btn-link.edit-event,
body:not(.dark-mode) .btn-link.delete-event,
body:not(.dark-mode) .btn-link.edit-user,
body:not(.dark-mode) .btn-link.delete-user,
body:not(.dark-mode) .btn-link.edit-role,
body:not(.dark-mode) .btn-link.delete-role,
body:not(.dark-mode) .btn-link.edit-type,
body:not(.dark-mode) .btn-link.delete-type {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin: 0 0.25rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body:not(.dark-mode) table .btn.btn-link i,
body:not(.dark-mode) tbody .btn.btn-link i {
    font-size: 0.875rem !important;
    line-height: 1 !important;
}

/* Light Mode Hover States */
body:not(.dark-mode) table .btn.btn-link:hover,
body:not(.dark-mode) tbody .btn.btn-link:hover {
    border-color: #64748b !important;
    background-color: #f8fafc !important;
}

body:not(.dark-mode) table .btn.btn-link.text-danger:hover,
body:not(.dark-mode) tbody .btn.btn-link.text-danger:hover {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* Ensure proper alignment in table cells */
body:not(.dark-mode) table td.text-center,
body:not(.dark-mode) tbody td.text-center {
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* Prevent text wrapping in action columns */
body:not(.dark-mode) table td.text-center:has(.btn.btn-link),
body:not(.dark-mode) tbody td.text-center:has(.btn.btn-link) {
    white-space: nowrap !important;
    padding: 0.75rem 0.5rem !important;
}
