/* Agent Copilot chat widget */
:root {
    --primary-blue: #005587;
    --primary-green: #5a8d4e;
    --primary-orange: #f39c12;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --secondary-red: #a83232;
    --secondary-blue: #0078d4;
    --black: #000000;
    --dark-gray: #333333;
}

.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
}

.chat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-icon:hover {
    background-color: var(--primary-green);
    transform: scale(1.05);
}

.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 450px;
    height: 600px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-container.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.chat-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--primary-orange);
}

.chat-body {
    flex: 1;
    overflow: hidden;
}

.chat-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 480px) {
    .chat-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
