:root {
    --app-bg: url('/assets/img/bg-gradient.jpg');
    --topbar-bg: rgba(255,255,255,1);
    --card-bg: #d9d9d9;
    --line: #dedede;
    --gap: 12px;
}

html, body {
    background: var(--app-bg);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: #111;
}

body {
    min-height: 100vh;
}

.app-shell {
}

.topbar {
    background: var(--topbar-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.topbar.is-open{
    background: #fff;
    box-shadow: none;
    transition: all .25s ease;
}

.topbar.is-open  .menu-toggle span{
    background: #0062cc;
}

.logo-slot {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: .04em;
}

.logo{
    max-width: 200px;
}

.menu-toggle {
    width: 52px;
    height: 44px;
    border: 0;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background: #003595;
    border-radius: 999px;
    transition: transform .25s ease, opacity .25s ease;
}

a{
    color:#003595;
    text-decoration: underline!important;
}

.btn-primary{
    background: #003595 !important;
    color: #fff;
    border: 0;
}

.form-control{
    border-radius: 0px;
    border: 1px solid #ccc;
    color: #003595;
    font-weight: 500;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu-panel {
    background: #fff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .32s ease, opacity .22s ease;
}

.menu-panel.is-open, .menu-panel.is-closing { display: block; }
.menu-panel.is-open { max-height: 1200px; opacity: 1; }
.menu-panel.is-closing { max-height: 0; opacity: 0; }

.menu-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.25rem;
    min-height: 100%;
}
.menu-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .8rem;
}
.menu-link {
    text-decoration: none;
    font-weight: 600;
}
.gallery-code-box {
    margin: 25px 0;
    padding:15px;
    color: #fff;
    font-size: 1em;
}

.currentGalleryCode{
    border-top: 1px dashed #fff;
    margin-top:15px;
    padding-top:15px;
}

#copyGalleryCodeBtn{
    color: #ffc153 !important;
}

.collage-grid {
    position: relative;
}
.grid-sizer,
.collage-item {
    width: calc(50% - 6px);
}
.collage-item {
    margin-bottom: var(--gap);
}
.collage-item--precision7 {
    width: 100%;
}

.category-header {
    display: flex;
    gap: .75rem;
    position: absolute;
    z-index: 1;

    height: auto;
    bottom: 1px;
    left: 1px;
    right: 1px;
    padding: 15px;
    background: var(--app-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom right;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.input-width{
    max-width: 50%;
}

.category-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.help-trigger {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0;
}

.help-trigger:hover{
    border-radius: 0;
    color: #fff;
    transition: all .25s ease, opacity .25s ease;
}

.collage-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    border: 1px dashed #fff;
    isolation: isolate;
    font-size: 2rem;
}

.collage-card:hover{
    background: rgba(255,255,255,.15);
}

.collage-card:hover .fa-plus{
    font-size: 3rem;
    transition: all .3s ease-out;
}

.collage-item--alcon .collage-card { min-height: 340px; }
.collage-item--kompan .collage-card { min-height: 370px; }
.collage-item--wyklad .collage-card { min-height: 420px; }
.collage-item--activeflo .collage-card { min-height: 340px; }
.collage-item--dzien .collage-card { min-height: 280px; }
.collage-item--siodemka .collage-card { min-height: 320px; }
.collage-item--precision7 .collage-card { min-height: 300px; }

.placeholder-content,
.upload-progress {
    position: absolute;
    inset: 0;
}
.placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,.97);
}

.collage-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-progress {
    z-index: 4;
    background: rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: #fb891e;
    transition: width .12s linear;
}
.upload-progress-text {
    position: relative;
    z-index: 1;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,.55);
    font-size: 1.1rem;
}

.delete-photo-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgb(220, 21, 78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 14px
}

.help-modal-content {
    background: rgba(255,255,255,.98);
}
.help-modal-copy {
    max-width: 900px;
}
#consentModalTitle,
#categoryHelpTitleInner {
    font-size: clamp(1.45rem, 2.8vw, 2.3rem);
    font-weight: 700;
    color: #003595;
    text-transform: uppercase;
}
#categoryHelpBody {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.7;
}

.collage-card:focus-visible,
.delete-photo-btn:focus-visible,
.menu-toggle:focus-visible,
.help-trigger:focus-visible {
    outline: 3px solid rgba(13,110,253,.45);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .grid-sizer,
    .collage-item,
    .collage-item--precision7 {
        width: 100%;
    }

    .collage-item--alcon .collage-card,
    .collage-item--kompan .collage-card,
    .collage-item--wyklad .collage-card,
    .collage-item--activeflo .collage-card,
    .collage-item--dzien .collage-card,
    .collage-item--siodemka .collage-card,
    .collage-item--precision7 .collage-card {
        min-height: 280px;
    }

    .category-title {
        font-size: .95rem;
    }
}


.btn[disabled] {
    opacity: .85;
}

.busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(12, 15, 24, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.busy-overlay-card {
    width: min(92vw, 420px);
    border-radius: 24px;
    background: rgba(24, 26, 38, .92);
    color: #fff;
    text-align: center;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.busy-overlay-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.busy-overlay-text {
    font-size: .98rem;
    line-height: 1.55;
    opacity: .92;
}

body.busy-overlay-visible {
    overflow: hidden;
}

.crop-modal-content {
    background: #0b0d14;
    color: #fff;
}

.cropper-stage {
    width: 100%;
    height: calc(100vh - 190px);
    max-height: 72vh;
    background: #0b0d14;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-stage img {
    max-width: 100%;
    display: block;
}
