* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    line-height: 1.6; 
    font-family: Outfit;
    font-weight: 500; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    background-color: white;
    margin: 10px;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header {
    position: fixed;       /* Keeps it anchored */
    top: 0;                /* Sticks to the top */
    left: 0;
    width: 100%;           /* Full-width */
    background-color: white;
    padding: 15px 20px;
    z-index: 1000;         /* Ensures it stays above content */
}

.website-title {
  font-size: 1.3rem;
  color: rgb(255, 18, 93);
  font-weight: bold;
  align-self: flex-start;
  padding-left: 10px;
}

.content-container {
    background-color: white;
    display: grid;
    gap: 10px;
    grid-template-columns: 200px 200px 200px 300px;
    grid-template-rows: 150px 150px 150px;
    grid-template-areas:
    "tab-section tab-section tab-section qrcode-section"
    "input-section input-section input-section qrcode-section"
    "input-section input-section input-section qrcode-actions-section"

}

.tab-section {
    background-color: white;
}

.tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

/* TAB LAYOUT: icon left, text right */
.tab {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.tab span {
    font-size: 1.1rem;
    font-weight: 600;
}

.tab.active {
    color: rgb(255, 18, 93);
}

.tab-description {
    font-size: 1rem;
    margin-top: 35px;
    text-align: center;
    font-weight: 500;
    width: 100%;
}

.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-field {
    width: 90%;
    height: 90%;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    font-size: 1.1rem;
    font-family: Outfit;
    resize: none;
    outline: none;
    transition: 0.2s ease;
}

.qrcode-section {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
======================================== */

/* Tablets and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
        "tab-section"
        "input-section"
        "qrcode-section"
        "qrcode-actions-section";
        gap: 15px;
        padding: 10px;
    }

    .tab-description {
        margin-top: 20px;
        font-size: 0.95rem;
    }

    .qrcode-section {
        min-height: 300px;
    }
}

/* Mobile landscape and tablets portrait (max-width: 768px) */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .website-title {
        font-size: 1.1rem;
        padding-left: 5px;
    }

    .app-container {
        margin: 5px;
    }

    .content-container {
        gap: 10px;
        padding: 5px;
    }

    .tabs {
        flex-wrap: wrap;
        padding: 15px 10px;
        gap: 15px;
    }

    .tab {
        gap: 8px;
    }

    .tab span {
        font-size: 1rem;
    }

    .tab svg {
        width: 20px;
        height: 20px;
    }

    .tab-description {
        font-size: 0.9rem;
        margin-top: 15px;
        padding: 0 10px;
    }

    .input-field {
        font-size: 1rem;
        padding: 15px;
        border-radius: 12px;
    }

    .qrcode-section {
        min-height: 280px;
        padding: 15px;
    }
}

/* Mobile portrait (max-width: 480px) */
@media (max-width: 480px) {
    body {
        overflow-y: auto;
    }

    .app-container {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 60px;
    }

    .header {
        padding: 10px;
    }

    .website-title {
        font-size: 1rem;
        text-align: center;
        padding-left: 0;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }

    .tab {
        justify-content: center;
        padding: 8px;
    }

    .tab span {
        font-size: 0.9rem;
    }

    .tab svg {
        width: 18px;
        height: 18px;
    }

    .tab-description {
        font-size: 0.85rem;
        margin-top: 10px;
        padding: 0 5px;
        line-height: 1.4;
    }

    .input-section {
        min-height: 200px;
    }

    .input-field {
        font-size: 0.95rem;
        padding: 12px;
        border-radius: 10px;
        width: 95%;
        height: 95%;
    }

    .qrcode-section {
        min-height: 250px;
        padding: 10px;
    }
}