/**
 * Admin Chatbot Styles
 * 
 * Floating help assistant for internal admin use
 */

/* Floating Help Button */
.admin-chatbot-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #003366;  /* Navy blue to match app theme */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    color: white;
}

.admin-chatbot-button:hover {
    transform: scale(1.1);
    background: #002244;  /* Darker navy on hover */
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
}

.admin-chatbot-button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Chatbot Window */
.admin-chatbot-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    height: 600px;
    max-height: calc(100vh - 48px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

/* Header */
.admin-chatbot-header {
    background: #003366;  /* Navy blue to match app theme */
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.admin-chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-chatbot-robot {
    font-size: 32px;
    line-height: 1;
    animation: robotWave 2s ease-in-out infinite;
}

@keyframes robotWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.admin-chatbot-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.admin-chatbot-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 2px 0 0 0;
}

.admin-chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.admin-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages Container */
.admin-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8f9fa;
}

/* Welcome Message */
.admin-chatbot-welcome {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-chatbot-welcome h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #333;
}

.admin-chatbot-welcome p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

.admin-chatbot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-chatbot-suggestion {
    background: #f0f4f8;
    border: 1px solid #003366;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #003366;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.admin-chatbot-suggestion:hover {
    background: #003366;
    color: white;
    transform: translateX(4px);
}

/* Messages */
.admin-chatbot-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

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

.admin-chatbot-message-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.admin-chatbot-message-user .admin-chatbot-message-content {
    background: #003366;  /* Navy blue for user messages */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.admin-chatbot-message-assistant .admin-chatbot-message-content {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-chatbot-message-content strong {
    font-weight: 600;
    color: inherit;
}

.admin-chatbot-message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.admin-chatbot-message-assistant .admin-chatbot-message-content code {
    background: #f0f4f8;
    color: #003366;
}

.admin-chatbot-message-content .list-item {
    margin: 4px 0;
    padding-left: 8px;
}

/* Helpful Links */
.admin-chatbot-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    margin-top: 8px;
}

.admin-chatbot-links strong {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-chatbot-link-button {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #003366;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.admin-chatbot-link-button:hover {
    background: #f0f4f8;
    border-color: #003366;
    transform: translateX(4px);
}

/* Related Topics */
.admin-chatbot-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.admin-chatbot-topics strong {
    width: 100%;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.admin-chatbot-topic-button {
    background: #f0f4f8;
    border: 1px solid #003366;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #003366;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-chatbot-topic-button:hover {
    background: #003366;
    color: white;
}

/* Typing Indicator */
.admin-chatbot-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.admin-chatbot-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #003366;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.admin-chatbot-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.admin-chatbot-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Container */
.admin-chatbot-input-container {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.admin-chatbot-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: all 0.2s ease;
}

.admin-chatbot-input:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.admin-chatbot-send {
    background: #003366;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    flex-shrink: 0;
}

.admin-chatbot-send:hover {
    background: #002244;
    transform: scale(1.05);
}

.admin-chatbot-send:active {
    transform: scale(0.95);
}

/* Scrollbar Styling */
.admin-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.admin-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.admin-chatbot-messages::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.admin-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-chatbot-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 32px);
        bottom: 16px;
        right: 16px;
    }
    
    .admin-chatbot-button {
        bottom: 16px;
        right: 16px;
    }
}

