@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        --background: 0 0% 100%;
        --foreground: 0 0% 3.9%;

        --card: 0 0% 100%;
        --card-foreground: 0 0% 3.9%;

        --popover: 0 0% 100%;
        --popover-foreground: 0 0% 3.9%;

        --primary: 0 0% 9%;
        --primary-foreground: 0 0% 98%;

        --secondary: 0 0% 96.1%;
        --secondary-foreground: 0 0% 9%;

        --muted: 0 0% 96.1%;
        --muted-foreground: 0 0% 45.1%;

        --accent: 0 0% 98%;
        --accent-foreground: 0 0% 9%;

        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 0 0% 98%;

        --border: 0 0% 89.8%;
        --input: 0 0% 89.8%;
        --ring: 0 0% 3.9%;

        --radius: 0.5rem;
    }
}

@layer utilities {
    .step {
        counter-increment: step;
    }

    .step:before {
        @apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
        @apply ml-[-50px] mt-[-4px];
        content: counter(step);
    }

    .popover-content-width-full {
        width: var(--radix-popover-trigger-width);
        max-height: var(--radix-popover-content-available-height);
    }
}

.text-gradient_indigo-purple {
    background: linear-gradient(90deg, #0077b5 0%, #00a0dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



html {
    scroll-behavior: smooth;
}

.primary-shadow {
    box-shadow:  0 4px 4px 0 rgba(0,0,0,.25)
}

.primary-gradient {
    background: linear-gradient(267deg,#4402d2 -9.43%,#040218 -9.42%,rgba(63,17,100,.94) 4.63%,rgba(14,14,18,.82) 127.55%);
}

.trix-content img {
    margin: 0 auto;
}

.trix-content iframe {
    margin: 0 auto;
}

/* Added to fix HTML in jspdf where text is rendered at bottom */
@layer base {
    img {
        @apply inline-block;
    }
}

.turbo-progress-bar {
    visibility: hidden;
}


.pagy {
    display: flex;                /* Use flexbox for alignment */
    justify-content: center;      /* Center the pagination items */
    align-items: center;          /* Align items vertically */
    margin: 20px 0;              /* Add margin for spacing */
}

.pagy a {
    text-decoration: none;        /* Remove underline from links */
    color: #007bff;              /* Link color */
    padding: 10px 15px;          /* Padding for clickable area */
    margin: 0 5px;               /* Margin for spacing between items */
    border: 1px solid transparent;/* Transparent border */
    border-radius: 4px;          /* Rounded corners */
    transition: background-color 0.2s, border-color 0.2s; /* Transition effect */
}

.pagy a:hover {
    background-color: #f0f0f0;   /* Light background on hover */
    border-color: #007bff;       /* Border color on hover */
}

.pagy .current {
    background-color: #007bff;   /* Background for the current page */
    color: white;                 /* Text color for the current page */
    border: 1px solid #007bff;   /* Border color for the current page */
    pointer-events: none;         /* Disable clicking on the current page */
}

.pagy a[aria-disabled="true"] {
    color: #ccc;                  /* Color for disabled links */
    pointer-events: none;         /* Disable interaction */
}

@media (max-width: 768px) {
    .pagy {
        flex-wrap: wrap;          /* Allow wrapping on smaller screens */
    }

    .pagy a {
        margin: 5px;              /* Adjust margin for small screens */
        padding: 8px 12px;        /* Adjust padding for small screens */
    }
}

