 /*==================================================
 WorldtecAI
 Meerkat AI
 Production Version 6.0
 Part 1 of 8
==================================================*/

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

:root{

    --bg:#0b1220;
    --surface:#111827;
    --surface2:#1b3552;

    --primary:#2b7a3d;
    --primary-hover:#33964b;

    --text:#ffffff;
    --text2:#cbd5e1;

    --border:#223047;

    --shadow:
    0 10px 30px rgba(0,0,0,.35);

    --radius:18px;

    --header-height:70px;

}

html{

    height:100%;
    scroll-behavior:smooth;

}

body{

    height:100%;

    font-family:
    "Poppins",
    sans-serif;

    background:
    linear-gradient(
    180deg,
    #08111f,
    #0b1220);

    color:var(--text);

    overflow:hidden;

}

.chat-app{

    display:flex;

    flex-direction:column;

    width:100%;

    height:100vh;

}

/*=========================================
 Header
=========================================*/

.chat-header{

    height:var(--header-height);

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 18px;

    background:
    rgba(17,24,39,.92);

    backdrop-filter:blur(18px);

    border-bottom:
    1px solid var(--border);

    box-shadow:var(--shadow);

    z-index:50;

}

.header-left,
.header-right{

    display:flex;

    align-items:center;

    gap:14px;

}

.brand h1{

    font-size:20px;

    font-weight:700;

    color:#fff;

}

.brand span{

    display:block;

    margin-top:2px;

    font-size:12px;

    color:var(--text2);

}

.header-icon{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#1b3552;

    color:#fff;

    font-size:18px;

    cursor:pointer;

    transition:.25s;

}

.header-icon:hover{

    background:#26486e;

}

.credit-badge{

    padding:8px 14px;

    border-radius:999px;

    background:var(--primary);

    color:#fff;

    font-size:13px;

    font-weight:600;

}
/*=========================================
 Chat Area
=========================================*/

.chat-main{

    flex:1;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    padding:18px;

}

.chat-window{

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    padding-bottom:20px;

    scroll-behavior:smooth;

}

.chat-window::-webkit-scrollbar{

    width:8px;

}

.chat-window::-webkit-scrollbar-track{

    background:transparent;

}

.chat-window::-webkit-scrollbar-thumb{

    background:#2c3d55;

    border-radius:20px;

}

.assistant-message,
.user-message{

    display:flex;

    margin-bottom:18px;

    animation:fadeIn .25s ease;

}

.assistant-message{

    justify-content:flex-start;

    align-items:flex-start;

}

.user-message{

    justify-content:flex-end;

}

.avatar{

    width:42px;

    height:42px;

    min-width:42px;

    border-radius:50%;

    background:#1b3552;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:20px;

    margin-right:12px;

}

.bubble{

    max-width:80%;

    padding:14px 18px;

    border-radius:18px;

    line-height:1.6;

    word-wrap:break-word;

    box-shadow:var(--shadow);

}

.assistant-message .bubble{

    background:var(--surface2);

    color:#fff;

    border-top-left-radius:8px;

}

.user-message .bubble{

    background:var(--primary);

    color:#fff;

    border-top-right-radius:8px;

}

.bubble h3{

    font-size:15px;

    margin-bottom:8px;

}

.assistant-time{

    margin-left:54px;

    margin-top:6px;

    font-size:11px;

    color:var(--text2);

}
/*=========================================
 Chat Footer
=========================================*/

.chat-footer{

    padding:16px;

    background:rgba(17,24,39,.94);

    backdrop-filter:blur(18px);

    border-top:1px solid var(--border);

}

.chat-input-container{

    display:flex;

    align-items:flex-end;

    gap:10px;

    background:#162233;

    border:1px solid var(--border);

    border-radius:24px;

    padding:10px;

}

.chat-input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    color:#fff;

    font-family:"Poppins",sans-serif;

    font-size:15px;

    resize:none;

    overflow-y:auto;

    min-height:24px;

    max-height:160px;

    line-height:1.5;

}

.chat-input::placeholder{

    color:#9fb2c9;

}

.chat-action-button{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#1b3552;

    color:#fff;

    font-size:18px;

    cursor:pointer;

    transition:.25s;

}

.chat-action-button:hover{

    background:#29527b;

}

.send-button{

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:20px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.send-button:hover{

    background:var(--primary-hover);

    transform:scale(1.05);

}

.footer-note{

    margin-top:8px;

    text-align:center;

    font-size:11px;

    color:var(--text2);

}
/*=========================================
 Typing Indicator
=========================================*/

.typing{

    display:flex;

    align-items:center;

    gap:6px;

    min-height:24px;

}

.typing span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#ffffff;

    opacity:.45;

    animation:typingBounce 1.4s infinite ease-in-out;

}

.typing span:nth-child(2){

    animation-delay:.2s;

}

.typing span:nth-child(3){

    animation-delay:.4s;

}

/*=========================================
 Animations
=========================================*/

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes typingBounce{

    0%,
    60%,
    100%{

        transform:translateY(0);

        opacity:.35;

    }

    30%{

        transform:translateY(-6px);

        opacity:1;

    }

}

/*=========================================
 Links
=========================================*/

a{

    color:#67b7ff;

    text-decoration:none;

}

a:hover{

    text-decoration:underline;

}

strong{

    font-weight:600;

}

em{

    font-style:italic;

}
/*=========================================
 Mobile Optimisation
=========================================*/

@media (max-width:768px){

    .chat-header{

        padding:0 14px;

        height:64px;

    }

    .brand h1{

        font-size:17px;

    }

    .brand span{

        font-size:11px;

    }

    .credit-badge{

        padding:7px 12px;

        font-size:12px;

    }

    .chat-main{

        padding:12px;

    }

    .bubble{

        max-width:88%;

        padding:12px 14px;

        font-size:14px;

    }

    .avatar{

        width:36px;

        height:36px;

        min-width:36px;

        font-size:18px;

        margin-right:10px;

    }

    .chat-footer{

        padding:12px;

    }

    .chat-input-container{

        border-radius:22px;

        padding:8px;

        gap:8px;

    }

    .chat-action-button{

        width:40px;

        height:40px;

        font-size:17px;

    }

    .send-button{

        width:44px;

        height:44px;

        font-size:18px;

    }

}
/*=========================================
 Tablet & Desktop
=========================================*/

@media (min-width:769px){

    .chat-app{

        max-width:1400px;

        margin:0 auto;

    }

    .chat-main{

        padding:24px;

    }

    .chat-window{

        padding-right:10px;

    }

    .bubble{

        max-width:72%;

        font-size:15px;

    }

}

/*=========================================
 Focus States
=========================================*/

.chat-input:focus{

    outline:none;

}

.header-icon:focus,
.chat-action-button:focus,
.send-button:focus{

    outline:2px solid #4da3ff;

    outline-offset:2px;

}

/*=========================================
 Disabled Buttons
=========================================*/

button:disabled{

    opacity:.55;

    cursor:not-allowed;

    transform:none;

}

/*=========================================
 Selection
=========================================*/

::selection{

    background:#2b7a3d;

    color:#ffffff;

}

::-moz-selection{

    background:#2b7a3d;

    color:#ffffff;

}
/*=========================================
 Premium Effects
=========================================*/

.chat-header,
.chat-footer{

    -webkit-backdrop-filter:blur(18px);

    backdrop-filter:blur(18px);

}

.bubble{

    transition:
    transform .20s ease,
    box-shadow .20s ease;

}

.assistant-message .bubble:hover,
.user-message .bubble:hover{

    transform:translateY(-2px);

    box-shadow:
    0 12px 30px rgba(0,0,0,.40);

}

.chat-input-container{

    transition:
    border-color .25s ease,
    box-shadow .25s ease;

}

.chat-input-container:focus-within{

    border-color:#2b7a3d;

    box-shadow:
    0 0 0 3px rgba(43,122,61,.25);

}

/*=========================================
 Utilities
=========================================*/

.hidden{

    display:none !important;

}

.text-center{

    text-align:center;

}

.mt-10{

    margin-top:10px;

}

.mb-10{

    margin-bottom:10px;

}

.rounded{

    border-radius:var(--radius);

}

/*=========================================
 Image Messages (Future)
=========================================*/

.chat-image{

    max-width:100%;

    border-radius:16px;

    display:block;

    margin-top:8px;

    box-shadow:var(--shadow);

}

.chat-file{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px;

    border-radius:14px;

    background:#223047;

    margin-top:8px;

}
/*=========================================
 Launching Soon Badge
=========================================*/

.launching-soon{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 16px;

    border-radius:999px;

    background:#223047;

    color:#cbd5e1;

    font-size:12px;

    font-weight:600;

}

/*=========================================
 Loading Spinner
=========================================*/

.spinner{

    width:22px;

    height:22px;

    border:3px solid rgba(255,255,255,.15);

    border-top:3px solid #2b7a3d;

    border-radius:50%;

    animation:spin .9s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/*=========================================
 Smooth Transitions
=========================================*/

button,
textarea,
.credit-badge,
.bubble{

    transition:all .25s ease;

}

/*=========================================
 Prevent Overscroll
=========================================*/

html,
body{

    overscroll-behavior:none;

    -webkit-tap-highlight-color:transparent;

}

/*=========================================
 End of File
=========================================*/