/* staff_components.css — reusable staff UI: action buttons + unified modal */

/* ─── Action Buttons ─── */

.btn-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
}

/* Size variants */
.btn-act-tap   { padding: 0.5rem; }
.btn-act-small { padding: 0.375rem; }

/* Edit — blue */
.btn-act-edit         { color: #1d4ed8; background: #dbeafe; }
.btn-act-edit:hover   { background: #bfdbfe; }
.dark .btn-act-edit         { background: #1e3a8a; color: #93c5fd; }
.dark .btn-act-edit:hover   { background: #1e40af; }

/* Delete — red */
.btn-act-delete         { color: #b91c1c; background: #fee2e2; }
.btn-act-delete:hover   { background: #fecaca; }
.dark .btn-act-delete         { background: #7f1d1d; color: #fca5a5; }
.dark .btn-act-delete:hover   { background: #991b1b; }

/* ─── Unified Staff Modal ─── */

.staff-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.staff-modal-card {
    background: #fff;
    border-radius: 0.875rem;
    padding: 1.25rem;
    max-width: 28rem;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.dark .staff-modal-card {
    background: #1f2937;
}

.staff-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dark .staff-modal-title {
    color: #fff;
}

.staff-modal-msg {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.dark .staff-modal-msg {
    color: #9ca3af;
}

.staff-modal-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #111827;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.staff-modal-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dark .staff-modal-input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.staff-modal-actions {
    display: flex;
    gap: 0.625rem;
}

.staff-modal-btn {
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.staff-modal-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.staff-modal-btn-cancel:hover {
    background: #d1d5db;
}

.dark .staff-modal-btn-cancel {
    background: #374151;
    color: #d1d5db;
}

.dark .staff-modal-btn-cancel:hover {
    background: #4b5563;
}

.staff-modal-btn-ok {
    background: #dc2626;
    color: #fff;
}

.staff-modal-btn-ok:hover {
    background: #b91c1c;
}

.staff-modal-btn-primary {
    background: #2563eb;
    color: #fff;
}

.staff-modal-btn-primary:hover {
    background: #1d4ed8;
}
