body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 50%;
    height: 520px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-message, .other-message {
    display: inline-block;
    padding: 10px;
    word-wrap: break-word;
}

.user-message-container {
    text-align: right;
    align-self: flex-end;
}

.other-message-container {
    text-align: left;
    align-self: flex-start;
}

.user-message {
    background: linear-gradient(135deg, #cce5ff, #cce5ff66);
    border-radius: 15px 15px 0 15px;
	margin: 5px 0;
}

.other-message {
    background: linear-gradient(135deg, #f0f0f0, #e2e3e5);
    border-radius: 15px 15px 15px 0;
}

.system-message {
    align-self: center;
    color: #a4a4a4;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.message-info {
    display: flex;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #666;
}

.right {
	justify-content: right;
}

.left {
	justify-content: left;
}

.message-sender {
    font-weight: 600;
}

.message-time {
    opacity: 0.8;
}

@keyframes messagePop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.input-container {
    display: flex;
    width: 100%;
}

.input-send {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    height: 2.5rem;
}

.btn-send {
    padding: 10px;
    font-size: 0.9rem;
    background-color: #4CAF50 !important;
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100px;
    height: 2.5rem;
}

.btn-send:hover {
    background-color: #45a049 !important;
}

@media (min-width: 1200px) {
    .chat-container {
        width: 40%;
        max-width: 45%;
    }
}
@media (max-width: 768px) {
    .chat-container {
        width: 65%;
        max-width: 75%;
    }
}

@media (max-width: 550px) {
    .chat-container {
        width: 75%;
        max-width: 85%;
    }
}

.i-margin {
    margin-right: 5px;
}

.call-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.call-btn i {
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease;
}

.call-toast {
    animation: fadeIn 0.3s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #1e88e5;
}

.toast-header {
    background: linear-gradient(to right, #1e88e5, #64b5f6);
    color: white;
    font-weight: 600;
    padding: 12px 15px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.call-icon {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    animation: pulse 1.5s infinite;
}

.toast-body {
    padding: 20px;
}

.caller-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.caller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1e88e5, #90caf9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.caller-details h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.caller-details p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

.call-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.btn-call {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-call:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn-accept {
    background: #4caf50;
}

.btn-decline {
    background: #f44336;
}

.user-name {
    font-size: 1.2rem;color: #6e6b7b;"
}
