/*
 * Nyje Corp custom styles.
 * High-specificity selectors so Flowbite's button preflight reset
 * (`button { background-color: transparent }`) cannot win the cascade.
 */

button.btn-primary,
a.btn-primary,
.btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
    transition: background-color 150ms ease;
}

button.btn-primary:hover,
a.btn-primary:hover,
.btn-primary:hover {
    background-color: #6366f1;
    color: #ffffff;
}

button.btn-primary:focus-visible,
a.btn-primary:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

button.btn-secondary,
a.btn-secondary,
.btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: background-color 150ms ease;
}

button.btn-secondary:hover,
a.btn-secondary:hover,
.btn-secondary:hover {
    background-color: #f9fafb;
    color: #374151;
}

/* Destructive (delete) — rose-600. */
button.btn-danger,
a.btn-danger,
.btn-danger {
    background-color: #e11d48;
    color: #ffffff;
    transition: background-color 150ms ease;
}

button.btn-danger:hover,
a.btn-danger:hover,
.btn-danger:hover {
    background-color: #f43f5e;
    color: #ffffff;
}

button.btn-danger:focus-visible,
a.btn-danger:focus-visible,
.btn-danger:focus-visible {
    outline: 2px solid #e11d48;
    outline-offset: 2px;
}

/*
 * Compact action chips used inside table rows (Edit / Delete / View / PDF).
 * They need to read as clearly interactive — plain coloured text doesn't.
 * Small padded box, subtle ring, hover background.
 */
a.action-link,
button.action-link,
.action-link {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    transition: background-color 120ms ease, color 120ms ease;
    text-decoration: none;
}

a.action-edit,
.action-edit {
    color: #4338ca;
    background-color: #eef2ff;
    box-shadow: inset 0 0 0 1px #c7d2fe;
}
a.action-edit:hover,
.action-edit:hover {
    background-color: #e0e7ff;
    color: #3730a3;
}

a.action-view,
.action-view {
    color: #1f2937;
    background-color: #f3f4f6;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}
a.action-view:hover,
.action-view:hover {
    background-color: #e5e7eb;
    color: #111827;
}

a.action-delete,
.action-delete {
    color: #be123c;
    background-color: #fff1f2;
    box-shadow: inset 0 0 0 1px #fecdd3;
}
a.action-delete:hover,
.action-delete:hover {
    background-color: #ffe4e6;
    color: #9f1239;
}

a.action-pdf,
.action-pdf {
    color: #15803d;
    background-color: #f0fdf4;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}
a.action-pdf:hover,
.action-pdf:hover {
    background-color: #dcfce7;
    color: #166534;
}
