@import "tailwindcss";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

@theme {
    --color-t-lime: #B4F0000;
    --color-text-primary: #FFF;
    --color-background: #191919;
    --color-background-secondary: #FFF;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #191919; /* neutral-950 */
    color: white;
    min-height: 100vh;
}

button {
    cursor: pointer;
}

.container {
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (width >= 48rem) {
    .container {
        padding-inline: 1.5rem;
    }
}

@media (width >= 64rem) {
    .container {
        padding-inline: 2rem;
    }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCB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2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.error-message {
    color: red;
    margin-bottom: 10px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 6px; /* odstęp między polami */
}

.main-content {
    margin: 70px auto 0 auto; /* wyśrodkowanie i odstęp od góry */
    padding: 20px;
}

/* Cancelled reservations styling */
.reservation-cancelled {
    opacity: 0.7;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

    .reservation-cancelled .card-body {
        position: relative;
    }

        .reservation-cancelled .card-body::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #6c757d;
            opacity: 0.5;
            transform: translateY(-50%);
        }

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.btn-disabled {
    opacity: .6;
    cursor: default;
    pointer-events: auto;
}

    .btn-disabled:hover,
    .btn-disabled:active,
    .btn-disabled:focus {
        background-color: var(--bs-secondary);
        border-color: var(--bs-secondary);
        box-shadow: none;
    }



/*NOWE*/
.background-modern-gradient {
    background-color: #000; /* fallback */
    background-image: radial-gradient(800px circle at 85% 50%, rgba(132,255,0,0.75) 0%, rgba(132,255,0,0.45) 30%, rgba(132,255,0,0.15) 55%, transparent 70%), radial-gradient(900px circle at 15% 50%, rgba(0,210,170,0.65) 0%, rgba(0,210,170,0.35) 35%, rgba(0,210,170,0.15) 60%, transparent 75%), radial-gradient(1200px circle at 50% 50%, #0a0a0a 0%, #000000 60%);
}

/*Tekst domyślny*/
.default-text-trainee {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #d1d5db;
}

/*Podkreslenie do linków*/
.underline-link-trainee {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    letter-spacing: 0;
    background: none;
    border: none;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .underline-link-trainee:hover {
        color: #a3e635;
    }

.trainee-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #303030;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    outline: none;
}

    .trainee-input::placeholder {
        color: #a3a3a3;
    }

    .trainee-input:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.4);
    }

    .trainee-input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.register-step1-locked {
    opacity: 0.6;
    pointer-events: none;
}

.trainee-input--textarea {
    min-height: 10rem;
}

/*Szary tekst*/
.grey-input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-neutral-300);
}

/* Authentication modal (Tailwind layout) */
.modal-overlayx,
.register-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modalx {
    background: #ffffff;
    color: #111827;
    width: min(90vw, 900px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.register-modal {
    position: relative;
    background: #191919;
    color: #ffffff;
    width: min(90vw, 640px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.register-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.register-modal-form {
    display: flex;
    flex-direction: column;
}

    .register-modal-form .register-modal-submit {
        align-self: center;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin-top: 1rem;
    }

.register-modal .header-trainee {
    text-align: center;
}

.register-modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.register-modal .header-trainee {
    margin-bottom: 1.5rem;
}

.trainer-optin {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #2a2a2a;
    background: #1f1f1f;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

.trainer-optin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    border: 1px solid #2f2f2f;
    background: #151515;
    color: #c8ff3d;
    flex-shrink: 0;
}

    .trainer-optin-icon svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

.trainer-optin-text {
    flex: 1;
}

.trainer-optin-title {
    display: block;
    font-weight: 600;
    color: #ffffff;
}

.trainer-optin-description {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.trainer-optin-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #b7f000;
}

.register-modal-error {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.register-modal-form-step1 {
    margin-top: 0.5rem;
    row-gap: 0.75rem;
}

.login-modal-form .register-modal-form {
    row-gap: 0.75rem;
}

.login-modal-submit {
    align-self: center;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    margin-top: 0.75rem;
}

.header-trainee_h1,
.header-trainee_h2,
.header-trainee_h3,
.header-trainee_h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.01em;
}

.header-trainee_h1 {
    font-size: var(--text-size-heading-1, 4.5rem);
    line-height: 1.2;
    text-align: center;
}

.header-trainee_h2 {
    font-size: var(--text-size-heading-2, 3.25rem);
    line-height: 1.2;
}

.header-trainee_h3 {
    font-size: var(--text-size-heading-3, 2.75rem);
    line-height: 1.2;
}

.header-trainee_h4 {
    font-size: var(--text-size-heading-4, 2.25rem);
    line-height: 1.3;
}

.header-trainee_h5 {
    font-size: var(--text-size-heading-5, 1.75rem);
    line-height: 1.4;
}

.header-trainee_h6 {
    font-size: var(--text-size-heading-6, 1rem);
    line-height: 1.5;
}

.register-modal .header-trainee_h1 {
    margin-bottom: 1.5rem;
}

.trainee-tiny-text,
.trainee-small-normal-text,
.trainee-regular-text,
.trainee-medium-text,
.trainee-large-text,
.trainee-button-text {
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
}

.trainee-tiny-text {
    font-size: 0.75rem;
    font-weight: 400;
}

.trainee-small-normal-text {
    font-size: 0.875rem;
    font-weight: 400;
}

.trainee-regular-text {
    font-size: 1rem;
    font-weight: 400;
}

.trainee-medium-text {
    font-size: 1.125rem;
    font-weight: 400;
}

.trainee-large-text {
    font-size: 1.375rem;
    font-weight: 400;
}

.trainee-button-text {
    font-size: 1rem;
    font-weight: 500;
}

.trainee-section-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
}

.navbar-link {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0;
}

    .navbar-link,
    .navbar-link:visited,
    .navbar-link:hover,
    .navbar-link:focus {
        color: #fff;
    }

/* Settings typography */
.settings-title,
.settings-label {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
}

@keyframes loadingBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(250%);
    }
}

.shadow-card-background-nice {
    background-color: #0b0b0b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
