/**
 * Admin Bot Floating Button and Modal Styles
 */

/* Floating button */
.admin-bot-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4a6cf7;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 24px;
}

.admin-bot-floating-button:hover {
    transform: scale(1.1);
    background-color: #3a5ce6;
}

.admin-bot-floating-button.active {
    background-color: #3a5ce6;
    transform: rotate(180deg);
}

/* Modal container */
.admin-bot-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    background-color: #1e1e2d;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-bot-modal.show {
    display: flex;
    animation: adminBotSlideIn 0.3s forwards;
}

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

/* Modal header */
.admin-bot-modal-header {
    padding: 15px;
    background-color: #2a2a3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3f3f5f;
}

.admin-bot-modal-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.admin-bot-modal-close {
    background: none;
    border: none;
    color: #b0b0c0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.admin-bot-modal-close:hover {
    color: #ffffff;
}

/* Modal body */
.admin-bot-modal-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Modal footer */
.admin-bot-modal-footer {
    padding: 10px 15px;
    border-top: 1px solid #3f3f5f;
    display: flex;
    justify-content: flex-end;
}

/* Status colors */
.status-active {
    color: #18ce8e;
}

.status-expired {
    color: #fd4b4b;
}

.status-warning {
    color: #ffba00;
}

/* Tabs */
.admin-bot-tabs .nav-tabs {
    border-bottom-color: #3f3f5f;
}

.admin-bot-tabs .nav-link {
    color: #b0b0c0;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
}

.admin-bot-tabs .nav-link.active {
    color: #ffffff;
    background-color: transparent;
    border-bottom: 2px solid #4a6cf7;
}

.admin-bot-tabs .nav-link:hover:not(.active) {
    color: #e0e0e0;
    border-bottom: 2px solid #3f3f5f;
}

/* Chat interface */
.admin-bot-chat-container {
    display: flex;
    flex-direction: column;
    height: 300px;
}

.admin-bot-chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
    max-height: 250px;
}

.admin-bot-chat-input {
    margin-top: 10px;
}

.admin-bot-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.admin-bot-message.user-message {
    align-items: flex-end;
}

.admin-bot-message.bot-message {
    align-items: flex-start;
}

.admin-bot-message-content {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.admin-bot-message.user-message .admin-bot-message-content {
    background-color: #4a6cf7;
    color: white;
    border-top-right-radius: 2px;
}

.admin-bot-message.bot-message .admin-bot-message-content {
    background-color: #2a2a3c;
    color: #e0e0e0;
    border-top-left-radius: 2px;
}

.admin-bot-message.error-message .admin-bot-message-content {
    background-color: #fd4b4b33;
    color: #fd4b4b;
}

.admin-bot-message p {
    margin: 0;
}

.admin-bot-message ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.admin-bot-message code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}