@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

:root{
    --rc-brand-green:#34D399;
    --rc-brand-blue:#2563EB;
    --rc-text-color:#0F172A;
    --rc-muted-text:#64748B;
    --rc-border-color:#E2E8F0;
    --rc-page-bg:#F4EDF3;
    --rc-card-bg:#FFFFFF;
    --rc-bot-bubble:#FFFFFF;
    --rc-input-bg:#FFFFFF;
    --rc-placeholder:#94A3B8;
    --rc-icon-bg:#EEF2F7;
    --rc-user-bubble:#34D399;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    background:var(--rc-page-bg);
    color:var(--rc-text-color);
}

*{
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.material-symbols-rounded{
    display:flex !important;
    align-items:center;
    justify-content:center;
    user-select:none;
    cursor:pointer;
  
}
.adv-text {font-size:18px !important;}
.rc-chat-wrapper{
    width:100%;
    max-width:590px;
    min-height:100dvh;
    margin:0 auto;
    background:#F8FAFC;
    border-left:1px solid #E5E7EB;
    border-right:1px solid #E5E7EB;
    position:relative;
    overflow:hidden;
}

.rc-header{
    width:100%;
    height:66px;
    background:#FFFFFF;
    border-bottom:1px solid var(--rc-border-color);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    position:sticky;
    top:0;
    z-index:999;
}

.rc-logo-wrap{
    display:flex;
    align-items:center;
    gap:12px;
}

.rc-logo-icon{
    width:30px;
    height:30px;
    object-fit:contain;
}

.rc-logo-text{
    font-size:1.05rem;
    font-weight:700;
    line-height:1;
    color:#31D497;
}

.rc-logo-text span{
    color:#2563EB;
}

.rc-header-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.rc-header-btn{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50%;
    background:var(--rc-icon-bg);
    color:#64748B;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:21px;
    cursor:pointer;
    transition:0.2s;
}

.rc-header-btn:hover{
    background:#E2E8F0;
}

.rc-chat-container{
    width:100%;
    height:calc(100dvh - 146px);
    overflow-y:auto;
    overflow-x:hidden;
    padding:24px 14px 140px;
    background:#F8FAFC;
    scroll-behavior:smooth;
}

.rc-default-text{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-direction:column;
    text-align:center;
    padding:38px 20px 20px;
}

.rc-hero-logo{
    width:74px !important;
    height:74px !important;
    max-width:74px !important;
    max-height:74px !important;
    margin-bottom:18px;
}

.rc-default-text h1{
    font-size:1.62rem;
    font-weight:700;
    line-height:1.15;
    margin-bottom:6px;
    background:linear-gradient(90deg,#34D399 0%,#2563EB 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.rc-default-text p{
    margin:0 0 28px;
    font-size:0.78rem;
    font-weight:400;
    line-height:1.4;
    color:#64748B;
}

.rc-hero-points{
    max-width:205px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:17px;
}

.rc-hero-points div{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    color:#334155;
    font-size:0.8rem;
    font-weight:600;
    line-height:1.2;
    text-align:left;
}

.rc-hero-points span{
    width:24px;
    height:24px;
    min-width:24px;
    border-radius:50%;
    background:#DDFBEF;
    color:#22C98B;
    font-size:23px!important;
}

.rc-chat{
    width:100%;
    display:flex;
    animation:rcMessageAppear 0.22s ease;
    margin-bottom:14px;
}

@keyframes rcMessageAppear{
    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.rc-chat-outgoing{
    justify-content:flex-end;
}

.rc-chat-incoming{
    justify-content:flex-start;
}

.rc-chat-content{
    display:flex;
    width:100%;
}

.rc-chat-outgoing .rc-chat-content{
    justify-content:flex-end;
}

.rc-chat-incoming .rc-chat-content{
    justify-content:flex-start;
}

.rc-chat-details{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.rc-chat-outgoing .rc-chat-details{
    flex-direction:row-reverse;
}

.rc-chat-details img{
    width:33px;
    height:33px;
    min-width:30px;
    border-radius:50%;
    object-fit:cover;
    background:#FFFFFF;
}

.rc-chat-outgoing .rc-chat-details img{
    display:none;
}

.rc-chat-details p{
    max-width:340px;
    padding:9px 14px 18px;
    border-radius:10px;
    font-size:0.93rem;
    line-height:1.45;
    word-break:break-word;
    position:relative;
    animation:rcBubbleAppear 0.28s ease-out;
}

@keyframes rcBubbleAppear{
    from{
        opacity:0;
        transform:translateY(8px) scale(0.98);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.rc-chat-outgoing p{
    background:var(--rc-user-bubble);
    color:#FFFFFF;
    border-bottom-right-radius:3px;
    padding-right:60px;
    box-shadow:none;
}

.rc-chat-outgoing p::after{
    content:"✓✓";
    position:absolute;
    right:10px;
    bottom:5px;
    font-size:0.68rem;
    font-weight:500;
    color:rgba(255,255,255,0.78);
    letter-spacing:-1px;
}

.rc-chat-incoming p{
    background:var(--rc-bot-bubble);
    color:#111827;
    border-bottom-left-radius:3px;
    box-shadow:0 1px 2px rgba(0,0,0,0.05);
}

.rc-error{
    color:#EF4444 !important;
}

.rc-typing-animation{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    min-width:72px;
    min-height:52px;
    border-radius:22px;
    border-bottom-left-radius:8px;
    background:#FFFFFF;
}

.rc-typing-dot{
    width:10px;
    height:10px;
    margin:0 4px;
    border-radius:50%;
    background:#34D399;
    animation:rcTypingAnimation 1.4s infinite;
}

.rc-typing-dot:nth-child(1){
    animation-delay:0s;
}

.rc-typing-dot:nth-child(2){
    animation-delay:0.2s;
}

.rc-typing-dot:nth-child(3){
    animation-delay:0.4s;
}

@keyframes rcTypingAnimation{
    0%{
        transform:translateY(0);
        opacity:0.5;
    }

    50%{
        transform:translateY(-7px);
        opacity:1;
    }

    100%{
        transform:translateY(0);
        opacity:0.5;
    }
}

.rc-typing-container{
    position:fixed;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:100%;
    max-width:590px;
    background:#FFFFFF;
    border-top:1px solid var(--rc-border-color);
    padding:12px 12px calc(12px + env(safe-area-inset-bottom));
    z-index:9999;
}

.rc-typing-content{
    width:100%;
    display:flex;
    align-items:flex-end;
}

.rc-typing-textarea{
    width:100%;
    position:relative;
    display:flex;
}

.rc-typing-textarea textarea{
    width:100%;
    min-height:50px;
    height:50px;
    max-height:120px;
    resize:none;
    border:none;
    border-radius:28px;
    padding:13px 58px 13px 18px;
    background:#FFFFFF;
    color:#0F172A;
    outline:1px solid #DCE3EA;
    font-size:16px;
    line-height:1.4;
    overflow-y:auto;
    box-shadow:none;
    appearance:none;
    -webkit-appearance:none;
}

.rc-typing-textarea textarea::placeholder{
    color:#94A3B8;
}

.rc-typing-textarea textarea:focus{
    outline:1px solid #34D399;
}

textarea::-webkit-resizer{
    display:none;
}

textarea::-webkit-scrollbar{
    display:none;
}

#rc-send-btn{
    position:absolute;
    right:5px;
    bottom:5px;
    width:40px;
    height:40px;
    min-width:40px;
    border-radius:50%;
    background:linear-gradient(135deg,#34D399 0%,#2CC58E 100%);
    color:#FFFFFF;
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:24px;
    cursor:pointer;
    transition:0.2s;
}

#rc-send-btn:hover{
    transform:scale(1.05);
}

#rc-upload-btn,
#rc-file-input{
    display:none !important;
}

::-webkit-scrollbar{
    width:5px;
}

.rc-api-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:20px;
}

.rc-api-modal-card{
    width:100%;
    max-width:430px;
    background:#FFFFFF;
    border-radius:18px;
    padding:28px 30px;
    box-shadow:0 20px 60px rgba(15,23,42,0.18);
    position:relative;
    animation:rcModalAppear 0.22s ease;
}

.rc-d-none{
    display:none !important;
}

.rc-api-modal-close{
    position:absolute;
    top:12px;
    right:14px;
    border:none;
    background:#EEF2F7;
    color:#64748B;
    width:30px;
    height:30px;
    border-radius:50%;
    font-size:20px;
    cursor:pointer;
}

.rc-api-modal-card h3{
    font-size:1.28rem;
    margin-bottom:14px;
    color:#0F172A;
}

.rc-api-modal-card p,
.rc-api-modal-card li{
    font-size:0.95rem;
    color:#64748B;
    line-height:1.55;
}

.rc-api-modal-card p{
    margin:0 0 12px;
}

.rc-api-modal-card a{
    color:#2563EB;
    font-weight:700;
    text-decoration:none;
    overflow-wrap:anywhere;
}

.rc-api-modal-card a:hover{
    text-decoration:underline;
}

.rc-api-modal-card ul{
    margin:14px 0 14px 18px;
}

.rc-api-box,
.rc-api-modal-card pre{
    background:#F8FAFC;
    border:1px solid #E2E8F0;
    border-radius:12px;
    padding:12px;
    font-size:0.78rem;
    color:#0F172A;
    overflow:auto;
}

.rc-api-box{
    margin-top:14px;
    color:#2563EB;
    font-weight:600;
}

@keyframes rcModalAppear{
    from{
        opacity:0;
        transform:translateY(10px) scale(0.98);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@media screen and (max-width:700px){
    .rc-chat-wrapper{
        width:100%;
        max-width:100%;
        border:none;
    }

    .rc-chat-container{
        height:calc(100dvh - 145px);
        transition:padding 0.25s ease;
        padding:18px 10px 125px;
    }

    .rc-default-text{
        padding:38px 20px 20px;
    }

    .rc-chat-details p{
        max-width:78vw;
        font-size:0.93rem;
    }

    .rc-header{
        padding:0 12px;
    }

    .rc-logo-text{
        font-size:1rem;
    }

    .rc-typing-container{
        max-width:100%;
        padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .rc-typing-textarea textarea{
        min-height:48px;
        height:48px;
        max-height:96px;
        font-size:16px;
        padding:12px 54px 12px 16px;
    }

    #rc-send-btn{
        width:38px;
        height:38px;
        min-width:38px;
        right:5px;
        bottom:5px;
        font-size:23px;
    }
}

/* DARK MODE */

body.rc-dark-mode{
    --rc-text-color:#E5E7EB;
    --rc-muted-text:#94A3B8;
    --rc-border-color:#334155;
    --rc-page-bg:#020617;
    --rc-card-bg:#0F172A;
    --rc-bot-bubble:#1E293B;
    --rc-input-bg:#0F172A;
    --rc-placeholder:#64748B;
    --rc-icon-bg:#1E293B;
    --rc-user-bubble:#22C55E;

    background:#020617 !important;
    color:#E5E7EB !important;
}

body.rc-dark-mode .rc-chat-wrapper{
    background:#020617 !important;
    border-left:1px solid #334155 !important;
    border-right:1px solid #334155 !important;
}

body.rc-dark-mode .rc-header{
    background:#0F172A !important;
    border-bottom:1px solid #334155 !important;
}

body.rc-dark-mode .rc-header-btn{
    background:#1E293B !important;
    color:#CBD5E1 !important;
}

body.rc-dark-mode .rc-header-btn:hover{
    background:#334155 !important;
}

body.rc-dark-mode .rc-chat-container{
    background:#020617 !important;
}

body.rc-dark-mode .rc-default-text p{
    color:#CBD5E1 !important;
}

body.rc-dark-mode .rc-hero-points div{
    color:#E2E8F0 !important;
}

body.rc-dark-mode .rc-hero-points span{
    background:#1E293B !important;
    color:#4ADE80 !important;
}

body.rc-dark-mode .rc-chat-incoming p{
    background:#1E293B !important;
    color:#F1F5F9 !important;
    box-shadow:none !important;
}

body.rc-dark-mode .rc-chat-outgoing p{
    background:#22C55E !important;
    color:#FFFFFF !important;
}

body.rc-dark-mode .rc-typing-animation{
    background:#1E293B !important;
}

body.rc-dark-mode .rc-typing-container{
    background:#0F172A !important;
    border-top:1px solid #334155 !important;
}

body.rc-dark-mode .rc-typing-textarea textarea{
    background:#111827 !important;
    color:#F8FAFC !important;
    outline:1px solid #334155 !important;
}

body.rc-dark-mode .rc-typing-textarea textarea::placeholder{
    color:#64748B !important;
}

body.rc-dark-mode #rc-send-btn{
    background:linear-gradient(135deg,#22C55E 0%,#16A34A 100%) !important;
}

body.rc-dark-mode .rc-api-modal{
    background:rgba(2,6,23,0.72) !important;
}

body.rc-dark-mode .rc-api-modal-card{
    background:#0F172A !important;
    box-shadow:0 20px 60px rgba(0,0,0,0.45) !important;
}

body.rc-dark-mode .rc-api-modal-card h3{
    color:#F8FAFC !important;
}

body.rc-dark-mode .rc-api-modal-card p,
body.rc-dark-mode .rc-api-modal-card li{
    color:#CBD5E1 !important;
}

body.rc-dark-mode .rc-api-modal-card a{
    color:#93C5FD !important;
}

body.rc-dark-mode .rc-api-box,
body.rc-dark-mode .rc-api-modal-card pre{
    background:#020617 !important;
    border:1px solid #334155 !important;
    color:#93C5FD !important;
}

body.rc-dark-mode .rc-api-modal-close{
    background:#1E293B !important;
    color:#CBD5E1 !important;
}