.split-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: 100vh;
}

.panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.call-panel {
    order: 1;
    min-width: 0;
    max-width: 100%;
}

.chat-panel {
    order: 2;
    min-height: 50vh;
}

/* Responsive styles for larger screens */
@media (min-width: 992px) {
    .split-container {
        flex-direction: row;
        height: calc(100vh - 40px);
    }

    .call-panel {
        flex: 1;
        min-width: 400px;
        max-width: 50%;
        order: 1;
    }

    .chat-panel {
        flex: 2;
        order: 2;
        min-height: auto;
    }
}

/* Chat messages container */
.chat-messages {
    scroll-behavior: smooth; /* Smooth scrolling */
    -webkit-overflow-scrolling: touch; /* Better scrolling on mobile */
}

.message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 0.95rem;
}

/* User message styling */
.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 0;
    color: #0d47a1;
}

/* AI message styling */
.ai-message {
    background-color: #f1f1f1;
    margin-right: auto;
    border-bottom-left-radius: 0;
    color: #212121;
}

/* Message header styling */
.message-sender {
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 3px;
    color: inherit;
    opacity: 0.9;
}

.message-time {
    font-size: 0.7em;
    color: inherit;
    opacity: 0.7;
    text-align: right;
    margin-top: 3px;
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .panel {
        padding: 12px;
    }

    .message {
        max-width: 85%;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-top: 5px;
    opacity: 0.7;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.call-card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-log {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
}

.log-entry {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.log-entry:last-child {
    border-bottom: none;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-idle {
    background-color: #6c757d;
}

.status-calling {
    background-color: #ffc107;
}

.status-success {
    background-color: #198754;
}

.status-error {
    background-color: #dc3545;
}