.bf-canvas-container {
    max-width: 1000px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bf-canvas-response {
    padding: 30px;
    border-radius: 12px;
    background-color: #f9f9f9;
    font-size: 1.6rem;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.8s ease, height 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333;
    height: 0;
    overflow: hidden;
}

.bf-canvas-response.visible {
    opacity: 1;
    height: auto;
    min-height: 100px;
}

.bf-canvas-input-container {
    position: relative;
    margin-bottom: 20px;
    background: #fff;
}

.bf-canvas-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1.3rem;
    line-height: 1.5;
    resize: none;
    min-height: 80px;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bf-canvas-input:focus {
    border-color: var(--bf-main-color, #c044d1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

.bf-canvas-submit {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bf-main-color, #c044d1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bf-canvas-submit:hover {
    background-color: var(--bf-dark-color, #9a35ab);
}

.bf-canvas-submit svg {
    width: 18px;
    height: 18px;
}

/* Loading indicator */
.bf-canvas-loading {
    display: inline-block;
    margin: 20px auto;
    width: 50px;
    text-align: center;
}

.bf-canvas-loading div {
    width: 10px;
    height: 10px;
    background-color: var(--bf-main-color, #c044d1);
    border-radius: 100%;
    display: inline-block;
    animation: bf-canvas-bouncedelay 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

.bf-canvas-loading .bounce1 {
    animation-delay: -0.32s;
}

.bf-canvas-loading .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bf-canvas-bouncedelay {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .bf-canvas-response {
        font-size: 1.2rem;
        min-height: 150px;
    }
    
    .bf-canvas-input {
        font-size: 1rem;
    }
}
