/* 
/assets/css/style.css
Basic styling enhancements 
*/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.btn-primary {
    padding: .5rem 1.5rem;
}

.alert {
    margin-bottom: 2rem;
}

/* Form enhancements */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Login/Register pages */
.auth-card {
    max-width: 400px;
    margin: 2rem auto;
}

/* Custom alert styling */
.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* chat inbox */
.chat-messages {
    height: calc(100vh - 280px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    margin-bottom: 1rem;
    clear: both;
}

.message-out {
    align-self: flex-end;
}

.message-in {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.message-in .message-content {
    background-color: #f0f2f5;
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

.message-out .message-content {
    background-color: #0084ff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message-out .message-meta {
    color: rgba(255, 255, 255, 0.7);
}

.message-meta {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-sender {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.date-separator {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.date-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.date-separator span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}