/* ============================================================
   ONLINE SHOP PWA
   Main Styles
   ============================================================ */


/* ============================================================
   GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    background: #0f0e0d;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Helvetica,
        Arial,
        sans-serif;

    color: white;

    min-height: 100vh;
    min-height: 100dvh;

    overflow-x: hidden;
}

button {
    font-family: inherit;
}


/* ============================================================
   APP
   ============================================================ */

.app {
    min-height: 100vh;
    min-height: 100dvh;

    background:
        linear-gradient(
            180deg,
            #0e0e10 0%,
            #181512 100%
        );

    padding-top:
        env(safe-area-inset-top);

    padding-bottom:
        env(safe-area-inset-bottom);
}


/* ============================================================
   HEADER
   ============================================================ */

.header {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    padding:
        24px
        20px
        0;
}

.logo-container {
    width: 100%;
    max-width: 330px;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* ============================================================
   PANDA LOGO
   ============================================================ */

.panda-logo {
    width: 100%;
    height: 100px;

    display: flex;

    justify-content: center;
    align-items: center;
}

.panda-logo img {
    display: block;

    width: auto;
    max-width: 220px;

    height: 90px;

    object-fit: contain;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.content {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    padding:
        22px
        18px
        30px;
}


/* ============================================================
   TOOL CARD
   ============================================================ */

.tool-card {
    width: 100%;

    padding: 18px;

    margin-bottom: 18px;

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}


/* ============================================================
   TOOL HEADER
   ============================================================ */

.tool-header {
    display: flex;

    align-items: flex-start;

    gap: 14px;
}

.tool-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(
            255,
            165,
            0,
            0.13
        );

    color: #ff9f0a;

    font-size: 25px;

    font-weight: 600;
}

.tool-info {
    flex: 1;

    min-width: 0;
}

.tool-info h2 {
    margin:
        0
        0
        5px;

    font-size: 20px;

    font-weight: 700;

    color: white;
}

.tool-info p {
    margin: 0;

    font-size: 13px;

    line-height: 1.4;

    color:
        rgba(
            255,
            255,
            255,
            0.48
        );
}


/* ============================================================
   ACTION BUTTON
   ============================================================ */

.action-button {
    width: 100%;
    height: 46px;

    margin-top: 18px;

    border: none;

    border-radius: 12px;

    background: #ff9f0a;

    color: #111;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.8px;

    cursor: pointer;

    transition:
        transform 0.12s ease,
        opacity 0.12s ease;
}

.action-button:active {
    transform: scale(0.98);
}

.action-button:disabled {
    background:
        rgba(
            255,
            159,
            10,
            0.12
        );

    color:
        rgba(
            255,
            159,
            10,
            0.55
        );

    cursor: default;
}


/* ============================================================
   STATUS CARD
   ============================================================ */

.status-card {
    width: 100%;

    padding: 18px;

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}


/* ============================================================
   CONNECTION BUTTON
   ============================================================ */

.connection-button {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0;

    border: none;

    background: transparent;

    color: white;

    text-align: left;

    cursor: pointer;
}

.connection-button:disabled {
    cursor: default;
}

.connection-left {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.connection-icon {
    width: 28px;

    flex-shrink: 0;

    font-size: 22px;
}

.connection-title {
    font-size: 17px;

    font-weight: 600;

    color: #ff9f0a;
}

.connection-subtitle {
    margin-top: 4px;

    font-size: 13px;

    color:
        rgba(
            255,
            255,
            255,
            0.55
        );
}

.chevron {
    font-size: 28px;

    line-height: 1;

    color:
        rgba(
            255,
            255,
            255,
            0.55
        );
}


/* ============================================================
   CONNECTED INFORMATION
   ============================================================ */

.hidden {
    display: none !important;
}

.divider {
    height: 1px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    margin:
        14px
        0;
}

.info-row {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 48px;
}

.folder-row {
    border: none;

    padding: 0;

    background: transparent;

    color: white;

    text-align: left;

    cursor: pointer;
}

.info-icon {
    width: 28px;

    flex-shrink: 0;

    font-size: 18px;

    text-align: center;
}

.info-text {
    min-width: 0;
}

.info-label {
    margin-bottom: 3px;

    font-size: 13px;

    font-weight: 500;

    color:
        rgba(
            255,
            255,
            255,
            0.45
        );
}

.info-value {
    font-size: 16px;

    font-weight: 600;

    color: white;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ============================================================
   ALERT
   ============================================================ */

.alert-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(
            0,
            0,
            0,
            0.55
        );

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}

.alert-box {
    width: 100%;

    max-width: 360px;

    padding: 24px;

    border-radius: 20px;

    background: #24211e;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.1
        );

    box-shadow:
        0 20px 50px
        rgba(
            0,
            0,
            0,
            0.45
        );
}

.alert-box h3 {
    margin:
        0
        0
        10px;

    font-size: 20px;
}

.alert-box p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    line-height: 1.5;

    white-space: pre-line;
}

.alert-box button {
    width: 100%;

    height: 44px;

    margin-top: 20px;

    border: none;

    border-radius: 11px;

    background: #ff9f0a;

    color: #111;

    font-weight: 700;

    cursor: pointer;
}


/* ============================================================
   SMALL IPHONE
   ============================================================ */

@media (max-width: 380px) {

    .header {
        padding-top: 20px;
    }

    .content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tool-card,
    .status-card {
        padding: 16px;
    }

    .tool-info h2 {
        font-size: 19px;
    }

    .panda-logo {
        height: 90px;
    }

    .panda-logo img {
        height: 80px;
        max-width: 200px;
    }
}


/* ============================================================
   IPAD / DESKTOP
   ============================================================ */

@media (min-width: 768px) {

    .header {
        padding-top: 30px;
    }

    .panda-logo {
        height: 110px;
    }

    .panda-logo img {
        height: 100px;
        max-width: 240px;
    }

    .content {
        padding-top: 25px;
    }
}