:root{
    --bg:#050816;
    --sidebar:#0b1020;
    --glass:rgba(255,255,255,0.05);
    --border:rgba(255,255,255,0.08);
    --accent:#8b5cf6;
    --accent2:#6366f1;
    --text:#ffffff;
    --muted:#9ca3af;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
}

/* Splash Screen */

#splash-screen{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(
    135deg,
    #050816,
    #0f172a,
    #111827
    );
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
    animation:hideSplash 1s ease 3s forwards;
}

.taurus-logo{
    text-align:center;
}
.bull-icon{

    width:160px;
    height:160px;

    display:flex;
    justify-content:center;
    align-items:center;

}

.bull-icon img{

    width:100%;
    height:100%;
    object-fit:contain;

    filter:
        drop-shadow(0 0 15px rgba(139,92,246,.45))
        drop-shadow(0 0 45px rgba(99,102,241,.35));

    animation:
        pulse 2s infinite,
        rotateGlow 6s linear infinite;

}
@keyframes rotateGlow{

    0%{

        transform:rotate(0deg) scale(1);

    }

    50%{

        transform:rotate(5deg) scale(1.08);

    }

    100%{

        transform:rotate(0deg) scale(1);

    }

}
.taurus-logo h1{

    font-size:82px;

    letter-spacing:10px;

    font-weight:800;

}

.taurus-logo p{
    color:#aaa;
    margin-top:10px;
}

@keyframes pulse{
    50%{
        transform:scale(1.1);
    }
}

@keyframes hideSplash{
    to{
        opacity:0;
        visibility:hidden;
        pointer-events:none;
    }
}

/* Background */

.stars{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.15), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(99,102,241,.15), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255,215,0,.08), transparent 40%);
}

/* Layout */

.app{
    display:flex;
    min-height:100vh;
}

/* Sidebar */

.sidebar{
    width:280px;
    background:rgba(11,16,32,.9);
    border-right:1px solid var(--border);
    display:flex;
    flex-direction:column;
    backdrop-filter:blur(20px);
}

.sidebar-top{
    padding:20px;
}

.brand{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:25px;
}

.brand .sidebar-logo{

    width:72px;
    height:72px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    backdrop-filter:blur(20px);

    box-shadow:
        0 0 25px rgba(99,102,241,.18);

}

.brand .sidebar-logo img{

    width:52px;
    height:52px;
    object-fit:contain;

}

.brand h2{

    font-size:30px;

    font-weight:700;

    letter-spacing:2px;

}

.brand span{
    color:var(--muted);
    font-size:14px;
}
#newChatBtn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    color:white;
    font-weight:600;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
}

.history-section{
    flex:1;
    overflow-y:auto;
    padding:20px;
}

.history-section h3{
    margin-bottom:15px;
}

.history-item{
    padding:12px;
    margin-bottom:10px;
    border-radius:12px;
    background:var(--glass);
    border:1px solid var(--border);
    cursor:pointer;
    transition:.3s;
}

.history-item:hover{
    background:rgba(255,255,255,.08);
}

.sidebar-footer{
    padding:20px;
    border-top:1px solid var(--border);
}

.user-card{
    display:flex;
    align-items:center;
    gap:12px;
}

.avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--accent);
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Main */

.main{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* Welcome Screen */

#welcomeScreen{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero{
    text-align:center;
    max-width:1000px;
}

.hero-logo{

    width:170px;
    height:170px;

    margin:0 auto 25px;

    display:flex;
    justify-content:center;
    align-items:center;

}

.hero-logo img{

    width:100%;
    height:100%;
    object-fit:contain;

    filter:
        drop-shadow(0 0 20px rgba(139,92,246,.45))
        drop-shadow(0 0 55px rgba(99,102,241,.30));

    animation:
        pulse 2s infinite,
        rotateGlow 6s linear infinite;

}

.hero h1{
    font-size:90px;
    letter-spacing:8px;
}

.hero p{
    color:var(--muted);
    margin-top:10px;
    font-size:18px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:40px;
}

.card{
    padding:28px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
    border-radius:22px;
    transition:.35s;
}

.card:hover{

    transform:translateY(-8px);

    border-color:#8b5cf6;

    box-shadow:0 0 30px rgba(139,92,246,.18);

}


.card-icon{
    font-size:40px;
    margin-bottom:12px;
}

/* Chat Area */

#chatArea{
    flex:1;
    display:none;
    overflow-y:auto;
    padding:25px;
}

