/* =========================================================
PRASUN AI
Responsive Styles
========================================================= */

/* =========================================================
TABLET
========================================================= */

@media (max-width: 900px) {
    :root {
        --sidebar-width: 260px;
    }

    .message-content {
        max-width: 82%;
    }
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 700px) {
    body {
        overflow: hidden;
    }

    /* Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(300px, 86vw);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-close {
        display: flex;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Main */
    .main {
        width: 100%;
    }

    /* Topbar */
    .topbar {
        height: 54px;
        padding: 0 9px;
    }

    .menu-button {
        display: flex;
        margin-right: 2px;
    }

    .model-selector {
        font-size: 14px;
    }

    .topbar-actions {
        margin-left: auto;
    }

    /* Welcome */
    .welcome-screen {
        width: calc(100% - 28px);
        padding: 5vh 8px 170px;
    }

    .welcome-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
        border-radius: 14px;
        font-size: 23px;
    }

    .welcome-screen h1 {
        font-size: 28px;
        letter-spacing: -0.9px;
    }

    .welcome-screen > p {
        font-size: 14px;
        line-height: 1.55;
    }

    /* Suggestions */
    .suggestions {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .suggestion-card {
        min-height: auto;
        padding: 13px;
    }

    /* Messages */
    .messages {
        width: calc(100% - 24px);
        padding: 20px 0 145px;
    }

    .message {
        margin-bottom: 22px;
    }

    .message-content {
        max-width: 88%;
        font-size: 14px;
    }

    /* Composer & Attachments */
    .composer-wrapper {
        padding: 7px 8px 12px;
    }

    .attachment-preview {
        width: 100%;
    }

    .composer {
        width: 100%;
        border-radius: 17px;
    }

    .composer textarea {
        font-size: 14px;
    }

    .composer-option span {
        display: none;
    }

    .composer-disclaimer {
        font-size: 9px;
    }
}

/* =========================================================
SMALL PHONES
========================================================= */

@media (max-width: 400px) {
    .welcome-screen h1 {
        font-size: 25px;
    }

    .welcome-screen > p {
        font-size: 13px;
    }

    .suggestion-card {
        font-size: 12px;
    }

    .model-badge {
        display: none;
    }
}
