/* static/css/base.css */
div.inner-content {
    min-height: 45rem;
    margin-top: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

/* Chat window style*/
#chat-container {
    position: fixed;
    bottom: 0px;
    right: 0px;
}

#unfoldChatButton {
    position: fixed;
    bottom: 10px;
    right: 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    padding: 15px;
    margin: 15px;
    cursor: pointer;
    width: 100px;
}

.chat-window {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 600px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.chat-window.folded {
    transform: translateY(100%);
    max-height: 0;
    overflow: hidden;
}

.chat-window.unfolded {
    transform: translateY(0);
    max-height: 520px;
    overflow: hidden;
}

#chat-content {
    max-height: 400px;
    min-height: 80px;
    padding: 15px;
    margin-left: 10px;
    margin-right: 10px;
    overflow: auto;
    border-bottom: 1px solid #eee;
}

#chatWindow {
    border-radius: 10px 0 0 0;
    transition: transform 0.3s ease-in-out;
}

#chat-prompt {
    margin-left: 15px;
    margin-right: 10px;
    padding: 10px 0;
}

#submitBtn {
    margin-right: 15px;
    margin-left: 10px;
    padding: 10px;
}

#toggleChatButton {
    cursor: pointer;
    margin: 0 0 0 5px;
}

#message-container-ob {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.form-control {
    flex: 1;
    margin-right: 10px;
    border-radius: 25px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
}

.btn-primary {
    margin-left: 5px;
    border-radius: 25px;
    padding: 10px 20px;
}

.chat-message-right {
    border:1px solid #e0e0e0;
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    margin: 10px 10px 10px 20%;
    padding: 12px 20px;
    display: flex;
    flex-direction: row-reverse;
    width: fit-content;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-message-time-right {
    margin-right: 5px;
    padding-right: 15px;
    display: flex;
    flex-direction: row-reverse;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-message-time-left {
    margin-left: 5px;
    padding-left: 15px;
    display: flex;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-message-left{
    border:1px solid #f0f0f0;
    background-color: #f8f9fa;
    border-radius: 20px;
    margin: 10px 20% 10px 10px;
    padding: 12px 20px;
    display: flex;
    width: fit-content;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* revision style */
del {
    color: red;
    text-decoration: line-through;
}

ins {
    color: green;
    text-decoration: none;
    background-color: #e6ffe6;
    padding: 2px 4px;
    border-radius: 3px;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

._revision {
    position: relative;
}

/* toolbar style*/
#toolbar {
    border:1px solid #ccc;
    background-color:white;
    border-radius: 15px;
    padding:10px;
    -webkit-box-shadow:0 1px 3px rgba(0,0,0,.4);
    -moz-box-shadow:0 1px 3px rgba(0,0,0,.4);
    box-shadow:0 1px 3px rgba(0,0,0,.4);
    position:absolute;
    top:0;
    left:0;
    display: none;
    cursor: pointer;
}


/* style filter in the task list page */
form > p {
    display: inline;
}

form > input {
    display: inline;
}

p.person_mgs {
    border:1px solid #f7f7f7;
    background-color:#f0f0f0;
    border-radius: 15px;
    padding: 15px;
}

/* Lexical Issues Style*/
.lexical-container {
    display: flex;
    height: 500px;
    gap: 20px;
    margin-top: 20px;
}

.column {
    padding: 10px;
    box-sizing: border-box;
}

#column1 {
    flex: 0 0 70%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#column1 div {
    border: 1px solid #e7e7e7;
    border-radius: 5px;
}

#column2 {
    flex: 0 0 30%;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.column div {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    box-sizing: border-box;
}

.column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.column ul li {
    cursor: pointer;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.column ul li:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.selected {
    background-color: #e6f2ff !important;
    border-color: #007bff !important;
    font-weight: 500;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* .shadow-text {
    color: #ffffff;
    font-size: 1.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
} */

/* Responsive improvements */
@media (max-width: 768px) {
    div.inner-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .chat-window {
        width: 100%;
        height: 100%;
    }
    
    .lexical-container {
        flex-direction: column;
        height: auto;
    }
    
    #column1, #column2 {
        flex: 0 0 auto;
    }
    
    .chat-message-right, .chat-message-left {
        max-width: 90%;
        margin: 10px;
    }
}