/* Chatbot Specific Styles */

.chatbot-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.chatbot-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.chatbot-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.chatbot-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.chatbot-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.chatbot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ff00;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Chat Interface */
.chatbot-interface {
    padding: 60px 0;
    background: #0a0a0a;
}

.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.1);
    overflow: hidden;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #00ff00;
}

.status-indicator.offline {
    background: #ff6666;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-text {
    color: #00ff00;
    font-size: 0.9rem;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: transparent;
    border: 1px solid #333;
    color: #cccccc;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #333;
    color: #00ff00;
    border-color: #00ff00;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0f0f0f;
    scrollbar-width: thin;
    scrollbar-color: #333 #0f0f0f;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease-out;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
    color: #000;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #0066ff 0%, #0044aa 100%);
    color: #fff;
}

.message-content {
    flex: 1;
    max-width: calc(100% - 55px);
}

.message-text {
    background: #2a2a2a;
    padding: 15px 20px;
    border-radius: 15px;
    color: #ffffff;
    line-height: 1.6;
    word-wrap: break-word;
}

.bot-message .message-text {
    background: linear-gradient(135deg, #1a3a1a 0%, #2a2a2a 100%);
    border: 1px solid #00ff0030;
}

.user-message .message-text {
    background: linear-gradient(135deg, #1a1a3a 0%, #2a2a2a 100%);
    border: 1px solid #0066ff30;
}

.message-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-text li {
    margin: 5px 0;
}

.message-time {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    margin-right: 0;
    margin-left: 15px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: #2a2a2a;
    border-radius: 15px;
    border: 1px solid #00ff0030;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Chat Input */
.chat-input-container {
    background: #1a1a1a;
    border-top: 2px solid #333;
    padding: 20px;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.quick-question {
    background: transparent;
    border: 1px solid #333;
    color: #cccccc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-question:hover {
    background: #00ff0020;
    border-color: #00ff00;
    color: #00ff00;
}

.chat-input-form {
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    background: #2a2a2a;
    border: 2px solid #333;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#chat-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.send-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
    border: none;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.send-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chat-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* API Key Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 2px solid #00ff00;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ff6666;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: #cccccc;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

#api-key-input {
    width: 100%;
    background: #2a2a2a;
    border: 2px solid #333;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#api-key-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.api-key-info {
    background: #0f0f0f;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    margin-top: 15px;
}

.api-key-info h4 {
    color: #00ff00;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.api-key-info ol {
    color: #cccccc;
    margin: 10px 0;
    padding-left: 20px;
}

.api-key-info li {
    margin: 5px 0;
}

.api-key-info a {
    color: #00ff00;
    text-decoration: none;
}

.api-key-info a:hover {
    text-decoration: underline;
}

.modal-footer {
    background: #0f0f0f;
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-widget.minimized .widget-content {
    display: none;
}

.widget-header {
    background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
    color: #000;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.widget-icon {
    font-size: 1.2rem;
}

.widget-text {
    flex: 1;
}

.widget-toggle {
    transition: transform 0.3s ease;
}

.chatbot-widget.minimized .widget-toggle {
    transform: rotate(180deg);
}

.widget-content {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.widget-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #0f0f0f;
}

.widget-input {
    padding: 15px;
    border-top: 1px solid #333;
}

.widget-input form {
    display: flex;
    gap: 10px;
}

.widget-input input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
}

.widget-input input:focus {
    border-color: #00ff00;
}

.widget-input button {
    background: #00ff00;
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-title {
        font-size: 2.5rem;
    }
    
    .chatbot-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .chat-container {
        height: 600px;
        margin: 0 10px;
    }
    
    .quick-questions {
        flex-direction: column;
    }
    
    .quick-question {
        text-align: center;
    }
    
    .chatbot-widget {
        width: 300px;
        right: 10px;
        bottom: 10px;
    }
    
    .widget-content {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .chatbot-title {
        font-size: 2rem;
    }
    
    .chatbot-features {
        grid-template-columns: 1fr;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .message-text {
        padding: 12px 15px;
    }
}

