﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background: #181a1b;
    color: #e0e0e0;
    transition: background 0.4s, color 0.4s, background-color 0.4s;
}

body .bg-white,
body .footer-social a,
body .navbar-brand,
body .nav-link {
    transition: background 0.4s, color 0.4s, background-color 0.4s;
}

body.index-bg-dark {
    background: linear-gradient(rgba(24,26,27,0.7), rgba(24,26,27,0.7)), url('https://posir.poznan.pl/images/obiekty/Malta/Hotel%20Camping%20Malta/DJI_0007.jpg') center top no-repeat fixed;
    background-size: cover;
    background-position: center 30px;
}

@keyframes footer-fadein-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Navbar, cards, and footer backgrounds */
.navbar,
.bg-white,
.footer-social a {
    background: #23272b !important;
    color: #e0e0e0 !important;
}

.card:not(.bg-jinx):not(.bg-araz):not(.bg-yami):not(.bg-insert1):not(.bg-insert2):not(.bg-insert3):not(.contact-card) {
    background: #23272b !important;
    color: #e0e0e0 !important;
}

.navbar-brand,
.nav-link,
.footer-social a {
    color: #ffc107 !important;
}

/* Page transition fade effect */
.body-fade {
    opacity: 1;
    transition: opacity 0.4s;
}
.body-fade.fade-out {
    opacity: 0;
}

.animated-footer {
    opacity: 0;
    animation: footer-fadein-up 1s cubic-bezier(.4,2,.6,1) 0.5s forwards;
}

/* Placeholder kolor lekko szary */
.form-control::placeholder {
    color: #888 !important;
    opacity: 1;
}

/* --- INPUT GROUP STYLES --- */
.input-group .input-group-text {
    background-color: transparent;
    border: none;
    color: #e0e0e0;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #e0e0e0;
}

.input-group {
    border-radius: 0.375rem;
    border: 1px solid #444950;
    background: #23272b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
    border-color: #25f7fb;
    box-shadow: 0 0 0 0.1rem #23272b, 0 0 0 0.25rem #25f7fb;
}

.input-group .input-group-text,
.input-group .form-control {
    border-radius: 0;
}

.input-group .input-group-text:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.input-group .form-control:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

form::placeholder {
    color: #888 !important;
}

.form-floating > label,
.form-floating .form-control.ps-5,
.form-floating .position-absolute i {
    all: unset;
}

/* Animacja tytułu strony */
.page-title-animate {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
}

/* Kluczowe klatki animacji fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated gradient and pill shape on hover/focus for layout buttons */

.btn-gradient {
    background: linear-gradient(90deg, #25f7fb 0%, #033815 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 0.5rem;
    transition: 
        background-position 0.4s cubic-bezier(0.4,0,0.2,1),
        box-shadow 0.2s,
        border-radius 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px 0 #2c3e801a;
}

.btn-logout-gradient {
    background: linear-gradient(90deg, #282828 0%, #700000 100%);
    background-size: 2050% 100%;
    background-position: 0% 0%;
    color: #e0e0e0 ;
    border: none;
    border-radius: 0.5rem;
    transition: background-position 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s, border-radius 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px 0 #2c3e801a;
    font-weight: 700;
}

    .btn-logout-gradient:hover,
    .btn-logout-gradient:focus {
        background-position: 100% 0%;
        color: #23272b !important;
        box-shadow: 0 4px 16px 0 rgba(44,62,80,0.15);
        border-radius: 50rem !important;
    }

.btn-gradient:hover,
.btn-gradient:focus {
    background-position: 100% 0%;
    color: #ffc107 !important;
    box-shadow: 0 4px 16px 0 rgba(44,62,80,0.15);
    border-radius: 50rem !important;
}




/* Pseudo-element for animated gradient background */


/* On hover/focus/active: show and animate the gradient background */
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:focus::before,
.navbar-nav .nav-link.active::before {
    opacity: 1;
    background-position: 0% 0%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #222 !important;
    border-radius: 50rem;
    box-shadow: 0 4px 16px 0 rgba(44,62,80,0.10);
    text-decoration: none;
}
