/* Tailwind-гүй орчинд (manifest байхгүй) login/dashboard харагдахын тулд */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background: #fafafa;
    color: #18181b;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #09090b;
        color: #fafafa;
    }
}

.min-h-screen {
    min-height: 100vh;
}
.mx-auto {
    margin-inline: auto;
}
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.w-full {
    width: 100%;
}
.max-w-sm {
    max-width: 24rem;
}
.max-w-3xl {
    max-width: 48rem;
}
.max-w-6xl {
    max-width: 72rem;
}
.overflow-x-auto {
    overflow-x: auto;
}
.block {
    display: block;
}
.rounded-xl {
    border-radius: 0.75rem;
}
.rounded-lg {
    border-radius: 0.5rem;
}
.border {
    border-width: 1px;
    border-style: solid;
}
.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.border-zinc-200 {
    border-color: #e4e4e7;
}
.border-zinc-300 {
    border-color: #d4d4d8;
}
.bg-white {
    background: #fff;
}
.bg-zinc-50 {
    background: #fafafa;
}
.bg-zinc-900 {
    background: #18181b;
}
.p-8 {
    padding: 2rem;
}
.px-3 {
    padding-inline: 0.75rem;
}
.px-4 {
    padding-inline: 1rem;
}
.py-2 {
    padding-block: 0.5rem;
}
.py-2\.5 {
    padding-block: 0.625rem;
}
.py-10 {
    padding-block: 2.5rem;
}
.py-12 {
    padding-block: 3rem;
}
.pb-6 {
    padding-bottom: 1.5rem;
}
.shadow-sm {
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.text-center {
    text-align: center;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.font-sans {
    font-family: inherit;
}
.font-medium {
    font-weight: 500;
}
.font-semibold {
    font-weight: 600;
}
.tracking-tight {
    letter-spacing: -0.025em;
}
.text-zinc-500 {
    color: #71717a;
}
.text-zinc-600 {
    color: #52525b;
}
.text-zinc-700 {
    color: #3f3f46;
}
.text-zinc-900 {
    color: #18181b;
}
.text-white {
    color: #fff;
}
.text-red-600 {
    color: #dc2626;
}
.mt-1 {
    margin-top: 0.25rem;
}
.mt-8 {
    margin-top: 2rem;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-4 {
    gap: 1rem;
}
.space-y-5 > * + * {
    margin-top: 1.25rem;
}
.size-4 {
    width: 1rem;
    height: 1rem;
}
.rounded {
    border-radius: 0.25rem;
}
.transition {
    transition-property: color, background-color, border-color;
    transition-duration: 150ms;
}
button:hover {
    cursor: pointer;
}
.bg-zinc-900:hover {
    filter: brightness(1.1);
}
.border-zinc-300:hover {
    background: #fafafa;
}

input[type='email'],
input[type='password'] {
    width: 100%;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #d4d4d8;
    background: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
input:focus {
    outline: none;
    border-color: #71717a;
    box-shadow: 0 0 0 1px #71717a;
}

@media (prefers-color-scheme: dark) {
    .dark\:border-zinc-800 {
        border-color: #27272a;
    }
    .dark\:border-zinc-600 {
        border-color: #52525b;
    }
    .dark\:bg-zinc-900 {
        background: #18181b;
    }
    .dark\:bg-zinc-950 {
        background: #09090b;
    }
    .dark\:text-zinc-100 {
        color: #fafafa;
    }
    .dark\:text-zinc-200 {
        color: #e4e4e7;
    }
    .dark\:text-zinc-300 {
        color: #d4d4d8;
    }
    .dark\:text-zinc-400 {
        color: #a1a1aa;
    }
    .dark\:text-red-400 {
        color: #f87171;
    }
    .dark\:hover\:bg-zinc-800:hover {
        background: #27272a;
    }
    .dark\:bg-zinc-100 {
        background: #f4f4f5;
    }
    .dark\:text-zinc-900 {
        color: #18181b;
    }
    .dark\:hover\:bg-white:hover {
        background: #fff;
    }
    input[type='email'],
    input[type='password'] {
        border-color: #52525b;
        background: #09090b;
        color: #fafafa;
    }
}

/* Dashboard: хэрэглэгчдийн хүснэгт */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e4e4e7;
    overflow: hidden;
}
.dash-table thead {
    background: #f4f4f5;
}
.dash-table th,
.dash-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e4e4e7;
}
.dash-table tbody tr:last-child td {
    border-bottom: none;
}
.dash-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #52525b;
}

@media (prefers-color-scheme: dark) {
    .dash-table {
        background: #18181b;
        border-color: #27272a;
    }
    .dash-table thead {
        background: #27272a;
    }
    .dash-table th,
    .dash-table td {
        border-bottom-color: #27272a;
    }
    .dash-table th {
        color: #a1a1aa;
    }
}

/* Энгийн хуудаслалт (Vite fallback) */
.pagination-simple-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
}
.pagination-simple-inner a {
    color: #18181b;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pagination-simple-inner a:hover {
    color: #52525b;
}
.pagination-simple-meta {
    color: #71717a;
}
.pagination-simple-disabled {
    color: #a1a1aa;
    cursor: not-allowed;
}

@media (prefers-color-scheme: dark) {
    .pagination-simple-inner a {
        color: #e4e4e7;
    }
    .pagination-simple-inner a:hover {
        color: #fafafa;
    }
    .pagination-simple-meta {
        color: #a1a1aa;
    }
    .pagination-simple-disabled {
        color: #52525b;
    }
}
