/* ===== Body & page layout ===== */
body {
    margin: 0;
    height: 100vh;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: row;           
    background-color: #fff;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 220px;                   
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;        /* Center menu vertically */
    align-items: flex-start;
}

/* Logo stays at top-left, fixed */
.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    color: black;
    position: fixed;
    top: 24px;
    left: 32px;
    margin-bottom: 20px;
    z-index: 1000;
}

/* ===== Menu ===== */
.side-menu {
    width: 100%;
    margin-top: 80px;               /* Push menu below logo */
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Sidebar menu items ===== */
.side-menu li {
    padding: 8px 12px;
    cursor: pointer;
    color: black;                  /* Text black */
    font-weight: 500;
    border-radius: 8px;            /* Rounded corners */
    margin-bottom: 10px;           /* Space between items */
    background-color: #fff;         /* White background */
    transition: background-color 0.2s;
}

/* Hover effect */
.side-menu li:hover {
    background-color: #f0f0f0;     /* Light grey on hover */
}


/* ===== Main content ===== */
.main-content {
    flex: 1;                        
    display: flex;
    justify-content: center;        /* Horizontally center */
    align-items: center;            /* Vertically center */
    padding: 30px;
    box-sizing: border-box;
}

.center {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;

    margin-left: -120px; /* ⬅ nudges chat left */
}


/* ===== Model response area ===== */
pre#answer {
    background: #fff;               /* White background */
    padding: 1rem;
    white-space: pre-wrap;
    width: 100%;
    border-radius: 8px;
    border: 2px solid black;        /* Black border */
    box-sizing: border-box;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-wrap: break-word;

    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== Input wrapper ===== */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

.input-wrapper textarea {
    background-color: #fff;         /* White background */
    width: 100%;
    min-height: 50px;
    padding-left: 16px;
    padding-top: 12px;
    padding-bottom: 64px;  
    padding-right: 64px;   
    font-size: 16px;
    border: 1px solid black;       /* Black border */
    border-radius: 16px;
    resize: none;
    box-sizing: border-box;
    line-height: 1.4;
    overflow-y: hidden;
    transition: height 0.1s ease;

    scrollbar-width: none;       
    -ms-overflow-style: none;    
}

.input-wrapper textarea::-webkit-scrollbar {
    display: none;               
}

/* ===== Button styling ===== */
.input-wrapper button {
    position: absolute;
    bottom: 12px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: black;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper button:hover {
    background-color: #4a6b84;
}

.input-wrapper button:focus {
    background-color: #3d566a;
}
