@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

/* ==========================================================================
   Neobrutalism Design System - Cek Pajak Kendaraan
   ========================================================================== */

:root {
    --bg-brutal: #f0f0f0;
    --border-color: #000000;
    --shadow-color: #000000;
    --color-lime: #b8ff01;
    --color-blue: #2563eb;
    --color-coral: #ff6b6b;
    --color-yellow: #facc15;
    --color-red: #ff003c;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-brutal);
    color: #000000;
    background-image: radial-gradient(#000000 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.font-sans { font-family: 'Inter', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-mono-print { font-family: 'Courier Prime', monospace; }

/* Neobrutalism Core Classes */
.neo-border {
    border: 3px solid var(--border-color);
}

.neo-box {
    background: #ffffff;
    border: 3px solid var(--border-color);
    box-shadow: 5px 5px 0px var(--shadow-color);
    transition: all 0.1s ease-in-out;
}

.neo-box:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px var(--shadow-color);
}

.neo-input {
    background: #ffffff;
    border: 3px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--shadow-color);
    font-weight: 700;
    transition: all 0.1s;
    outline: none;
}

.neo-input:focus {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--shadow-color);
    background-color: #fffce1;
}

.neo-input-group {
    background: #ffffff;
    border: 3px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--shadow-color);
    transition: all 0.1s;
}

.neo-input-group:focus-within {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--shadow-color);
    background-color: #fffce1;
}

.neo-input-group.has-error {
    border-color: #ff003c !important;
    background-color: #fef2f2 !important;
}

.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-lime);
    border: 3px solid var(--border-color);
    box-shadow: 5px 5px 0px var(--shadow-color);
    color: #000000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.1s ease;
}

.neo-btn:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--shadow-color);
    background-color: #ccff33;
}

.neo-btn:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--shadow-color);
}

.neo-btn:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
    box-shadow: 2px 2px 0px var(--shadow-color);
    opacity: 0.7;
}

.neo-btn-secondary {
    background-color: #ffffff;
}
.neo-btn-secondary:hover:not(:disabled) {
    background-color: #f3f4f6;
}

.neo-tag {
    display: inline-block;
    border: 2px solid #000000;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px #000000;
}

/* Dedicated High-Contrast Developer Button */
.dev-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #b8ff01 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 3px 3px 0px #000000;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.dev-header-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.dev-header-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

.neo-table {
    width: 100%;
    border-collapse: collapse;
    border: 3px solid #000000;
}

.neo-table th, .neo-table td {
    border: 2px solid #000000;
    padding: 8px 12px;
}

.neo-table th {
    background-color: #000000;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 900;
}

/* Loader */
.loader {
    border: 4px solid #000000;
    border-top: 4px solid var(--color-lime);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.25s ease forwards;
}

/* Toast */
.neo-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #000000;
    color: var(--color-lime);
    border: 2px solid #ffffff;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Utilities (Tailwind-like semantic helpers) */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }

.-ml-\[3px\] { margin-left: -3px; }
.-mt-\[3px\] { margin-top: -3px; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }

