/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================
   BODY
========================================= */

body {

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7fa;

    color: #111827;

}


/* =========================================
   MAIN APP
========================================= */

.app {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px 20px;

}


/* =========================================
   HEADER
========================================= */

.header {

    text-align: center;

}


.header h1 {

    font-size: clamp(20px,
            5vw,
            28px);

    font-weight: 800;

    letter-spacing: 2px;

    color: #111827;

}


.header p {

    margin-top: 8px;

    font-size: 15px;

    color: #6b7280;

}


/* =========================================
   FAN SECTION
========================================= */

.fan-section {

    margin-top: 45px;

    display: flex;

    flex-direction: column;

    align-items: center;

}


.fan-section h2 {

    font-size: 28px;

    font-weight: 800;

    letter-spacing: 4px;

    color: #111827;

}


/* =========================================
   POWER BUTTON
========================================= */

.power-button {

    width: min(190px,
            52vw);

    aspect-ratio: 1 / 1;

    margin-top: 35px;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


/* Hover */

.power-button:hover {

    transform: scale(1.03);

}


/* Press */

.power-button:active {

    transform: scale(0.95);

}


/* =========================================
   SVG POWER ICON
========================================= */

.power-icon {

    width: 80px;

    height: 80px;

    color: #2563eb;

    transition:
        color 0.25s ease;

}


/* =========================================
   POWER BUTTON - ON
========================================= */

.power-button.on {

    background: #2563eb;

    box-shadow:
        0 15px 40px rgba(37, 99, 235, 0.35);

}


.power-button.on .power-icon {

    color: #ffffff;

}


/* =========================================
   FAN STATUS
========================================= */

.fan-status {

    margin-top: 32px;

    font-size: 24px;

    font-weight: 800;

    color: #4b5563;

    transition:
        color 0.25s ease;

}


.fan-status.on {

    color: #2563eb;

}


/* =========================================
   DEVICE STATUS
========================================= */

.device-status {

    margin-top: 40px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 10px 18px;

    background: #ffffff;

    border-radius: 30px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);

    font-size: 14px;

    font-weight: 600;

    color: #374151;

}


/* =========================================
   STATUS DOT
========================================= */

.status-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: #22c55e;

}


.status-dot.offline {

    background: #9ca3af;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .app {

        padding:
            25px 15px;

    }


    .fan-section {

        margin-top: 40px;

    }


    .power-icon {

        width: 70px;

        height: 70px;

    }


    .fan-status {

        font-size: 22px;

    }

}