#messages{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.message{
    max-width:75%;
    padding:15px 20px;
    border-radius:18px;
    line-height:1.6;
    word-wrap:break-word;
}

.user-message{

    align-self:flex-end;

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #6366f1
    );

    border-radius:18px;

}
.bot-message{

    align-self:flex-start;

    background:#141827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:18px 22px;

}
/* Input */

.input-container{
    padding:20px;
}

.chat-box{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    border-radius:24px;

}
.chat-box textarea{
    flex:1;
    border:none;
    outline:none;
    resize:none;
    background:none;
    color:white;
    font-size:16px;
    padding:10px;
}

.chat-box button{

    width:58px;

    height:58px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #6366f1
    );

    transition:.3s;

}

.chat-box button:hover{

    transform:scale(1.05);

}

/* Markdown */

pre{
    background:#0f172a;
    padding:15px;
    border-radius:12px;
    overflow:auto;
}

code{
    font-family:Consolas,monospace;
}

/* Scrollbar */

::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:#444;
    border-radius:20px;
}

/* Mobile */

@media screen and (max-width:900px){

body{
    overflow-x:hidden;
}

.app{
    flex-direction:column;
    min-height:100vh;
}

.sidebar{
    display:none;
}

.main{
    width:100%;
}

#welcomeScreen{
    padding:25px;
}

.hero{
    width:100%;
}

.hero-logo{
    width:120px;
    height:120px;
}

.hero h1{
    font-size:42px;
    letter-spacing:2px;
}

.hero p{
    font-size:16px;
}

.cards{
    grid-template-columns:1fr;
    gap:15px;
}

.card{
    padding:20px;
}

#chatArea{
    padding:12px;
}

.message{
    max-width:100%;
}

.input-container{
    padding:10px;
    position:sticky;
    bottom:0;
    background:var(--bg);
}

.chat-box{
    width:100%;
}

.chat-box textarea{
    font-size:16px;
    min-height:45px;
}

.chat-box button{
    width:52px;
    height:52px;
    flex-shrink:0;
}

.modal-content{
    width:95%;
    padding:20px;
}

.modal-header h2{
    font-size:26px;
}

}
.about-card{

    display:flex;

    gap:14px;

    padding:18px;

    border-radius:18px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

}

.about-icon{

    width:48px;

    height:48px;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #6366f1
    );

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    font-size:20px;

    flex-shrink:0;

}

.about-info h4{

    font-size:15px;

    font-weight:700;

    margin-bottom:8px;

}

.about-info p{

    color:#d1d5db;

    font-size:13px;

    line-height:1.6;

    margin-bottom:8px;

}

.about-info .collab{

    display:block;

    color:#8b5cf6;

    font-size:12px;

    line-height:1.5;

    margin-bottom:10px;

}

.version{
    margin-top:12px;
    width:100%;
    min-height:42px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:10px;

    color:#94a3b8;
    font-size:13px;
    font-weight:600;

    white-space:nowrap;   /* Keep text on one line */
    overflow:hidden;
    text-overflow:ellipsis;
}


.license{
    color:#94a3b8;
    font-size:10px;
    margin-top:4px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:6px;
    padding:3px 8px;
    width:max-content;
    background:rgba(255,255,255,0.03);
}
.MathJax{
    font-size: 1.15em !important;
}

mjx-container{
    margin: 15px 0 !important;
}

.bot-message{
    line-height: 1.8;
}

.bot-message h1,
.bot-message h2,
.bot-message h3{
    margin-top:20px;
    margin-bottom:10px;
}

.bot-message p{
    margin-bottom:10px;
}

/* =======================================
   Sidebar Information Card
======================================= */

.info-card{

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:18px;

    backdrop-filter:blur(18px);

}

.info-section{

    display:flex;

    gap:14px;

    align-items:flex-start;

}

.info-icon{

    width:44px;

    height:44px;

    border-radius:12px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #6366f1
    );

    color:white;

    font-size:18px;

    flex-shrink:0;

}

.info-content h4{

    font-size:15px;

    margin-bottom:4px;

    color:#ffffff;

}

.info-content p{

    font-size:14px;

    color:white;

    font-weight:600;

    margin-bottom:3px;

}

.info-content span{

    display:block;

    color:#cbd5e1;

    font-size:13px;

    margin-bottom:6px;

}

.info-content small{

    display:block;

    color:#8b5cf6;

    font-size:11px;

    line-height:1.5;

}

.divider{

    height:1px;

    background:rgba(255,255,255,.08);

    margin:18px 0;

}

