.boxdbshadow {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28) !important;
}

.boxdbshadowy {
    box-shadow: 0 -9px 9px 0 rgba(0, 0, 0, 0.301),
        0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
}

.boxdtext {
    text-shadow: 1px 1px 2px #111 !important;
}

.bg-hover:hover,
.bg-hover:focus,
.bg-hover:active,
.bg-hover:target {
    opacity: 0.45 !important;
}

.input-area {
    padding: 12px 20px 15px;
    /*background: white;
    border-top: 1px solid #eee;*/
    flex-shrink: 0;
}


:root {
    --agent-bg: #f8f9fa;
    --user-bg: #e3f2fd;
    --chatgpt-color: #10a37f;
    --claude-color: #d97757;
    --google-color: #4285f4;
    --perplexity-color: #1f1f1f;
    --manus-color: #6366f1;
    --grok-color: #000000;
    --history-bg: #fff;
    --history-hover: #f8f9fa;
}

body {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;*/
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.agent-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}

.agent-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    flex-shrink: 0;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 26px;
    color: #667eea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-header {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 0px 5px;
    /*background: var(--agent-bg);*/
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    min-height: 130px;
}

.message {
    max-width: 100%;
    padding: 10px 10px;
    border-radius: 18px;
    animation: fadeIn 0.3s ease;
    line-height: 1.4;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.message.agent {
    align-self: flex-start;
    background: #3e4143;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}



.message.user {
    align-self: flex-end;
    background: #041018;
    border-bottom-right-radius: 5px;
    color: #0d47a1;
}



.message-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



/* Histórico de consultas */
.history-section {
    background: #120c0c;
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    /*border: 1px solid #eee;*/
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.history-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}



.history-item:hover {
    background: #323335;
    transform: translateX(3px);
    color: #fffbfb;
}



.history-item .query-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #495057;
}

.history-item .query-time {
    font-size: 0.7rem;
    color: #adb5bd;
    flex-shrink: 0;
}

.history-item .btn-use {
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
}

.history-empty {
    text-align: center;
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 15px 0;
}

/* Botões das plataformas */
.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    color: white;
}

.btn-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-chatgpt {
    background: linear-gradient(135deg, var(--chatgpt-color), #1a7f64);
}

.btn-claude {
    background: linear-gradient(135deg, var(--claude-color), #c06548);
}

.btn-google {
    background: linear-gradient(135deg, var(--google-color), #3367d6);
}

.btn-perplexity {
    background: linear-gradient(135deg, var(--perplexity-color), #333);
}

.btn-manus {
    background: linear-gradient(135deg, var(--manus-color), #4f46e5);
}

.btn-grok {
    background: linear-gradient(135deg, var(--grok-color), #333);
}



.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}





.btn-send {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    padding: 7px 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 25px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background: white;
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/*.info-banner {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    padding: 6px 12px;
    background: #e7f3ff;
    border-radius: 8px;
    margin: 8px 0;
}*/



.preview-box {
    font-style: italic;
    background: #16191c;
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid #667eea;
    font-size: 0.95rem;
}




.platform-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Scrollbar personalizada */
.chat-area::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 5px;
}

.chat-area::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-area::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-area::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Toast notification */
.toast-custom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 576px) {
    .agent-container {
        border-radius: 16px;
        max-height: 125vh;
    }

    .chat-area {
        min-height: 150px;
    }

    .btn-platform {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .history-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}