/* Base styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* Focus styles */
.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;
}

/* Form floating placeholder */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Custom file input */
.custom-file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.custom-file-button {
    white-space: nowrap;
}

/* Dropdown menu */
.dropdown-menu {
    min-width: 200px;
}

/* Accessibility */
.grayscale-mode {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.text-size-small {
    font-size: 0.9rem;
}

.text-size-medium {
    font-size: 1rem;
}

.text-size-large {
    font-size: 1.2rem;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

    .language-switcher form,
    .language-switcher select,
    .language-switcher .form-select {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }

.language-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.language-item {
    display: inline-block;
}

    .language-item + .language-item::before {
        content: "|";
        margin: 0 0.25rem;
        color: #ccc;
    }

    .language-item a {
        text-decoration: none;
        color: #007bff;
        cursor: pointer;
    }

        .language-item a:hover {
            text-decoration: underline;
        }

    .language-item.active a {
        font-weight: bold;
        color: #333;
        text-decoration: none;
        cursor: default;
    }

/* Text size switcher */
.text-size-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.size-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.size-item {
    display: inline-block;
    line-height: 1;
}

    .size-item + .size-item::before {
        content: "|";
        margin: 0 0.25rem;
        color: #ccc;
    }

    .size-item a {
        text-decoration: none;
        color: #007bff;
        cursor: pointer;
        font-size: 1rem;
    }

    .size-item.active a {
        font-weight: bold;
        color: #333;
        text-decoration: none;
        cursor: default;
        border-bottom: 2px solid #333;
    }

/* Privacy page */
.privacy-content {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

    .privacy-content p {
        margin-bottom: 1rem;
    }

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 10000;
    font-size: 0.9rem;
}

    .cookie-consent .cookie-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-consent p {
        margin: 0;
    }

    .cookie-consent button {
        align-self: flex-end;
    }

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #6c757d;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #0d6efd;
            text-decoration: underline;
        }

.footer-copyright {
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.footer-version {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Carousel effects */
.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

.carousel-item img {
    transition: transform 6s ease-in-out;
}

.carousel-item.active img {
    transform: scale(1.05);
}
