﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Scoped to calculator only — does not affect layout header/footer */
.tapeta-scope {
    font-family: 'Inter', sans-serif;
    touch-action: manipulation;
}

    /* Force number input spinners (up/down arrows) to always be visible */
    .tapeta-scope input[type="number"] {
        appearance: auto;
    }

        .tapeta-scope input[type="number"]::-webkit-outer-spin-button,
        .tapeta-scope input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: inner-spin-button;
            appearance: auto;
            opacity: 1;
            height: auto;
            cursor: pointer;
        }

    .tapeta-scope .rounded {
        margin-left: revert;
    }

    .tapeta-scope select {
        min-width: revert;
    }

.wallpaper-thumb {
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .wallpaper-thumb:hover {
        transform: scale(1.05);
        z-index: 10;
    }

    .wallpaper-thumb.active {
        border-color: #0d9488;
        transform: scale(1.05);
        box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.3);
    }

.custom-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #2563eb;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-bottom-left-radius: 4px;
    font-weight: bold;
    z-index: 5;
    text-transform: uppercase;
}

/* ── Range slider ── */
.range-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #0d9488;
        cursor: pointer;
        margin-top: -7px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        border: none;
    }

    .range-slider::-moz-range-thumb {
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #0d9488;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        border: none;
    }

    .range-slider::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #cbd5e1;
        border-radius: 2px;
    }

    .range-slider::-moz-range-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #cbd5e1;
        border-radius: 2px;
    }

    .range-slider:disabled::-webkit-slider-thumb {
        background: #94a3b8;
        cursor: not-allowed;
    }

    .range-slider:disabled::-moz-range-thumb {
        background: #94a3b8;
        cursor: not-allowed;
    }

    .range-slider:disabled::-webkit-slider-runnable-track {
        background: #e2e8f0;
        cursor: not-allowed;
    }

    .range-slider:disabled::-moz-range-track {
        background: #e2e8f0;
        cursor: not-allowed;
    }

.slider-vertical-container {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.slider-vertical-wrapper {
    width: 30px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-vertical {
    width: 200px;
    height: 30px;
    transform: rotate(-90deg);
    transform-origin: center;
}

.toggle-checkbox:checked {
    right: 0;
    border-color: #0d9488;
}

    .toggle-checkbox:checked + .toggle-label {
        background-color: #0d9488;
    }

.input-std {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    background: white;
    outline: none;
}

    .input-std:focus {
        border-color: #0f766e;
        ring: 2px solid #0f766e;
    }

.match-btn {
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    padding: 5px;
}

    .match-btn:hover {
        border-color: #94a3b8;
        background: #f8fafc;
    }

    .match-btn.active {
        border-color: #0d9488;
        background-color: #f0fdfa;
        box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
    }

    .match-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 0.6;
        transition: opacity 0.2s;
        filter: grayscale(10%);
    }

    .match-btn:hover img {
        opacity: 0.8;
    }

    .match-btn.active img {
        opacity: 1.0;
        filter: grayscale(0%);
    }

.lang-btn {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
}

    .lang-btn:hover {
        opacity: 1;
        background: rgba(255,255,255,0.1);
    }

    .lang-btn.active {
        opacity: 1;
        background: white;
        color: #1e293b;
    }

.room-tab {
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    font-weight: bold;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #334155;
    color: #94a3b8;
    transition: all 0.2s;
    margin-right: 2px;
    user-select: none;
    border-bottom: none;
}

    .room-tab:hover {
        background: #475569;
        color: #fff;
    }

    .room-tab.active {
        background: #f8fafc;
        color: #0f766e;
    }

.wall-tab {
    cursor: pointer;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
    margin-right: 2px;
    user-select: none;
}

    .wall-tab:hover {
        background: #cbd5e1;
        color: #334155;
    }

    .wall-tab.active {
        background: white;
        color: #0d9488;
        border-top: 3px solid #0d9488;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    }

/* Reszponzív logó megjelenítés */
#headerLogoMobile {
    display: none;
}

    #headerLogoMobile.logo-active {
        display: block;
    }

@media (min-width: 1024px) {
    #headerLogoMobile.logo-active {
        display: none;
    }
}

#headerLogoDesktop {
    display: none;
}

@media (min-width: 1024px) {
    #headerLogoDesktop.logo-active {
        display: block;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-area {
        display: block;
        width: 100%;
        border: none;
        box-shadow: none;
    }

    canvas {
        border: 1px solid #000;
        height: 300px;
    }

    body {
        background: white !important;
        color: black;
    }

    /* Hide layout elements: header, footer, copyright, alerts */
    header#header,
    .header_1,
    footer.footer,
    section.copyright,
    .navbar.fixed-bottom,
    .maintenance-modal {
        display: none !important;
    }

    /* Remove background from the outer wrapper sections */
    section.commonSection,
    section.homeService,
    .header_bg_1 {
        background: none !important;
        background-image: none !important;
        background-color: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tapeta-scope {
        background-color: white !important;
    }

    .bg-slate-50 {
        background-color: white !important;
    }

    .bg-slate-800, .bg-slate-700 {
        background-color: #fff !important;
        color: #000 !important;
    }

    #visualContainer {
        resize: none !important;
        height: auto !important;
    }

    /* Ensure content fills the page */
    main[role="main"] {
        padding: 0 !important;
        margin: 0 !important;
    }
}