.version{

    text-align:center;

    color:#94a3b8;

    font-size:11px;

    letter-spacing:1px;

}
/* Modal Background */

/* ===========================
   Developer Modal
=========================== */

/*=====================================================
ABOUT DEVELOPER CARD
======================================================*/

.about-card{
    display:flex;
    align-items:center;
    gap:15px;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    cursor:pointer;
    transition:.3s;
}

.about-card:hover{
    border-color:#8b5cf6;
    transform:translateY(-3px);
}

.about-icon{
    width:50px;
    height:50px;
    border-radius:14px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    color:white;
    background:linear-gradient(135deg,#8b5cf6,#6366f1);
}

.about-info h4{
    font-size:15px;
    margin-bottom:5px;
}

.about-info p{
    font-size:13px;
    color:#9ca3af;
}



/*=====================================================
MODAL
======================================================*/
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(5,8,22,.82);
    backdrop-filter:blur(14px);
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.modal-content{

    width:720px;

    max-width:94%;

    max-height:88vh;

    overflow-y:auto;

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:35px;

    position:relative;

    box-shadow:0 20px 80px rgba(0,0,0,.5);

}

.close-modal{

    position:absolute;

    top:18px;

    right:22px;

    font-size:28px;

    color:#9ca3af;

    cursor:pointer;

}

.close-modal:hover{

    color:white;

}



/*=====================================================
HEADER
======================================================*/

.modal-header{

    text-align:center;

    margin-bottom:30px;

}

.modal-icon{

    width:90px;

    height:90px;

    margin:auto;

    border-radius:22px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#8b5cf6,#6366f1);

    font-size:40px;

    color:white;

    margin-bottom:18px;

}

.modal-header h2{

    font-size:34px;

    margin-bottom:5px;

}

.modal-subtitle{

    color:#9ca3af;

    font-size:18px;

}



/*=====================================================
GRID
======================================================*/

.modal-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:18px;

    margin-top:25px;

}

@media(max-width:700px){

.modal-grid{

grid-template-columns:1fr;

}

}



/*=====================================================
INFO BOX
======================================================*/

.info-box{

    background:#181f31;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:18px;

}

.info-box h3{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:18px;

    margin-bottom:14px;

    color:white;

}

.info-box h3 i{

    color:#8b5cf6;

}

.info-box p{

    color:#cbd5e1;

    line-height:1.7;

    font-size:15px;

}

.info-box strong{

    color:white;

}



/*=====================================================
BUTTONS
======================================================*/

.modal-btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin-top:15px;

    padding:10px 18px;

    border-radius:10px;

    background:linear-gradient(135deg,#8b5cf6,#6366f1);

    color:white;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    transition:.3s;

}

.modal-btn:hover{

    transform:translateY(-2px);

}



/*=====================================================
FOOTER
======================================================*/

.modal-footer{

    margin-top:30px;

    text-align:center;

}

.version-box{

    display:inline-block;

    padding:12px 25px;

    border-radius:12px;

    background:#181f31;

    border:1px solid rgba(255,255,255,.08);

    color:#8b5cf6;

    font-weight:600;

}
@media screen and (max-width:480px){

.hero-logo{
    width:90px;
    height:90px;
}

.hero h1{
    font-size:34px;
}

.hero p{
    font-size:14px;
}

.card{
    padding:16px;
}

.chat-box{
    padding:8px;
}

.chat-box textarea{
    font-size:16px;
}

.chat-box button{
    width:46px;
    height:46px;
}

}
#sendBtn,
#stopBtn{

font-size:22px;
display:flex;
justify-content:center;
align-items:center;

}
/* ===========================
   Mobile Hamburger
=========================== */

#menuToggle{

display:none;

position:fixed;

top:18px;

left:18px;

width:48px;

height:48px;

border:none;

border-radius:14px;

background:#111827;

color:white;

font-size:22px;

cursor:pointer;

z-index:100001;

box-shadow:0 5px 20px rgba(0,0,0,.35);

}

#overlay{

display:none;

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.45);

backdrop-filter:blur(3px);

z-index:99998;

}

@media(max-width:900px){

#menuToggle{

display:flex;

justify-content:center;

align-items:center;

}

.sidebar{

display:flex;

position:fixed;

left:-300px;

top:0;

width:280px;

height:100vh;

transition:.35s;

z-index:100;

}

.sidebar.active{

left:0;

}

#overlay.active{

display:block;

}

.main{

width:100%;

}

}