@import 'tailwindcss';
@import '../../vendor/livewire/flux/dist/flux.css';

@import "flowbite/src/themes/default";
@plugin "flowbite/plugin";
@source "../../node_modules/flowbite";

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../vendor/livewire/flux-pro/stubs/**/*.blade.php';
@source '../../vendor/livewire/flux/stubs/**/*.blade.php';

@custom-variant dark (&:where(.dark, .dark *));

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

    --color-zinc-50: #fafafa;
    --color-zinc-100: #f5f5f5;
    --color-zinc-200: #e5e5e5;
    --color-zinc-300: #d4d4d4;
    --color-zinc-400: #a3a3a3;
    --color-zinc-500: #737373;
    --color-zinc-600: #525252;
    --color-zinc-700: #404040;
    --color-zinc-800: #262626;
    --color-zinc-900: #171717;
    --color-zinc-950: #0a0a0a;

    --color-accent: var(--color-neutral-800);
    --color-accent-content: var(--color-neutral-800);
    --color-accent-foreground: var(--color-white);
}

@layer theme {
    .dark {
        --color-accent: var(--color-white);
        --color-accent-content: var(--color-white);
        --color-accent-foreground: var(--color-neutral-800);
    }
}

@layer base {

    *,
    ::after,
    ::before,
    ::backdrop,
    ::file-selector-button {
        border-color: var(--color-gray-200, currentColor);
    }
}

[data-flux-field]:not(ui-radio, ui-checkbox) {
    @apply grid gap-2;
}

[data-flux-label] {
    @apply  !mb-0 !leading-tight;
}

input:focus[data-flux-control],
textarea:focus[data-flux-control],
select:focus[data-flux-control] {
    @apply outline-hidden ring-2 ring-accent ring-offset-2 ring-offset-accent-foreground;
}

.slick-next {
    right: 47px ;
}
.slick-prev:before, .slick-next:before{
    color: black;
    font-size: 40px;
}
.slick-prev {
    left: 25px;
    z-index: 2;
}

    /* --- Marquee Container Styling --- */
    .stock-marquee-container {
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .marquee-content {
        display: inline-block;
        animation: marquee-animation 45s linear infinite;
    }
    
    .marquee-content:hover {
        animation-play-state: paused;
    }
    
    /* --- Individual Stock Item Styling --- */
    .stock-item {
        display: inline-flex; /* Use flexbox for alignment */
        align-items: center;
        padding: 0 20px;
        border-right: 1px solid #e0e0e0; /* Vertical separator */
        color: #333;
    }

    .stock-item:last-child {
        border-right: none;
    }

    .stock-info {
        display: flex;
        flex-direction: column; /* Arrange items vertically */
        align-items: flex-start; /* Align text to the left */
        margin-right: 15px;
    }

    .stock-name {
        font-weight: bold;
        font-size: 14px;
    }

    .stock-price {
        font-size: 14px;
        font-weight: bold;
    }
    
    .stock-change-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
    }

    .change-value {
        display: flex;
        align-items: center;
        font-weight: bold;
    }

    .change-percent {
        font-weight: bold;
    }

    /* --- Colors & Icons based on change --- */
    .positive {
        color: #28a745; /* Green */
    }
    .negative {
        color: #dc3545; /* Red */
    }
    .neutral {
        color: #007bff; /* Blue */
    }

    /* Up/Down Arrow Icons */
    .icon-up::before {
        content: '▲';
        font-size: 10px;
        margin-right: 4px;
    }
    .icon-down::before {
        content: '▼';
        font-size: 10px;
        margin-right: 4px;
    }
        /* For neutral, we can show a dash or nothing */
    .icon-neutral::before {
        content: ''; 
        margin-right: 4px;
    }

    /* --- Animation Definition --- */
    @keyframes marquee-animation {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%); /* Animate to 50% for a seamless loop */
        }
    }

        
    .scrollbar-hidden::-webkit-scrollbar {
        display: none;
    }
    
    .scrollbar-hidden {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }