/* ===================================================
   Admin Panel - Unified Action Buttons
   =================================================== */

/* Container for action button group */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: stretch;
}

/* Stacked (vertical) layout for action buttons */
.admin-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
}

/* Base style for all action buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-action i {
    font-size: 0.9rem;
}

/* Edit Button - Blue */
.btn-action-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-action-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Delete Button - Red */
.btn-action-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-action-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* View Button - Teal/Cyan */
.btn-action-view {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
}

.btn-action-view:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

/* Active/Focus states */
.btn-action:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-action:active {
    transform: translateY(0);
}

/* For table cell alignment */
td .admin-actions,
td .admin-actions-stacked {
    min-width: 90px;
}