/* Security Agent Chat Widget Styles */
.security-agent-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.agent-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s;
}

.agent-fab:hover {
    transform: scale(1.1);
}

.agent-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.agent-chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

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

.agent-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-header h5 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.close-agent {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.agent-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.message.agent {
    background: #fff;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #e2e8f0;
}

.message.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.agent-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.agent-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.agent-input-area button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.typing-indicator {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    display: none;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 5px;
    padding: 0 15px 10px;
    background: #f8fafc;
    flex-wrap: wrap;
}

.quick-btn {
    font-size: 12px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.dark-mode .agent-chat-window {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .agent-messages, .dark-mode .quick-actions {
    background: #0f172a;
}

.dark-mode .message.agent {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

.dark-mode .agent-input-area {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .agent-input-area input {
    background: #0f172a;
    border-color: #334155;
    color: #fff;
}

.dark-mode .quick-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
