/* Standardized Action Buttons for Admin Lists */

.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* View Button */
.action-btn-view {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.action-btn-view:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}

/* Edit Button */
.action-btn-edit {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.action-btn-edit:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    color: white;
}

/* Print Button */
.action-btn-print {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.action-btn-print:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a8a);
    color: white;
}

/* Return Button */
.action-btn-return {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.action-btn-return:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: #212529;
}

/* Delete Button */
.action-btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.action-btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    color: white;
}

/* Icon styling */
.action-btn i {
    font-size: 12px;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Tooltip support */
.action-btn[title] {
    position: relative;
}

/* Focus states for accessibility */
.action-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Disabled state */
.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-btn:disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
