.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1d23, #232833, #111318);
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    will-change: scroll-position;
}

.message { 
    margin-bottom: 15px; 
    max-width: 80%;
    display: flex; 
    flex-direction: column;
}

.user { 
    margin-left: auto; 
    background: #003087; 
    color: white; 
    padding: 12px 16px; 
    border-radius: 18px 18px 4px 18px;
    white-space: pre-line
}

.bot { 
    margin-right: auto; 
    background: #2a2f3a; 
    color: #e6e9ef; 
    padding: 12px 16px; 
    border-radius: 18px 18px 18px 4px; 
    max-width: 80%; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    animation: fadeIn 0.3s ease; 
    white-space: pre-line
}

.typing-indicator {
    width: fit-content;
    padding: 8px 14px;
}

.typing-gif {
    width: 45px;
    height: auto;
    display: block;
}

.search-highlight {
    background-color: #fffb00 !important;
    color: #000 !important;
    padding: 2px 4px;
    border-radius: 3px;
    animation: highlight-pulse 1.5s ease-in-out;
}



.reminder-create-options,
.reminder-delete-options,
.reminder-exam-options,
.reminder-class-options {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.reminder-create-btn,
.reminder-delete-btn,
.reminder-exam-btn,
.reminder-class-btn {
    width: fit-content;
    background: #4FC3F7;
    color: #003087;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.reminder-create-btn:hover,
.reminder-delete-btn:hover,
.reminder-exam-btn:hover,
.reminder-class-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.65);
}

.reminder-create-btn:active,
.reminder-delete-btn:active,
.reminder-exam-btn:active,
.reminder-class-btn:active {
    transform: scale(0.97);
}

.reminder-create-btn:disabled,
.reminder-delete-btn:disabled,
.reminder-exam-btn:disabled,
.reminder-class-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}