@import 'tailwindcss';
@import '@fortawesome/fontawesome-free/css/all.min.css';
@import '@fontsource/manrope/400.css';
@import '@fontsource/manrope/500.css';
@import '@fontsource/manrope/600.css';
@import '@fontsource/manrope/700.css';

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

/*
|--------------------------------------------------------------------------
| Niayarsa Admin Panel Design Tokens
|--------------------------------------------------------------------------
| A calmer, data-dense variant of the storefront palette for the
| dashboard: same brand hues, tuned for readability over long sessions.
*/
@theme {
    --font-sans: 'Manrope', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';

    --color-ink: #16130f;
    --color-charcoal: #262220;
    --color-surface: #f7f5f2;
    --color-ivory: #faf7f2;
    --color-cream: #f1e9dd;
    --color-champagne: #c9a661;
    --color-champagne-light: #e4c98e;
    --color-maroon: #6e1423;
    --color-success: #1f8a54;
    --color-warning: #b9740c;
    --color-danger: #c0362c;

    --shadow-soft: 0 2px 10px -2px rgb(22 19 15 / 0.06);
    --shadow-card: 0 10px 30px -10px rgb(22 19 15 / 0.12);
    --shadow-luxury: 0 20px 50px -15px rgb(22 19 15 / 0.18);

    --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);

    --animate-count-in: count-in 0.5s var(--ease-luxury) both;
    --animate-fade-up: fade-up 0.5s var(--ease-luxury) both;
    --animate-float: float 6s ease-in-out infinite;
    --animate-float-slow: float 9s ease-in-out infinite;
}

@keyframes count-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes ripple {
    to { transform: scale(3.2); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

@layer components {
    .btn {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transition: transform 0.3s var(--ease-luxury), box-shadow 0.3s var(--ease-luxury), background-position 0.5s ease;
    }
    .btn:active { transform: scale(0.97); }

    .btn-ripple {
        position: absolute;
        border-radius: 50%;
        transform: scale(0);
        background: rgb(255 255 255 / 0.4);
        pointer-events: none;
        animation: ripple 0.6s ease-out forwards;
    }

    .skeleton {
        position: relative;
        overflow: hidden;
        background-color: var(--color-surface);
    }
    .skeleton::after {
        content: '';
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.6), transparent);
        animation: shimmer 1.6s infinite;
    }

    /* Shared table chrome for every admin index page — one place to
       tune row hover/spacing/radius instead of repeating utility
       classes identically across a dozen Blade files. */
    .data-table {
        width: 100%;
        text-align: left;
        font-size: 0.875rem;
        border-collapse: separate;
        border-spacing: 0;
    }
    .data-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #fff;
        padding: 0.85rem 1.25rem;
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgb(22 19 15 / 0.4);
        border-bottom: 1px solid rgb(22 19 15 / 0.06);
        white-space: nowrap;
    }
    .data-table tbody td {
        padding: 0.95rem 1.25rem;
        border-bottom: 1px solid rgb(22 19 15 / 0.05);
        vertical-align: middle;
    }
    .data-table tbody tr {
        transition: background-color 0.2s ease;
    }
    .data-table tbody tr:hover {
        background-color: rgb(201 166 97 / 0.05);
    }
    .data-table tbody tr:last-child td {
        border-bottom: none;
    }
}

body {
    background-color: var(--color-surface);
    color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
