/* Base Tailwind-style Reset */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

html {
    line-height: 1.3;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, serif;
}

body {
    margin: 0;
    line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
    margin: 4px !important;
    padding: 4px !important;
}

/* V+A Command Menu (Command Palette Style) */
.command-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    animation: fadeIn 0.15s ease-out;
}

.command-menu-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.command-menu-dialog {
    width: 90%;
    max-width: 640px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.15s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.command-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.command-search-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    flex-shrink: 0;
}

.command-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #111827;
    background: transparent;
}

.command-input::placeholder {
    color: #9ca3af;
}

.command-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s;
}

.command-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.command-close svg {
    width: 18px;
    height: 18px;
}

.command-menu-content {
    overflow-y: auto;
    padding: 8px;
    max-height: calc(80vh - 120px);
}

.command-menu-content::-webkit-scrollbar {
    width: 6px;
}

.command-menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.command-menu-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.command-menu-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.command-group {
    margin-bottom: 4px;
}

.command-group:last-child {
    margin-bottom: 0;
}

.command-group-heading {
    padding: 6px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.command-group-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.command-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.command-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .command-group-items {
        grid-template-columns: 1fr;
    }
}

.command-menu-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.command-menu-footer kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    color: #374151;
    line-height: 1;
}

@media print {
    .command-menu-overlay {
        display: none !important;
    }
}

.menu-hint kbd {
    display: inline-block;
    padding: 3px 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #374151;
    margin: 0 2px;
}

/* Utility Classes */
.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.scroll-my-12 {
    scroll-margin-top: 3rem;
    scroll-margin-bottom: 3rem;
}

.overflow-auto {
    overflow: auto;
}

.p-4 {
    padding: 1rem;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.space-y-8>*+* {
    margin-top: 0.25rem;
}

.bg-white {
    background-color: #ffffff;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.hidden {
    display: none;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-x-1 {
    column-gap: 0.25rem;
}

.gap-x-1\.5 {
    column-gap: 0.375rem;
}

.gap-x-2 {
    column-gap: 0.5rem;
}

.gap-y-3 {
    row-gap: 0.05rem;
}

.space-y-1\.5>*+* {
    margin-top: 0.05rem;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.shrink-0 {
    flex-shrink: 0;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded {
    border-radius: 0.25rem;
}

.border {
    border-width: 1px;
}

.border-input {
    border-color: hsl(214.3 31.8% 91.4%);
}

.border-t {
    border-top-width: 1px;
}

.border-t-muted {
    border-top-color: hsl(210 40% 96.1%);
}

.border-transparent {
    border-color: transparent;
}

.bg-background {
    background-color: hsl(0 0% 100%);
}

.bg-accent {
    background-color: hsl(210 40% 96.1%);
}

.bg-card {
    background-color: hsl(0 0% 100%);
}

.bg-primary\/80 {
    background-color: rgba(9, 9, 11, 0.8);
}

.bg-muted {
    background-color: hsl(210 40% 96.1%);
}

.px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.p-1 {
    padding: 0.25rem;
}

.pt-1 {
    padding-top: 0.125rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.mt-1 {
    margin-top: 0.125rem;
}

.mt-2 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.size-3 {
    width: 0.75rem;
    height: 0.75rem;
}

.size-4 {
    width: 1rem;
    height: 1rem;
}

.size-8 {
    width: 2rem;
    height: 2rem;
}

.size-28 {
    width: 7rem;
    height: 7rem;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.min-h-0 {
    min-height: 0px;
}

.select-none {
    user-select: none;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.text-nowrap {
    text-wrap: nowrap;
}

.text-pretty {
    text-wrap: pretty;
}

.align-baseline {
    vertical-align: baseline;
}

.leading-none {
    line-height: 1;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.35rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.2rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.14rem;
}

.text-xs {
    font-size: 0.825rem;
    line-height: 1.07rem;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-\[12px\] {
    font-size: 12px;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-mono {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.text-muted-foreground {
    color: hsl(215.4 16.3% 46.9%);
}

.text-card-foreground {
    color: hsl(222.2 84% 4.9%);
}

.text-primary-foreground {
    color: hsl(210 40% 98%);
}

.text-blue-600 {
    color: rgb(0, 0, 0);
}

.text-gray-500 {
    color: rgb(107, 114, 128);
}

.opacity-100 {
    opacity: 1;
}

.ring-offset-background {
    --tw-ring-offset-color: hsl(0 0% 100%);
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

.hover\:bg-accent:hover {
    background-color: hsl(210 40% 96.1%);
}

.hover\:text-accent-foreground:hover {
    color: hsl(222.2 47.4% 11.2%);
}

.hover\:bg-primary\/60:hover {
    background-color: rgba(9, 9, 11, 0.6);
}

.focus-visible\:outline-none:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus-visible\:ring-2:focus-visible {
    box-shadow: 0 0 0 2px hsl(222.2 84% 4.9%);
}

.focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: hsl(222.2 84% 4.9%);
}

.focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px;
}

.focus\:ring-ring:focus {
    --tw-ring-color: hsl(222.2 84% 4.9%);
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

.disabled\:pointer-events-none:disabled {
    pointer-events: none;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.pointer-events-none {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.list-disc {
    list-style-type: disc;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.text-center {
    text-align: center;
}

/* Responsive Utilities */
@media (min-width: 640px) {
    .sm\:hidden {
        display: none;
    }

    .sm\:flex {
        display: flex;
    }

    .sm\:\!mt-0 {
        margin-top: 0 !important;
    }
}

@media (min-width: 768px) {
    .md\:p-16 {
        padding: 4rem;
    }
}

@media (min-width: 1280px) {
    .xl\:block {
        display: block;
    }
}

/* Print Styles */
@media print {
    .va-menu {
        display: none;
    }

    .print\:hidden {
        display: none !important;
    }

    .print\:flex {
        display: flex;
    }

    .print\:visible {
        visibility: visible;
    }

    .print\:p-12 {
        padding: 3rem;
    }

    .print\:space-y-4>*+* {
        margin-top: 1rem;
    }

    .print\:break-inside-avoid {
        page-break-inside: avoid;
    }

    .print\:text-\[8px\] {
        font-size: 8px;
    }

    .print\:text-\[10px\] {
        font-size: 10px;
    }

    .print\:text-\[12px\] {
        font-size: 12px;
    }

    .print\:proportional-nums {
        font-variant-numeric: proportional-nums;
    }

    body {
        background: white;
    }

    a {
        color: inherit;
    }

    @page {
        margin: 0.5in;
        size: A4;
    }
}

/* Additional Component Styles */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.space-y-1>*+* {
    margin-top: 0.125rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-3 {
    gap: 0.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.-mx-3 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.border-muted {
    border-color: hsl(214.3 31.8% 91.4%);
}

.bg-secondary {
    background-color: hsl(210 40% 96.1%);
}

.text-secondary-foreground {
    color: hsl(222.2 47.4% 11.2%);
}

.hover\:bg-secondary\/60:hover {
    background-color: rgba(240, 243, 248, 0.6);
}

.bg-green-500 {
    background-color: rgb(34, 197, 94);
}

.print\:leading-tight {
    line-height: 1.25;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    .print\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .print\:gap-2 {
        gap: 0.5rem;
    }
}

/* Custom scrollbar for menu */
.va-menu::-webkit-scrollbar {
    width: 6px;
}

.va-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.va-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.va-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Blue link color removed - all black */
a {
    color: inherit;
}