body {
    background-color: #f0f2f5;
}

.messages-container {
    height: 600px;
    overflow-y: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.message-card {
    padding: 0.8rem 1rem;
    margin: 0.5rem 1rem;
    border-radius: 1.2rem;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 94, 148, 0.1);
    max-width: 80%;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 94, 148, 0.05);
    transition: all 0.2s ease;
}

.message-card:hover {
    box-shadow: 0 4px 8px rgba(0, 94, 148, 0.1);
    border-color: #ffb200;
}

.message-card.sent {
    margin-left: auto;
    background-color: #005e94;
    color: white;
    align-self: flex-end;
    border: none;
}

.message-timestamp {
    font-size: 0.75rem;
    color: #65676b;
    margin-bottom: 0.25rem;
}

.message-card.sent .message-timestamp {
    color: rgba(255, 255, 255, 0.8);
}

.message-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

.message-input-container {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid rgba(0, 94, 148, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 20px;
    resize: none;
    border: 2px solid rgba(0, 94, 148, 0.2);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ffb200;
    box-shadow: 0 0 0 0.2rem rgba(255, 178, 0, 0.15);
}

.btn-primary {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    background-color: #005e94;
    border-color: #005e94;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #ffb200;
    border-color: #ffb200;
    transform: translateY(-1px);
}

.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 94, 148, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    background-color: white !important;
    padding: 1rem;
    border-bottom: none;
}

.title-stack {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffb200;
    margin-bottom: 0.2rem;
}

.sub-title {
    font-size: 1rem;
    font-weight: 400;
    color: #005e94;
}

.card-header .btn-light {
    background-color: #ffb200;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-header .btn-light:hover {
    background-color: rgba(255, 178, 0, 0.9);
    color: white;
    transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .messages-container {
        height: calc(100vh - 200px);
    }

    .message-card {
        max-width: 90%;
        margin: 0.4rem 0.6rem;
    }
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 94, 148, 0.15);
}

.modal-header {
    background-color: #005e94;
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    color: white;
    opacity: 0.8;
}

.modal-footer .btn-danger {
    background-color: #005e94;
    border-color: #005e94;
}

.modal-footer .btn-danger:hover {
    background-color: #ffb200;
    border-color: #ffb200;
}

/* More yellow accents */
::selection {
    background-color: #ffb200;
    color: white;
}

.form-control::placeholder {
    color: rgba(0, 94, 148, 0.5);
}

.message-card:focus-within {
    border-color: #ffb200;
}

.btn:active {
    transform: scale(0.98);
}

/* Add these styles to the existing CSS file */
.btn-close-custom {
    color: #ffb200;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-custom:hover {
    color: #005e94;
    transform: scale(1.1);
}