/* Continue Journey Component Styles */

#continue-journey-container {
    width: 100%;
}

.journey-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.journey-id {
    font-family: monospace;
    background-color: #eee;
    padding: 3px 6px;
    border-radius: 3px;
}

.message-container {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background-color: #f9f9fb;
    border-radius: 12px;
    padding: 24px;
}

.message-pair {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.message-pair:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.message {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    max-width: 85%;
    transition: all 0.3s ease;
    animation: message-fade-in 0.3s ease-out;
}

@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.user-message {
    background-color: #e7f2ff;
    border: 1px solid #c0d8ff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    position: relative;
}

.user-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: #e7f2ff;
    border-right: 1px solid #c0d8ff;
    border-bottom: 1px solid #c0d8ff;
    transform: rotate(45deg);
    z-index: -1;
}

.assistant-message {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    position: relative;
}

.assistant-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-left: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    transform: rotate(45deg);
    z-index: -1;
}

.message-header {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-message .message-header {
    color: #0056b3;
}

.assistant-message .message-header {
    color: #2c3e50;
}

.message-header::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-message .message-header::before {
    background-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.assistant-message .message-header::before {
    background-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-left: 10px;
    font-weight: normal;
}

.message-content {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.static-field {
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .message {
        max-width: 95%;
    }
}