@import 'tailwindcss';
@plugin '@tailwindcss/forms';

@source '../views';
@source '../js';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

/* BUILDIFY360 design tokens (architecture section O.1) */
@theme {
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;

    --color-navy-50: #eef0f6;
    --color-navy-100: #d9ddea;
    --color-navy-200: #b3bbd5;
    --color-navy-300: #8691b6;
    --color-navy-400: #5b6893;
    --color-navy-500: #3e4a74;
    --color-navy-600: #2e3860;
    --color-navy-700: #242c4f;
    --color-navy-800: #1b2440;
    --color-navy-900: #121a30;
    --color-navy-950: #0b1020;

    --color-brand-50: #eef0fb;
    --color-brand-100: #dde1f6;
    --color-brand-200: #bbc3ed;
    --color-brand-300: #939fe0;
    --color-brand-400: #6574c9;
    --color-brand-500: #4b5bb8;
    --color-brand-600: #3b4ba8;
    --color-brand-700: #313e8c;
    --color-brand-800: #283270;
    --color-brand-900: #1f2757;

    --color-accent-50: #fef3ec;
    --color-accent-100: #fde3d2;
    --color-accent-200: #fac4a2;
    --color-accent-300: #f7a271;
    --color-accent-400: #f4864a;
    --color-accent-500: #f2762e;
    --color-accent-600: #d95f1a;
    --color-accent-700: #b44a14;
    --color-accent-800: #8f3b13;
    --color-accent-900: #743213;

    --color-surface: #f5f6f8;
    --color-line: #e4e7ec;
}

@layer base {
    html {
        font-feature-settings: 'cv11', 'ss01';
    }

    body {
        @apply bg-surface text-slate-800;
    }

    .tabular {
        font-variant-numeric: tabular-nums;
    }
}

/* Sidebar navigation only. Thumb uses the same translucent white as section labels and borders on navy-900. */
.sidebar-scroll {
    --sidebar-scroll-thumb: rgb(255 255 255 / 0.28);
    --sidebar-scroll-thumb-hover: rgb(255 255 255 / 0.45);
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-scroll-thumb) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--sidebar-scroll-thumb);
    border-radius: 999px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--sidebar-scroll-thumb-hover);
}

/* Content skeletons. Neutral only — not brand/accent. Shimmer is CSS-only. */
.skeleton-block {
    display: block;
    max-width: 100%;
    background-color: #e7eaef;
}

.skeleton-shimmer {
    background-image: linear-gradient(90deg, #e7eaef 0%, #f6f7f9 42%, #e7eaef 84%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-block-on-dark {
    background-color: rgb(255 255 255 / 0.08);
}

.skeleton-block-on-dark.skeleton-shimmer {
    background-image: linear-gradient(90deg, rgb(255 255 255 / 0.06) 0%, rgb(255 255 255 / 0.16) 42%, rgb(255 255 255 / 0.06) 84%);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer {
        animation: none;
        background-image: none;
    }
}
