/* copilot.css - Design Moderno e Premium para o Assistente IA */

:root {
    --copilot-primary: #3b82f6;
    --copilot-bg: rgba(255, 255, 255, 0.8);
    --copilot-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --copilot-glass: blur(12px);
}

/* Botão Flutuante */
.copilot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copilot-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.copilot-fab.active {
    transform: scale(0.9);
}

/* Janela do Chat */
.copilot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--copilot-bg);
    backdrop-filter: var(--copilot-glass);
    -webkit-backdrop-filter: var(--copilot-glass);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--copilot-shadow);
    z-index: 9998;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.copilot-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Header do Copilot */
.copilot-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copilot-header .title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copilot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.copilot-header .status {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copilot-header .status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}

/* Área de Mensagens */
.copilot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(248, 250, 252, 0.5);
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.message.ai {
    align-self: flex-start;
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message.user {
    align-self: flex-end;
    background: var(--copilot-primary);
    color: white;
    border-bottom-right-radius: 2px;
}

/* Input do Chat */
.copilot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}

.copilot-input-area input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f1f5f9;
    border-radius: 10px;
}

.copilot-send-btn {
    width: 40px;
    height: 40px;
    background: var(--copilot-primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.copilot-send-btn:hover {
    background: #2563eb;
}

/* Tags de Atalho */
.copilot-suggestions {
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: rgba(248, 250, 252, 0.5);
}

.suggestion-tag {
    white-space: nowrap;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    border-color: var(--copilot-primary);
    color: var(--copilot-primary);
    background: rgba(59, 130, 246, 0.05);
}

/* Dark Mode Support */
[data-theme="dark"] .copilot-window {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .message.ai {
    background: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .copilot-input-area,
[data-theme="dark"] .copilot-messages,
[data-theme="dark"] .copilot-suggestions {
    background: transparent;
}

[data-theme="dark"] .copilot-input-area input {
    background: #1e293b;
    color: white;
}

[data-theme="dark"] .suggestion-tag {
    background: #334155;
    border-color: #475569;
    color: #94a3b8;
}
