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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #e2e2e22d;
    color: #000000;
}

.logo img {
    width: 250px;
    height: 74px;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -250px; /* Hide sidebar initially */
    transition: left 0.3s ease;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
    border-bottom: 1px solid #444;
}

.sidebar ul li.spacer {
    height: 50px; /* Adjust to match the height of the toggle button */
    border-bottom: none; /* No border for spacer */
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
}


/* Header, Main, and Footer areas
main, footer {
    margin-left: 0;
    padding: 20px;
    width: 100%;
    transition: margin-left 0.3s ease;
}
 */
footer {
    background-color: #f4f4f4;
    text-align: center;
}




/* Toggle Button Styling */
.menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: black; /* Default color when sidebar is hidden */
    z-index: 1;
}




/* Sidebar active state */
.sidebar.active {
    left: 0;
}

.logo.shifted, main.shifted, footer.shifted {
    margin-left: 250px; /* 사이드바 너비만큼 이동 */
    transition: margin-left 0.3s ease;
}

/* Toggle button color when sidebar is active */
.menu-toggle.active {
    color: white;
}





main {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto; 
    max-height: calc(100vh - 160px); 
}

/* 패널의 너비와 높이 제한 */
.left-panel, .right-panel {
    width: 45%;
    max-height: 80vh; /* 화면 높이의 80%로 제한 */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* 내용이 많을 경우 스크롤 추가 */
}

.menu-buttons {
    margin-bottom: 20px;
}

.menu-buttons button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    background-color: #0077b6;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.menu-buttons button:hover {
    background-color: #023e8a;
    transform: translateY(-2px);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* 채팅 박스 */
.chat-box {
    height: 300px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.right-panel h3 {
    margin-bottom: 10px;
}

/* 파일 업로드 스타일 */
input[type="file"].file-upload {
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

button.action-button {
    background-color: #ff6b6b;
    color: white;
    border: 1px solid black;
    padding: 8px 16px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button.action-button:hover {
    background-color: #d90429;
    transform: translateY(-2px);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #005f73;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

form input[type="text"] {
    width: calc(100% - 80px);
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button[type="submit"] {
    width: 60px;
}

/* 사용자 메시지: 오른쪽 정렬 */
.user-message {
    align-self: flex-end; /* 오른쪽 정렬 */
    background-color: #e0f7ff;
    color: #1e90ff;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 60%;
    font-weight: bold;
}

/* 챗봇 메시지: 왼쪽 정렬 */
.chat-message {
    align-self: flex-start; /* 왼쪽 정렬 */
    background-color: #f0fff0;
    color: #228b22;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 60%;
    font-weight: bold;
}


textarea#instruction {
    width: 100%; 
    max-width: 100%; 
    height: 200px;
    max-height: 400px;
    resize: vertical; 
    overflow-y: auto; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}


.chat-message h3 {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.chat-message p {
    margin: 0.5em 0;
}

.chat-message strong {
    font-weight: bold;
}
