﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #cc0000;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    input[type="checkbox"]:checked {
        background-color: #33cc33;
        border-color: #33cc33;
    }

        input[type="checkbox"]:checked:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
        }

    input[type="checkbox"]:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
    }

    input[type="checkbox"]:checked::before {
        content: "✓";
        display: block;
        text-align: center;
        color: white;
        font-weight: bold;
        line-height: 20px;
    }

#confirmGuests {
    text-align: right;
}

.header-bride {
}

#logo-main-bt {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    margin-left: 8px;
    margin-top: 2%;
}

#navbarNav {
    position: relative;
    z-index: 1040;
}

    /* Tło dla rozwiniętego menu */
    #navbarNav.show {
       /* background-color: #efe5da;*/
        background-color: white !important;
        padding: 10px;
    }

    /* Przyciski muszą mieć swoje tło z gradientami */
    #navbarNav .btn-group-vertical a {
        background-color: transparent;
    }

.navbar-weddding {
    background-image: url('/img/weddings_lifestyle.jpg') !important; /* kolorowe tło */
    background-color: transparent !important; /* Usuwamy białe tło */
    background-size: cover !important; /* Tło pokrywa całą szerokość */
    background-position: center !important; /* Wyśrodkowanie tła */
    background-repeat: no-repeat !important;
    height: auto;
    min-height: 65px;
    opacity: 0.9;
    position: sticky;
    top: 0;
    z-index: 1030; /* Bootstrap navbar z-index */
    width: 100% !important; /* Pełna szerokość */
}

.navbar-white {
    background-color: white !important;
    height: auto;
    min-height: 65px;
    opacity: 0.9;
    position: sticky;
    top: 0;
    z-index: 1030; /* Bootstrap navbar z-index */
    width: 100% !important; /* Pełna szerokość */
}

/* Nadpisanie białego tła Bootstrap dla navbar i container */
/*#sidebar .container-fluid {
    background-color: transparent !important;
}

    #sidebar:not(.navbar-toggler) {
    background-color: transparent;
    }*/

.btn-group-vertical a {
    margin-top: 4px !important;
}

#but-home-bt {
    width: 230px !important;
    height: auto;
    background-image: url('/img/Logo_mix2.png');
    background-size: cover;
    background-repeat: no-repeat;
    /* color: #efe5da;*/
    color: #f3ede9;
    margin-left: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding-bottom: 15px;
    transition: background 0.3s ease;
}

    #but-home-bt:hover {
        background-image: url('/img/Logo_mix3.png');
    }

