html, body {
    height: 100%;
}

body {
    background: #f4f6f9;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 35px rgba(0,0,0,.10);
}

.logo-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    font-size: 30px;
}

.app-container {
    height: calc(100vh - 56px);
}

.users-panel {
    padding: 0;
    background: #fff;
    border-right: 1px solid #dee2e6;
}

.users-list {
    overflow-y: auto;
    height: calc(100% - 72px);
}

.user-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-item:hover,
.user-item.active {
    background: #eaf3ff;
}

.online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #28a745;
    margin-right: 10px;
}

.empty-state {
    padding: 30px 20px;
    color: #888;
    text-align: center;
}

.chat-panel {
    padding: 0;
    background: #eef1f5;
}

.empty-chat {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.chat-header {
    background: #fff;
    padding: 13px 18px;
    border-bottom: 1px solid #ddd;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    max-width: 75%;
    margin-bottom: 12px;
    padding: 10px 13px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.message.mine {
    margin-left: auto;
    background: #d9ecff;
}

.message.theirs {
    margin-right: auto;
    background: #fff;
}

.message-time {
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

.file-message {
    display: flex;
    align-items: center;
    min-width: 280px;
}

.file-icon {
    font-size: 30px;
    margin-right: 10px;
}

.composer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 12px;
}

@media (max-width: 767.98px) {
    .app-container {
        height: calc(100vh - 56px);
    }

    .users-panel {
        height: 190px;
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    .users-list {
        height: calc(100% - 72px);
        display: flex;
        overflow-x: auto;
    }

    .user-item {
        min-width: 130px;
        border-right: 1px solid #eee;
        border-bottom: 0;
        justify-content: center;
    }

    .chat-panel {
        height: calc(100% - 190px);
    }

    .message {
        max-width: 90%;
    }

    .file-message {
        min-width: 0;
    }
}


.drop-zone {
    border: 1px dashed #adb5bd;
    border-radius: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    transition: .15s;
}
.drop-zone.drag-over {
    background: #eaf3ff;
    border-color: #007bff;
}
.expiry-badge {
    color: #888;
}
.image-preview img {
    max-width: 260px;
    max-height: 220px;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
}
#typingIndicator {
    color: #007bff;
    font-style: italic;
}
#chatExpiryInfo {
    margin-left: auto;
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
