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

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #08090d;
    color: #E2E870;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.app-wrapper {
    background: rgba(16,20,29,0.05);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    width: 75%;
}

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 10px;
    text-align: center;
}

h1 {
    font-size: 2rem; 
    color: #00ffa3;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 0.9rem;
}

.status-bar {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 10px;
    text-align: center;

}

.chat-window {
    background: #0b0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    padding: 0.1rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    margin-bottom: 15px;
    flex-direction: column;
    overflow-y: auto;
    height: 300px;
    scrollbar-color: rgba(0, 255, 163, 0.3);
    
}

.msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    max-width: 82%;
    line-height: 1.5;

}

.msg.user {
    align-self: flex-end;
    background: rgba(0, 255, 163, 0.12);
    border: 1px solid rgba(0, 255, 163, 0.3);
    color: #FFF;
    padding: 2px 5px;
}

.msg.ai {
    align-self: flex-start;
    background: #141923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.msg.system {
    align-self: center;
    background: transparent;
    color: #64748B;
    font-size: 0.8rem;
    border: 1px dashed rgba(61, 51, 51, 0.08);
    line-height: 15px;
}

.input-group {
    display: flex;
    background: #0b0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFF;
    padding: 10px;
    border-radius: 7px;
    font-size: 0.75rem;
}

input[type="text"] {
    flex: 1;
    width: 80%;
    background: #0b0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFF;
    border-radius: 12px;
    font-size: 0.75rem;
    padding: 5px 15px;

}

input[type="text"]:focus {
    outline: none;
   
    border: 2px solid #00ffa3 ;
}

button.primarybtn {
    background: #00ffa3;
    color: #000;
    border: none;
    padding: 2px 19px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-left: 1rem;
    align-items: center;
    box-shadow: 4px 2px black;
}

button.primarybtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

button.primarybtn:hover {
    opacity: 0.8;
    font-weight: 800;
}

.answer-panel {
    background: #0e121a;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-top: 1rem;
}

.answer-panel h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #E2E870;
}

.resultoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 78vw;
    height: 97vh;
    background: rgba(4,6,10,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.resultoverlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;

}

.resultcard {
    background: #0f141d;
    border: 1px solid #00ffa3;
    box-shadow: 0 0 35px rgba(0, 255, 163, 0.3);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.resultcard h2 {
    color: #c5c6c7;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0;}
    to { transform: scale(1); opacity: 1;}
}