/* Reset common elements for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100%;
    background-color: #eeeeee;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    overflow:hidden
}
#chatcontainer {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#chatdiv {
    background: white;
    margin: 5px;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    overflow: auto;
    border: 1px solid #CCCCCC;
    white-space: pre-wrap;
    flex: 1;
}
#chatdiv p {
    margin: 10px 0;
    font-weight: normal;
    white-space: pre-wrap;
}
#chatdiv h1 {
    font-size: 14px;
    font-weight: bold;
}

#operationdiv{
    display: flex;
    padding: 5px 0px 5px 0px;
    background-color: #ffffff;
    overflow-x: hidden;
}

#operationdiv #buttondiv, 
#operationdiv #voicebuttondiv {
    width: 100px;
    margin-left:5px;
    margin-right: 5px;
    height: 50px;
    padding:5px;
}



/* Other stuff section */
#otherstuff {
    background: white;
    margin: 5px;
    padding: 5px;
    font-size: 16px;
    overflow: auto;
    border: 1px solid #CCCCCC;
    flex: 1;
}

/* Links in otherstuff */
#otherstuff a {
    margin: 10px;
    padding: 10px;
}

.system_msg, .recordingmsg {
    margin: 10px 0;
    font-weight: bold;
    color: #666666;
    white-space: pre;
}

/* Fonts */
.defaultfont {
    font-size: 14px;
    font-weight: normal;
}

.smallfont {
    font-size: 12px;
    font-weight: normal;
}

/* Responsive images */
.img-responsive {
    max-width: 100%;
    height: auto;
}

#footer {
    display: flex;
    background-color: #ffffff;
    overflow-x: hidden;
    background-color: #ffffff;
}
.new-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.new-button:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
}
.modal-content p{
    margin: 10px 0;
    font-size: 16px;
}
.modal-content select, .modal-content textarea {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal-content .button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
}
.modal-content button {
    flex: 1;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.modal-content button.close {
    background-color: #e74c3c;
}
.modal-content button.close:hover {
    background-color: #c0392b;
}
.modal-content button:hover {
    background-color: #0056b3;
}
.thank-you-message {
    display: none;
}

#controlmsgdiv {
    font-size: 14px;
    width:100%;
    text-align:center;
    display:flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}