/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    box-sizing: border-box;
}
#menu {
    background-color: #2c3e50;
    color: #ecf0f1;
    min-width: 250px;
    padding: 20px;
    overflow-y: auto;
}
#menu button {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 10px 15px;
    margin-bottom: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#menu button:hover {
    background-color: #1abc9c;
}
.chat-container {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
#chat {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.message {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.user {
    align-self: flex-end;
    background-color: #1abc9c;
}
.assistant {
    align-self: flex-start;
    background-color: #3498db;
}
textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
    resize: none;
    margin-bottom: 10px;
    flex-shrink: 0;
}
button {
    padding: 10px 20px;
    background-color: #2ecc71; /* Updated to green color */
    color: #ecf0f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}
button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}
button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}


.modal {
    display: none; /* Keep this to hide the modal when not in use */
    position: fixed; /* Fixed position to cover the whole viewport */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    z-index: 1000; /* High z-index to ensure it's on top */
    background-color: rgba(0,0,0,0.4); /* Dimmed background */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: for styling */
    border-radius: 4px; /* Optional: for styling */
    padding: 20px; /* Optional: for styling */
}


/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%; /* You can adjust this as per your requirement */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    animation-name: zoom;
    animation-duration: 0.6s;
    overflow-y: auto; /* Enable vertical scroll if content is too long */
    max-height: 90%; /* Maximum modal content height */
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Add Zoom Animation */
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Style the input fields */
input[type=text], textarea {
    width: calc(100% - 24px);
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's width and height */
}

/* Style the save button */
.save-btn {
    display: block; /* Make the button a block to fill the form width */
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.save-btn:hover {
    background-color: #45a049;
}


button[type=submit] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type=submit]:hover {
    background-color: #45a049;
}


.modal-save-changes {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-save-changes:hover {
    background-color: #45a049;
}

.module-container {
    position: relative; /* Add this line to establish a positioning context */
    /* ... other styles ... */
}

.module-button {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This will push the icon to the right */
    padding: 10px; /* Example padding, adjust as needed */
    background-color: #2ecc71; /* Example background color, adjust as needed */
    color: white; /* Text color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.edit-icon {
    position: absolute;
    right: 10px; /* Adjust as needed for spacing */
    top: 50%;
    transform: translateY(-50%);
    margin-left: auto;
    padding-left: 10px;
    color: #e74c3c; /* Adjust color as needed */
    cursor: pointer;
    /* If using Font Awesome, the icon size can be adjusted with the 'fa-' classes */
}
.edit-button {
    display: none; 
    position: absolute;
    right: 5px; /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    padding: 10px;
    cursor: pointer;
}

.delete-btn {
    color: #ff0000;
    cursor: pointer;
    padding: 0 5px;
}

.delete-btn:hover {
    color: #cc0000;
}


#editModuleForm {
    display: flex;
    flex-direction: column;
}

.add-btn {
    /* Push the Add button to a new line */
    margin-top: 10px; /* Add some space above the button */
    align-self: flex-start; /* Align to the start of the flex container */
}