@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{
    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #4f55c1;/* button bg color*/

    --primary-text-color: #4f55c1;
    --link-hover: #4f55c1;
    --input-hover-bd-color: #4f55c1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
}

header {
    /* Intentionally empty, main styling by Tailwind */
}

/* Styles for the collapsible header container itself on desktop */
header > .collapsible-header {
    display: flex; /* For desktop layout */
    gap: 1rem;
    width: 100%; /* Takes available width */
    /* background-color: inherit; Remove this, was causing issues with mobile */
    place-content: center; /* Center nav items on desktop */
    overflow: hidden; /* For transition */
    transition: width 0.3s ease;
}

.animated-collapse {
    transition: width 0.3s ease; /* Applied to collapsible-header for mobile */
}

.header-gradient {
    background: rgb(206,174,212);
    background: linear-gradient(83deg, #ceaed474 15%, #abd4e693 33%, #73edc097 79%, #8c91e86b 100%);
    filter: blur(100px);
}

/* Individual header links */
.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 10px;
    padding: 8px 12px; /* Adjusted padding for better touch */
    transition: background-color 0.3s, color 0.3s;
    /* color will be set by Tailwind or media query below */
}

.header-links:hover {
    color: var(--link-hover);
    background-color: rgba(79, 85, 193, 0.1); /* Subtle hover background */
}

.primary-text-color {
    color: var(--primary-text-color);
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 1 !important; /* Corrected from 100 */
}

.btn {
    padding: 10px 15px;
    width: max-content;
    border-radius: 24px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    text-align: center;
    line-height: normal;
}

.btn:disabled {
    cursor: default;
}

.input {
    padding: 10px;
    background-color: transparent;
    border-radius: 25px;
    min-width: 100px;
    border: 2px solid #818080;
    color: #333;
}

.input:active, .input:focus, .input:focus-within {
    border: 2px solid var(--input-hover-bd-color);
    outline: none;
}

.input-error {
    border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within {
    border-bottom: 3px solid #fd0101;
}

.footer-link {
    color: #0d0d0d;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--link-hover);
}

/* Mobile Menu Specific Styles */
@media not all and (min-width: 1024px) { /* lg breakpoint */
    header .collapsible-header { /* This is the mobile fly-out menu */
        position: fixed;
        top: 0; /* Ensure it starts from the top */
        right: 0px;
        flex-direction: column;
        opacity: 0; /* Initial state for JS animation, JS adds opacity-100 */
        height: 100vh;
        min-height: 100vh; /* Ensure it takes full viewport height */
        height: 100dvh; /* Dynamic viewport height */
        width: 0vw; /* Initial state for JS animation, JS sets width */
        justify-content: flex-start; /* Align items to the top */
        padding: 20px;
        padding-top: 70px; /* Space for the fixed header/close button */
        background-color: #ffffff; /* Explicit white background */
        color: #000000; /* Default text color for items inside */
        overflow-y: auto;
        box-shadow: -2px 0px 5px rgba(0,0,0,0.1);
        /* Ensure transition applies correctly */
        transition-property: width, opacity;
        transition-duration: 0.3s;
        transition-timing-function: ease;
    }

    header .collapsible-header nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Links align to the right */
        gap: 0.5rem; /* Space between links */
    }
    
    header .collapsible-header .header-links {
        color: black; /* Ensure links are black on white background */
        width: 100%;
        text-align: right;
        justify-content: flex-end;
        padding: 12px 15px; /* Larger touch targets */
    }
    header .collapsible-header .header-links:hover {
        color: var(--link-hover);
        background-color: #f0f0f0; /* Light grey hover for links */
    }

    /* Styling for the div containing the "Pradėti" button in mobile menu */
    header .collapsible-header > div:last-child { 
        width: 100%;
        margin-top: auto; /* Pushes button to the bottom if space allows */
        padding-top: 20px; /* Space above the button */
        display: flex;
        justify-content: flex-end; /* Align button to the right */
    }
    header .collapsible-header .btn {
         /* Tailwind classes should mostly handle this, but ensure it's visible */
        color: var(--btn-color);
        background-color: var(--btn-bg);
    }
}