.text-\[8px\] { font-size: 8px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }
.text-\[140px\] { font-size: 140px; }

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-\[\#b8ff01\] { color: #b8ff01; }
.text-\[\#ff6b6b\] { color: #ff6b6b; }
.text-\[\#b00020\] { color: #b00020; }
.text-red-600 { color: #dc2626; }
.text-blue-300 { color: #93c5fd; }
.text-green-400 { color: #4ade80; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/65 { color: rgba(255, 255, 255, 0.65); }

.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-transparent { background-color: transparent; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-yellow-200 { background-color: #fef08a; }
.bg-\[\#b8ff01\] { background-color: #b8ff01; }
.bg-\[\#2563eb\] { background-color: #2563eb; }
.bg-\[\#ff6b6b\] { background-color: #ff6b6b; }
.bg-\[\#facc15\] { background-color: #facc15; }
.bg-\[\#ff003c\] { background-color: #ff003c; }
.bg-\[\#e0f2fe\] { background-color: #e0f2fe; }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-\[3px\] { border-width: 3px; }
.border-\[4px\] { border-width: 4px; }
.border-\[6px\] { border-width: 6px; }
.border-b-2 { border-bottom-width: 2px; }
.border-b-4 { border-bottom-width: 4px; }
.border-b-\[6px\] { border-bottom-width: 6px; }
.border-t { border-top-width: 1px; }
.border-t-2 { border-top-width: 2px; }
.border-t-4 { border-top-width: 4px; }
.border-t-\[4px\] { border-top-width: 4px; }
.border-t-\[6px\] { border-top-width: 6px; }
.border-l-2 { border-left-width: 2px; }
.border-l-\[3px\] { border-left-width: 3px; }
.border-r-2 { border-right-width: 2px; }
.border-r-\[3px\] { border-right-width: 3px; }
.border-dashed { border-style: dashed; }

.border-black { border-color: #000000; }
.border-white { border-color: #ffffff; }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-white\/70 { border-color: rgba(255, 255, 255, 0.7); }
.border-\[\#ff003c\] { border-color: #ff003c; }
.border-t-\[\#b8ff01\] { border-top-color: #b8ff01; }
.border-t-white { border-top-color: #ffffff; }

.shadow-\[3px_3px_0px_black\] { box-shadow: 3px 3px 0px #000000; }
.shadow-\[4px_4px_0px_black\] { box-shadow: 4px 4px 0px #000000; }
.shadow-\[4px_4px_0px_\#000\] { box-shadow: 4px 4px 0px #000000; }
.shadow-\[4px_4px_0px_\#ccc\] { box-shadow: 4px 4px 0px #cccccc; }
.shadow-\[4px_4px_0px_white\] { box-shadow: 4px 4px 0px #ffffff; }
.shadow-\[8px_8px_0px_black\] { box-shadow: 8px 8px 0px #000000; }
.shadow-\[8px_8px_0px_\#000\] { box-shadow: 8px 8px 0px #000000; }
.shadow-\[8px_8px_0px_\#b8ff01\] { box-shadow: 8px 8px 0px #b8ff01; }

.transform { transform: translate(0, 0) rotate(0) scale(1); }
.rotate-\[-2deg\] { transform: rotate(-2deg); }
.rotate-\[2deg\] { transform: rotate(2deg); }
.-rotate-3 { transform: rotate(-3deg); }
.-rotate-45 { transform: rotate(-45deg); }
.rotate-6 { transform: rotate(6deg); }

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.w-\[84px\] { width: 84px; }
.h-\[84px\] { height: 84px; }
.w-\[800px\] { width: 800px; }
.min-h-\[800px\] { min-height: 800px; }
.min-h-\[1120px\] { min-height: 1120px; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-w-\[10ch\] { min-width: 10ch; }
.min-w-\[12ch\] { min-width: 12ch; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-\[0\.03\] { opacity: 0.03; }
.opacity-\[0\.04\] { opacity: 0.04; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-scroll { overflow-y: scroll; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.decoration-none { text-decoration: none; }
.border-none { border: none !important; }
.transition-all { transition: all 0.15s ease-in-out; }
.hover\:underline:hover { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.decoration-2 { text-decoration-thickness: 2px; }

/* Responsive adjustments */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:text-right { text-align: right; }
    .sm\:border-r-2 { border-right-width: 2px; }
    .sm\:border-l-2 { border-left-width: 2px; }
    .sm\:border-t-0 { border-top-width: 0px; }
    .sm\:mb-0 { margin-bottom: 0; }
}

@media (min-width: 768px) {
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .md\:pb-10 { padding-bottom: 2.5rem; }
    .md\:pt-12 { padding-top: 3rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:w-12 { width: 3rem; }
    .md\:h-12 { height: 3rem; }
    .md\:w-16 { width: 4rem; }
    .md\:h-16 { height: 4rem; }
    .md\:w-max { width: max-content; }
    .md\:max-w-md { max-width: 28rem; }
}
