/* public/css/admin-chat.css */

.chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 384px;
    height: 100%;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.chat-panel:not(.is-closed) {
    transform: translateX(0);
}

.chat-panel-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.chat-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-panel-header .panel-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
}

.chat-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.user {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.ai {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
}

.chat-message pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
}

.chat-panel-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
}

.chat-input-container {
    display: flex;
}

.chat-input-container textarea {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem;
    resize: none;
    font-family: inherit;
}

.chat-input-container .chat-send-button {
    margin-left: 8px;
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #007bff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.chat-input-container .chat-send-button:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.chat-input-container .chat-send-button .material-icons {
    font-size: 24px;
}

.chat-panel-toggle-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--md-sys-color-primary, #FF6E40);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-panel-toggle-button:hover {
    background-color: var(--md-sys-color-primary, #FF6E40);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    transform: scale(1.05);
}

.chat-panel-toggle-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}
