@import 'tailwindcss';

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

/* Instrument Sans — self-hosted (see resources/fonts/instrument-sans/).
   Vendored so the production build never has to reach fonts.bunny.net. */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-sans/instrument-sans-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-sans/instrument-sans-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/instrument-sans/instrument-sans-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/instrument-sans/instrument-sans-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/instrument-sans/instrument-sans-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/instrument-sans/instrument-sans-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Form controls. Tailwind 4 preflight strips borders and there is no
   @tailwindcss/forms plugin, so `border-gray-300` alone renders nothing.
   Give every control a visible default; utilities still override (base layer). */
@layer base {
    input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'], [type='hidden'], [type='submit'], [type='button'], [type='reset'], [type='image']),
    textarea,
    select {
        border: 1px solid var(--color-gray-300);
        background-color: #fff;
        padding: 0.5rem 0.75rem;
        line-height: 1.25rem;
        color: var(--color-gray-900);
    }
    textarea { min-height: 5rem; }
    select { padding-right: 2rem; }
    input::placeholder, textarea::placeholder { color: var(--color-gray-400); }
    input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'], [type='hidden'], [type='submit'], [type='button']):focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--color-indigo-500);
        box-shadow: 0 0 0 3px rgb(99 102 241 / 0.2);
    }
    input[type='checkbox'], input[type='radio'] {
        width: 1rem; height: 1rem; flex-shrink: 0;
        border: 1px solid var(--color-gray-300);
        accent-color: var(--color-indigo-600);
    }
    input:disabled, textarea:disabled, select:disabled {
        background-color: var(--color-gray-50);
        color: var(--color-gray-500);
        cursor: not-allowed;
    }
}

/* Guided tour (resources/js/tour.js, <x-tour>). */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour[hidden] { display: none; }
.tour-dim { position: fixed; background: rgb(17 24 39 / 0.55); }
.tour-ring {
    position: fixed; border-radius: 0.5rem;
    box-shadow: 0 0 0 3px var(--color-indigo-500), 0 0 0 7px rgb(99 102 241 / 0.25);
    transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s;
}
.tour-ring-interactive { pointer-events: none; }
.tour-card {
    position: fixed; width: min(22rem, calc(100vw - 2rem));
    border-radius: 0.5rem; background: #fff; padding: 1rem 1.25rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.tour-head { display: flex; align-items: center; justify-content: space-between; }
.tour-counter { font-size: 0.75rem; font-weight: 500; color: var(--color-indigo-600); }
.tour-close { color: var(--color-gray-400); cursor: pointer; }
.tour-close:hover { color: var(--color-gray-600); }
.tour-title { margin-top: 0.25rem; font-size: 0.95rem; font-weight: 600; color: var(--color-gray-900); }
.tour-body { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.5; color: var(--color-gray-600); white-space: pre-line; }
.tour-foot { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tour-dot { width: 0.4rem; height: 0.4rem; border-radius: 9999px; background: var(--color-gray-300); }
.tour-dot-on { background: var(--color-indigo-600); }
.tour-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.tour-btn {
    cursor: pointer; border-radius: 0.375rem; padding: 0.375rem 0.75rem;
    font-size: 0.875rem; font-weight: 500; color: var(--color-gray-600);
}
.tour-btn:hover { background: var(--color-gray-100); }
.tour-btn[hidden] { display: none; }
.tour-btn-primary { background: var(--color-indigo-600); font-weight: 600; color: #fff; }
.tour-btn-primary:hover { background: var(--color-indigo-500); }
