﻿/*
   Üzemeltetési megjegyzés:
   - A fájl nem használ külső webfontot; a tipográfia system font stackre épül.
   - A modern CSS-elemeket (CSS custom property, calc(), clamp(), backdrop-filter) WebGrease / System.Web.Optimization
     minifikációval nem célszerű feldolgozni. MVC5 alatt maradjon BundleTable.EnableOptimizations = false,
     vagy készüljön külön, modern build-eszközzel előállított minifikált CSS.
*/

/* =========================================================
   ParkolóFoglaló TechWizard arculati redesign - mobil/tablet CSS
   Fájl: Site-mobile-techwizard.css
   Csak a desktop TechWizard redesign mobil/tablet eltérései
   ========================================================= */

@media (max-width: 1199.98px) {
    :root {
        --pf-footer-height: 82px;
        --pf-cookie-offset: 82px;
    }

    .app-navbar {
        min-height: auto;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

        .app-navbar .navbar-collapse {
            margin-top: 0.9rem;
            padding: 0.85rem;
            border: 1px solid rgba(246, 251, 255, 0.14);
            border-radius: 1.15rem;
            background: linear-gradient(135deg, rgba(10, 115, 232, 0.16), transparent), rgba(7, 21, 38, 0.98);
            box-shadow: 0 1rem 2rem rgba(7, 21, 38, 0.28);
        }

        .app-navbar .navbar-nav {
            gap: 0.28rem;
        }

        .app-navbar .nav-link {
            width: 100%;
            border-radius: 0.86rem;
            padding: 0.72rem 0.8rem;
        }

        .app-navbar .dropdown-menu {
            margin-top: 0.15rem;
            padding: 0.22rem 0 0.36rem 0.78rem;
            border: 0;
            border-left: 1px solid rgba(246, 251, 255, 0.14);
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
        }

        .app-navbar .dropdown-item {
            color: rgba(246, 251, 255, 0.76);
            white-space: normal;
        }

            .app-navbar .dropdown-item:hover,
            .app-navbar .dropdown-item:focus {
                color: #f6fbff;
                background: rgba(246, 251, 255, 0.10);
            }

        .app-navbar .dropdown-divider {
            border-top-color: rgba(246, 251, 255, 0.14);
        }

    .app-user-pill {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        margin: 0.55rem 0 0.25rem;
    }

    .navbar .btn {
        width: 100%;
        margin-top: 0.35rem;
    }
}

@media (max-width: 991.98px) {
    .app-main {
        padding-top: 1.8rem;
    }

    .layout-editor-stage-wrap {
        padding: 0.36rem;
    }

    .layout-editor-stage {
        min-width: 720px;
    }

    .layout-editor-resize-handle {
        width: 1.08rem;
        height: 1.08rem;
        right: -0.48rem;
        bottom: -0.48rem;
    }

    .layout-editor-rotate-handle {
        width: 1.16rem;
        height: 1.16rem;
        top: -1.75rem;
        margin-left: -0.58rem;
    }

    .dashboard-section-header {
        gap: 0.75rem;
    }

    .dashboard-action-row.justify-content-lg-end {
        justify-content: flex-start !important;
    }
}

@media (max-width: 767.98px) {
    :root {
        --pf-footer-height: 96px;
        --pf-cookie-offset: 96px;
    }

    html {
        scroll-padding-top: 5.2rem;
    }

    body {
        font-size: 0.94rem;
        background: radial-gradient(circle at 12% 4%, rgba(32, 199, 238, 0.22), transparent 18rem), linear-gradient(145deg, #eef7ff 0%, #e4f2ff 100%);
    }

        body::before {
            background-size: 34px 34px;
        }

    .app-shell {
        padding-bottom: calc(var(--pf-footer-height) + 1rem);
    }

    .app-main {
        padding: 1.1rem 0 7.2rem;
    }

        .app-main .container,
        .app-navbar .container,
        .app-footer .container {
            max-width: 100%;
        }

    .app-navbar {
        box-shadow: 0 0.75rem 1.5rem rgba(7, 21, 38, 0.20);
    }

    .app-brand {
        gap: 0.65rem;
    }

    .app-brand-mark,
    .app-logo-mark {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.9rem;
    }

    .app-brand-text {
        font-size: 0.98rem;
        letter-spacing: -0.035em;
    }

    .page-header {
        margin-bottom: 1.15rem;
        padding-left: 1rem;
    }

        .page-header h1 {
            font-size: 1.52rem;
            line-height: 1.1;
        }

        .page-header p {
            font-size: 0.94rem;
        }

    .card {
        border-radius: 1.25rem;
    }

    .card-header {
        padding: 0.9rem 1rem;
        border-top-left-radius: 1.25rem !important;
        border-top-right-radius: 1.25rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .dashboard-card,
    .dashboard-metric-card,
    .dashboard-warning-panel,
    .dashboard-empty-state,
    .auth-card {
        border-radius: 1.25rem;
        box-shadow: 0 0.45rem 1.2rem rgba(7, 21, 38, 0.08);
    }

    .dashboard-card,
    .dashboard-metric-card {
        padding: 1rem;
    }

        .dashboard-card:hover,
        .dashboard-card:focus-within,
        .dashboard-metric-card:hover,
        .dashboard-metric-card:focus-within,
        .btn:hover,
        .btn:focus {
            transform: none;
        }

        .dashboard-card h2 {
            margin-top: 0.8rem;
            font-size: 1.02rem;
        }

    .dashboard-card-icon {
        width: 2.55rem;
        height: 2.55rem;
        border-radius: 0.9rem;
    }

    .dashboard-section {
        margin-bottom: 1.25rem;
    }

    .dashboard-section-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0.85rem;
    }

    .dashboard-section-title {
        font-size: 1.12rem;
    }

    .dashboard-section-subtitle {
        font-size: 0.9rem;
    }

    .dashboard-metric-label,
    .dashboard-metric-meta-line,
    .dashboard-mini-label {
        white-space: normal;
    }

    .dashboard-metric-value {
        font-size: 1.72rem;
    }

    .dashboard-warning-panel {
        padding: 0.92rem 0.98rem 0.92rem 1.1rem;
    }

    .dashboard-warning-title {
        margin-bottom: 0.42rem;
    }

    .dashboard-action-row {
        align-items: stretch;
        gap: 0.45rem;
    }

        .dashboard-action-row .btn,
        .d-grid .btn,
        .auth-form .btn {
            width: 100%;
        }

    .btn {
        white-space: normal;
        min-height: 2.52rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .btn-sm {
        min-height: 2.18rem;
        padding: 0.44rem 0.68rem;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.34rem;
    }

        .btn-group > .btn {
            flex: 1 1 auto;
            border-radius: 0.72rem !important;
        }

    .form-control,
    .form-select {
        min-height: 2.58rem;
        border-radius: 0.78rem;
    }

    .form-label {
        margin-bottom: 0.35rem;
    }

    .table-responsive {
        border: 1px solid rgba(91, 61, 32, 0.14);
        border-radius: 1rem;
    }

    .dashboard-table-card {
        border-radius: 1.15rem;
    }

    .table {
        min-width: 680px;
        font-size: 0.9rem;
    }

    .table-sm {
        min-width: 620px;
    }

    .table thead th {
        padding-top: 0.78rem;
        padding-bottom: 0.78rem;
        font-size: 0.7rem;
    }

    .table tbody td,
    .table tbody th {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .badge {
        white-space: normal;
        line-height: 1.1;
    }

    .alert,
    .app-alert {
        border-radius: 1rem;
        padding: 0.85rem 0.95rem;
    }

    .auth-page {
        min-height: auto;
        align-items: flex-start;
        justify-content: stretch;
    }

    .auth-card {
        max-width: none;
        padding: 1.1rem;
    }

    .auth-card-header {
        gap: 0.75rem;
        margin-bottom: 1.1rem;
    }

        .auth-card-header h1 {
            font-size: 1.3rem;
        }

        .auth-card-header p {
            font-size: 0.92rem;
        }

    .auth-card-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.24rem;
        text-align: center;
    }

    .result-icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 1rem;
        font-size: 1.45rem;
    }

    .password-policy-panel {
        padding: 0.78rem 0.85rem;
        border-radius: 1rem;
    }

    .password-rules li {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .layout-editor-stage-wrap {
        border-radius: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .layout-editor-stage,
    .reservation-layout-stage,
    .reception-map-stage {
        border-radius: 0.9rem;
    }

    .reception-map-legend {
        gap: 0.55rem 0.78rem;
        font-size: 0.82rem;
    }

    .cookie-banner {
        bottom: var(--pf-cookie-offset);
    }

    .cookie-banner-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.92rem;
        border-radius: 1rem 1rem 0 0;
    }

    .cookie-banner-content {
        display: block;
        font-size: 0.84rem;
        line-height: 1.43;
    }

        .cookie-banner-content strong,
        .cookie-banner-content span,
        .cookie-banner-content a {
            display: block;
            margin-bottom: 0.34rem;
        }

    .cookie-banner-form .btn {
        width: 100%;
    }

    .app-footer {
        min-height: var(--pf-footer-height);
        padding: 0.84rem 0;
        text-align: center;
    }

        .app-footer .container {
            gap: 0.32rem !important;
        }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 0.86rem;
        padding-right: 0.86rem;
    }

    .row {
        --bs-gutter-x: 1rem;
    }

    .page-header h1 {
        font-size: 1.42rem;
    }

    .dashboard-metric-card,
    .dashboard-card,
    .card-body,
    .auth-card {
        padding: 0.95rem;
    }

    .dashboard-table-card.p-3 {
        padding: 0.85rem !important;
    }

    .dashboard-warning-line,
    .dashboard-empty-state,
    .card-body,
    .alert {
        font-size: 0.92rem;
    }

    .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 0.35rem;
    }

    .pagination {
        justify-content: center;
    }

    .page-link {
        padding: 0.42rem 0.62rem;
    }

    .reception-map-legend > span {
        flex: 1 1 46%;
    }
}

@media (max-width: 420px) {
    :root {
        --pf-footer-height: 108px;
        --pf-cookie-offset: 108px;
    }

    .app-brand-text {
        max-width: 10.4rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-brand-mark {
        width: 2.3rem;
        height: 2.3rem;
    }

    .auth-card-header {
        flex-direction: column;
    }

    .dashboard-card h2 {
        font-size: 0.98rem;
    }

    .dashboard-metric-value {
        font-size: 1.55rem;
    }

    .table {
        min-width: 600px;
    }

    .reception-map-legend > span {
        flex-basis: 100%;
    }

    .cookie-banner-panel {
        padding: 0.82rem;
    }
}