.btn-gradie-violet {
    background: linear-gradient(to bottom, #e7ddf3, #7f699c);
    color: white;
    padding: 10px 20px;
    border: 1px solid #2e4372;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    text-align: center;
    width: 230px;
    margin-left: 8px;
}

    .btn-gradie-violet:hover {
        background: linear-gradient(to bottom, #dbd6e3, #684595);
        text-decoration: none;
        color: white;
    }

.btn-gradie-greeng {
    background: linear-gradient(to bottom, #d7efe6, #80a294);
    color: white;
    padding: 10px 20px;
    border: 1px solid #2e4372;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    text-align: center;
    width: 230px;
    margin-left: 8px;
}

    .btn-gradie-greeng:hover {
        background: linear-gradient(to bottom, #d0f0e4, #476158);
        text-decoration: none;
        color: white;
    }

.btn-gradie-orange {
    background: linear-gradient(to bottom, #fbd3a5, #da7c0d);
    color: white;
    padding: 10px 20px;
    border: 1px solid #2e4372;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    text-align: center;
    width: 230px;
    margin-left: 8px;
}

    .btn-gradie-orange:hover {
        background: linear-gradient(to bottom, #f3e4d1, #e04c09);
        text-decoration: none;
        color: white;
    }

.btn-gradie-sea {
    background: linear-gradient(to bottom, #82c1c4, #07969c);
    color: white;
    padding: 10px 20px;
    border: 1px solid #2e4372;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    text-align: center;
    width: 230px;
    margin-left: 8px;
}

    .btn-gradie-sea:hover {
        background: linear-gradient(to bottom, #c0c9c9, #027479);
        text-decoration: none;
        color: white;
    }

.btn-gradie-bogu {
    background: linear-gradient(to bottom, #e1a0af, #b33250);
    color: white;
    padding: 10px 20px;
    border: 1px solid #2e4372;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    text-align: center;
    width: 230px;
    margin-left: 8px;
}

    .btn-gradie-bogu:hover {
        background: linear-gradient(to bottom, #f5e2e6, #900626);
        text-decoration: none;
        color: white;
    }

#cart_create_bt {
    background-color: #daf4ea !important
}

.space-sm {
    padding-left: 0.5rem !important;
}

.foto-bottom {
    margin-top: 8%;
    max-height: 350px;
}

.backgr-my {
    /*background-color: #efe5da;*/
    background-color: #f3ede9;
}

.body-app-frame {
    padding-left: 250px;
    padding-top: 20px;
    margin-top: 20px; /* Dodatkowy margines aby treść była poniżej navbar */
}

.bg-image {
    max-height: 350px;
    width: 100%;
    opacity: 0.4;
    z-index: 0;
    object-fit: fill;
}

.card-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* wyśrodkowanie */
}

.card-home {
    margin-top: 7%;
    margin-right: 1%;
}

#add-worker {
    background-color: #f3dc6f;
    z-index: 0;
}

#worker-two {
    background-color: #67e074b0;
    z-index: 0;
}

#worker-three {
    background: linear-gradient(to bottom, #8CC8FA, #218FEB);
    z-index: 0;
}

a.card-link {
    text-decoration: none;
    color: inherit;
    width: 100% !important;
}

#add-worker,
#worker-two,
#worker-three {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

    #add-worker:hover,
    #worker-two:hover,
    #worker-three:hover {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
        border-color: #00e64d;
        transform: scale(1.02);
    }


.row {
    margin-top: 3px;
}

.group-form-my {
    margin-top: 2%;
}

.login {
    height: 30vh;
}

    .login .card {
        height: 20rem;
        width: 35rem;
    }

.table-hover tbody tr:hover {
    background-color: rgba(245, 199, 253, 0.8);
}

/* Navbar toggler button - lepsze tło i widoczność */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #333 !important;
    padding: 0.5rem 0.75rem !important;
}

    .navbar-toggler img {
        display: block;
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

/*#confirmAdults {
    background-color: #FAEE82;
}
#confirmChildren {
    background-color: #8BC98E;
}*/

.card-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/*#unconfirmedGuest {
    background-color: #F46D63;
}*/
.disabledConfirm {
    opacity: 0.25;
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

    .map-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

.white-bg {
    background-color: white !important;
}

/* ===== MEDIA QUERIES DLA URZĄDZEŃ MOBILNYCH ===== */
/* Tablets i mniejsze ekrany */
@media (max-width: 991px) {
    .body-app-frame {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
        margin-top: 10px;
    }

    .login .card {
        max-height: 50vh;
        width: 80%;
    }

    #logo-main-bt {
        width: 80%;
        margin-top: 5%;
    }

    .card-home {
        margin-top: 13%;
        margin-right: 0;
        margin-left: 0;
    }

    .bg-image {
        margin-top: auto; /* Przesuwa na dół */
        bottom: 0;
        max-height: 200px;
    }
    /* Przyciski w menu collapse - pełna szerokość */
    #but-home-bt,
    .btn-gradie-violet,
    .btn-gradie-greeng,
    .btn-gradie-orange,
    .btn-gradie-sea,
    .btn-gradie-bogu {
        width: 190px !important;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .btn-group-vertical {
        width: 190px;
    }

    #sidebar {
        height: auto;
        min-height: 50px;
        background-size: cover;
        background-repeat: repeat;
        width: 100%;
    }
}

/*--------------------------------------*/
    /* Smartfony w orientacji pionowej */
    @media (max-width: 576px) {
        html {
            font-size: 13px;
        }

        .login .card .body {
            min-height: 50px !important;
            max-height: 20vh;
         }

        .body-app-frame {
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 15px;
            margin-top: 10px;
        }

        #logo-main-bt {
            width: 90%;
            max-width: 300px;
            margin-top: 3%;
            margin-left: 0;
            object-fit: contain; /* Zapobiega ucinaniu logo */
        }

        .card-home {
            margin-top: 3%;
            margin-right: 0;
            margin-left: 0;
        }

        .bg-image {
            max-height: 180px;
            object-fit: cover; /* Lepsze skalowanie zdjęcia na telefonie */
        }

        #sidebar {
            height: auto;
            min-height: 50px;
            background-size: cover;
            background-repeat: repeat;
            width: 100%;
        }


        /* Przyciski w menu - optymalizacja dla małych ekranów */
        #but-home-bt,
        .btn-gradie-violet,
        .btn-gradie-greeng,
        .btn-gradie-orange,
        .btn-gradie-sea,
        .btn-gradie-bogu {
            width: 190px !important;
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 8px;
            padding: 12px 15px;
            font-size: 0.9rem;
        }

        /* Centrowanie logo w rzędzie */
        .row.justify-content-center {
            margin-left: 0;
            margin-right: 0;
        }

        /* Card dla tła */
        .card-home .card {
            margin-bottom: 15px;
        }

        .foto-bottom {
            margin-top: 5%;
            max-height: 200px;
        }

        .table-responsive {
            font-size: 0.85rem;
        }
     
    }

    /*----------------------------------*/
    /* Bardzo małe ekrany (starsze telefony) */
    @media (max-width: 375px) {
        html {
            font-size: 12px;
        }

        #logo-main-bt {
            width: 95%;
            max-width: 280px;
        }

        .bg-image {
            max-height: 150px;
        }

        #but-home-bt,
        .btn-gradie-violet,
        .btn-gradie-greeng,
        .btn-gradie-orange,
        .btn-gradie-sea,
        .btn-gradie-bogu {
            padding: 10px 12px;
            font-size: 0.85rem;
            width: 190px !important;
        }
    }

    /*----------------------------------*/
    /* Orientacja pozioma na telefonach */
    @media (max-width: 768px) and (orientation: landscape) {
        .bg-image {
            max-height: 120px;
        }

        #logo-main-bt {
            width: 50%;
            margin-top: 2%;
        }

        .card-home {
            margin-top: 2%;
        }
    }
