body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10%;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.message-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.message-form input, .message-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
}

.message-form textarea {
    height: 100px;
    resize: vertical;
}

.message-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.message-form button:hover {
    background-color: #2980b9;
}

.message-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 500px;
    overflow-y: auto;
}

.message {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.message:last-child {
    border-bottom: none;
}

.message.unread {
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
}

.message .sender {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.message .content {
    margin-bottom: 5px;
}

.message .time {
    font-size: 12px;
    color: #7f8c8d;
    text-align: right;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}


/* Add these new styles to your existing CSS */

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.complete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.complete-btn:hover {
    background-color: #c0392b;
}

.message {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    position: relative;
}

.message:last-child {
    border-bottom: none;
}

.message.unread {
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
}

.message .sender {
    font-weight: bold;
    color: #2c3e50;
}

.message .content {
    margin-bottom: 5px;
}

.message .time {
    font-size: 12px;
    color: #7f8c8d;
    text-align: right;
}


.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    width: 300px;
    transition: opacity 0.5s ease;
}

.notification-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.notification-content {
    font-size: 14px;
}

/* Add speech controls if needed */
.speech-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.speech-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

