/* ============================================================
 * Frank Internet / Akij Attendance Management — App-specific CSS
 * Tailwind handles most styling via utility classes.
 * This file is for small app-specific overrides.
 * ============================================================ */

/* Smooth focus rings on interactive elements */
input:focus, button:focus, select:focus, textarea:focus {
    outline: none;
}

/* Word-break long audit log content (e.g., long URLs in details) */
table.audit-log td {
    word-break: break-all;
}

/* Subtle hover shadow on white cards */
.bg-white.shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Hide native form validation tooltip — we use server-side error display */
input:invalid {
    box-shadow: none;
}

/* Style scrollbar (Firefox + Webkit) for audit log table */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
 * MISSING TAILWIND UTILITIES (added 2026-09-25 — UI Polish)
 *
 * tailwind.min.css is a custom minimal build (29KB) that's missing:
 *   - sky color palette (entire)
 *   - bg-indigo-*, border-indigo-*, focus:*-indigo-* (only text-indigo-* exists)
 *   - grid-cols-1 through grid-cols-5
 *   - sm:, md:, lg: responsive prefixes
 *
 * Without these, all bg-sky-600 / bg-indigo-600 buttons render transparent
 * (no background applied), and header menu names with `hidden md:inline`
 * stay hidden forever. Adding these utilities to app.css fixes ALL pages
 * at once without touching any template.
 * ============================================================ */

/* ---------- SKY color palette (Tailwind defaults) ---------- */
.bg-sky-50 { background-color: #f0f9ff; }
.bg-sky-100 { background-color: #e0f2fe; }
.bg-sky-200 { background-color: #bae6fd; }
.bg-sky-500 { background-color: #0ea5e9; }
.bg-sky-600 { background-color: #0284c7; }
.bg-sky-700 { background-color: #0369a1; }
.bg-sky-800 { background-color: #075985; }
.bg-sky-900 { background-color: #0c4a6e; }

.hover\:bg-sky-50:hover { background-color: #f0f9ff; }
.hover\:bg-sky-100:hover { background-color: #e0f2fe; }
.hover\:bg-sky-700:hover { background-color: #0369a1; }

.text-sky-100 { color: #e0f2fe; }
.text-sky-200 { color: #bae6fd; }
.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }
.text-sky-500 { color: #0ea5e9; }
.text-sky-600 { color: #0284c7; }
.text-sky-700 { color: #0369a1; }
.text-sky-800 { color: #075985; }
.text-sky-900 { color: #0c4a6e; }

.hover\:text-sky-700:hover { color: #0369a1; }
.hover\:text-sky-800:hover { color: #075985; }
.hover\:text-sky-900:hover { color: #0c4a6e; }

.border-sky-200 { border-color: #bae6fd; }
.border-sky-300 { border-color: #7dd3fc; }
.border-sky-500 { border-color: #0ea5e9; }
.border-sky-600 { border-color: #0284c7; }

.focus\:border-sky-500:focus { border-color: #0ea5e9; }
.focus\:ring-sky-500:focus { --tw-ring-color: #0ea5e9; box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5); }

/* ---------- INDIGO color palette (full — build only has text-indigo-500/600/700) ---------- */
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-200 { background-color: #c7d2fe; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-indigo-800 { background-color: #3730a3; }
.bg-indigo-900 { background-color: #312e81; }

.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-indigo-800:hover { background-color: #3730a3; }

.text-indigo-100 { color: #e0e7ff; }
.text-indigo-200 { color: #c7d2fe; }
.text-indigo-500 { color: #6366f1; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-800 { color: #3730a3; }
.text-indigo-900 { color: #312e81; }

.hover\:text-indigo-700:hover { color: #4338ca; }
.hover\:text-indigo-800:hover { color: #3730a3; }
.hover\:text-indigo-900:hover { color: #312e81; }

.border-indigo-200 { border-color: #c7d2fe; }
.border-indigo-500 { border-color: #6366f1; }
.border-indigo-600 { border-color: #4f46e5; }

.focus\:border-indigo-500:focus { border-color: #6366f1; }
.focus\:ring-indigo-500:focus { --tw-ring-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5); }

/* ---------- Grid utilities (missing entirely from build) ---------- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---------- Responsive prefixes (missing entirely from build) ---------- */
/* sm: ≥640px (mobile-large / small tablet) */
@media (min-width: 640px) {
    .sm\:inline { display: inline !important; }
    .sm\:block { display: block !important; }
    .sm\:flex { display: flex !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* md: ≥768px (tablet / small desktop) */
@media (min-width: 768px) {
    .md\:inline { display: inline !important; }
    .md\:block { display: block !important; }
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .md\:gap-4 { gap: 1rem !important; }
    .md\:px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .md\:py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .md\:text-sm { font-size: 0.875rem !important; }
    .md\:text-base { font-size: 1rem !important; }
    .md\:text-lg { font-size: 1.125rem !important; }
    .md\:gap-4 { gap: 1rem !important; }
    .md\:gap-5 { gap: 1.25rem !important; }
    .md\:gap-3 { gap: 0.75rem !important; }
}

/* lg: ≥1024px (desktop) */
@media (min-width: 1024px) {
    .lg\:inline { display: inline !important; }
    .lg\:block { display: block !important; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
}

/* xl: ≥1280px (large desktop) */
@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}