/* Custom styles to complement Tailwind CSS */

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, opacity, transform, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Table striping helper */
.table-striped tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Print styles for payslips */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    main { margin-left: 0 !important; }
    aside, header { display: none !important; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Form focus ring override for consistency */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* Flash message slide-in animation */
#flash-message {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sidebar active glow */
aside nav a.bg-blue-700,
aside nav a.bg-emerald-700 {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* Calendar day hover */
.calendar-day:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Stat card number */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
