:root{
    --bg:#ffffff;
    --card:#f5f5f5;
    --muted:#6b7280;
    --text:#000000;
    --danger:#8a0202;
    --border:#d1d5db;
    --primary-color:#000000;
    --secondary-color:#374151;
}

*{box-sizing:border-box}

body{
    margin:0;
    padding:0;
    font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background:#ffffff;
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
}

.container{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    background:#ffffff;
}

.chat-area{
    flex:1;
    overflow-y:auto;
    padding:10px;
    padding-bottom:220px;
    background:#ffffff;
}

.chat-msg{
    margin:0 auto 16px;
    padding:12px 16px;
    border-radius:12px;
    background:#f3f4f6;
    border:1px solid var(--border);
}

.msg-header{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
}

.msg-role{
    font-size:11px;
    text-transform:uppercase;
    color:var(--muted);
    font-weight:600;
    letter-spacing:0.05em;
}

.msg-content{
    line-height:1.6;
    font-size:14px;
    color:#000000;
}

.streaming-cursor{
    display:inline-block;
    width:8px;
    height:16px;
    background:#000000;
    margin-left:2px;
    animation:blink 1s infinite;
}

@keyframes blink{
    0%,49%{opacity:1}
    50%,100%{opacity:0}
}

.input-container{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#ffffff;
    padding:10px;
    z-index:100;
}

.input-wrapper{
    margin:0 auto;
    background:#f5f5f5;
    border:1px solid var(--border);
    border-radius:16px;
    padding:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

textarea{
    width:100%;
    background:#ffffff;
    color:#000000;
    border:1px solid var(--border);
    border-radius:10px;
    padding:12px;
    outline:none;
    min-height:60px;
    max-height:200px;
    font-family:inherit;
    font-size:14px;
    resize:vertical;
}

textarea:focus{
    border-color:#000000;
}

.btn{
    appearance:none;
    border:1px solid var(--border);
    background:#ffffff;
    color:#000000;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    transition:.15s ease;
    font-family:inherit;
    font-size:14px;
    font-weight:500;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}

.btn:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.btn-primary{
    background:#111;
    border-color:#000000;
    color:#ffffff;
    font-weight:600;
}

.btn-danger{
    background:var(--danger);
    border-color:#7f1d1d;
    color:#ffffff;
}

.btn.recording{
    background:var(--danger);
    color:#ffffff;
}

.btn-icon{
    margin-right:8px;
    font-size:16px;
}

.btn-label{
    display:inline-block;
}

.chat-controls{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    background:#ffffff;
}

.chat-controls::-webkit-scrollbar{
    display:none;
}

.chat-controls > *{
    flex:0 0 auto;
}

.hidden{
    display:none;
}

.tts-controls{
    position:fixed;
    right:24px;
    bottom:140px;
    z-index:200;
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    background:#f5f5f5;
    border:1px solid var(--border);
    border-radius:999px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    font-size:12px;
}

.tts-controls button{
    border:none;
    background:#ffffff;
    color:#000000;
    padding:4px 10px;
    border-radius:999px;
    cursor:pointer;
    font-size:12px;
}

.tts-controls button:hover{
    background:#e5e7eb;
}

.tts-status{
    color:var(--muted);
    font-size:11px;
    white-space:nowrap;
}

.tts-status.loading::before{
    content:"●";
    margin-right:6px;
    font-size:9px;
    animation:tts-pulse 1s infinite;
}

@keyframes tts-pulse{
    0%,100%{opacity:0.3}
    50%{opacity:1}
}

.Language,
select{
    padding:10px;
    font-size:1rem;
    border:1px solid var(--border);
    border-radius:10px;
    background:#ffffff;
    color:#000000;
}

@media (max-width:768px){
    .chat-area{
        padding:10px 10px 214px;
    }
    .input-container{
        padding:10px;
    }
    .input-wrapper{
        padding:10px 12px;
        border-radius:14px;
        box-shadow:0 6px 20px rgba(0,0,0,.12);
    }
    .chat-msg{
        margin-bottom:10px;
        padding:10px 12px;
    }
    .btn-label{
        display:none;
    }
    .btn-icon{
        margin-right:0;
    }
    .btn{
        padding:8px 10px;
        font-size:13px;
    }
    .tts-controls{
        right:12px;
        bottom:150px;
    }
}

@media (max-width:480px){
    .tts-controls{
        right:25px;
        left:auto;
        max-width:calc(100% - 32px);
        justify-content:center;
    }
}

.btn-icon i{
    pointer-events:none;
}

notice{
    background-color:#900;
    color:#ffffff;
    padding:10px;
}



@media (max-width: 768px) {
    .btn {
        padding: 6px 14px;
        font-size: 10px;
    }
}

textarea {
    padding: 8px;
}

.input-wrapper {
    border: 0;
}

.chat-controls {
    margin-top: 2px;
    background: none;
}


@media (max-width:768px){
    .input-wrapper{
        padding:0px;
    }
}

@media (max-width: 768px) {
    .tts-controls {
        right: 10px !important;
        bottom: 10px;
    }
}














.input-container {
    bottom: 20px;
}

@media (max-width: 768px) {
    .tts-controls {
        right: 10px !important;
        bottom: 30px;
    }
}





.powered-by {
    background-color: #FFF;
    color: black;
    display: block;
    position: fixed;
    bottom: 0;
    padding: 2px;
    font-size: 13px;
    width: 100%;
    margin-left: 8px;
}

.powered-by a {
    font-size: 16px;
	font-weight: bold;
	text-decoration:none;
	color: black;
}