body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 942px; /* was 600px; */
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#announcement-list {
    margin: 20px 0;
}

.announcement {
    background: #e9ecef;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border-left: 4px solid #007bff; /* Add a left border for emphasis */
}

/* Ensure images inside announcements are styled correctly */
.announcement img {
    max-width: 100%; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure images are block elements */
    margin: 10px 0; /* Add space above and below each image */
}

/* Set default font-family */
#editor {
  font-family: 'Aref Ruqaa';
  font-size: 18px;
  height: 450px;
  margin-bottom: 10px;
}

#toolbar {
    margin-bottom: 10px; /* Space between toolbar and editor */
}

/* Style for formatting buttons */
#toolbar button {
    margin-right: 5px; /* Space between toolbar buttons */
}

input[type="text"], input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    width: calc(100% - 22px); /* Adjust width to fit */
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px; /* Space between buttons */
    display: inline-block; /* Ensure buttons are inline */
}

/* Style for undo and redo buttons */
.button-container {
    margin: 10px 0; /* Space above and below the button container */
}

button:hover {
    background-color: #0056b3;
}

/* Resizing styles */
.ql-editor img {
    max-width: 100%; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure images are block elements */
    position: relative; /* Position relative for resizing */
}

.ql-editor img:after {
    content: '';
    width: 10px;
    height: 10px;
    background: blue;
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: nwse-resize; /* Resize cursor */
}

img {
    max-width: 100%; /* Responsive */
    height: auto; /* Maintain aspect ratio */
}

img.align-left {
    float: left;
    margin: 0 10px 10px 0;
}

img.align-center {
    display: block;
    margin: 0 auto;
}

img.align-right {
    float: right;
    margin: 0 0 10px 10px;
}
