﻿/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #2d1b69 0%, #1a103f 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}*/
.WelcomeMsg {
    margin: 0 auto;
    max-width: 95%!important;
    text-align: center;
    background-color: #1e1450!important;
    color: white!important;
}
.hoverEffect:hover {
    background: #1e1470;
    cursor: pointer;
}
.ChatBox {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    display:none;
}
.chat-container {
    max-width: 400px;   
    min-width: 400px;   
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(45, 27, 105, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: linear-gradient(135deg, #2d1b69 0%, #1a103f 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.chat-logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    /* Remove border-radius and border for no frame */
    background: url('logo.png') center/cover no-repeat;
}

.language-selector {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
}

.bot-message {
    background: white;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 85%;
}

.user-message {
    background: linear-gradient(135deg, #6a4c93 0%, #5a3e7a 100%);
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    color: white;
    margin-left: auto;
    max-width: 85%;
    text-align: right;
}

.timestamp {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 38px 10px 15px;
    outline: none;
    font-size: 14px;
}

    .message-input:focus {
        border-color: #6a4c93;
    }

.send-btn {
    background: linear-gradient(135deg, #6a4c93 0%, #5a3e7a 100%);
    border: none;
    border-radius: 50%;
    min-width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(106, 76, 147, 0.3);
}

    .send-btn:hover {
        background: linear-gradient(135deg, #5a3e7a 0%, #4a2d69 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(106, 76, 147, 0.4);
    }

    .send-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/*.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

    .login-form h3 {
        margin-bottom: 20px;
        text-align: center;
        color: #333;
    }*/

.ChatBox .form-group {
    margin-bottom: 15px;
}

    .ChatBox  .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #555;
        font-size: 14px;
    }

.ChatBox .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/*.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6a4c93 0%, #5a3e7a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(106, 76, 147, 0.3);
}

    .login-btn:hover {
        background: linear-gradient(135deg, #5a3e7a 0%, #4a2d69 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(106, 76, 147, 0.4);
    }*/

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.loading {
    opacity: 1;
    pointer-events: none;
}

/* Log Panel Styles */
.log-panel {
    position: fixed;
    top: 10rem;
    /*right: 20px;*/
    width: 300px;
    max-height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 2000;
    overflow: hidden;


}

.log-header {
    background: linear-gradient(135deg, #2d1b69 0%, #1a103f 100%);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.log-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.log-entry {
    margin-bottom: 8px;
    padding: 4px;
    border-left: 3px solid #6a4c93;
    background: #f8f9fa;
}

    .log-entry.error {
        border-left-color: #e74c3c;
        background: #fdf2f2;
    }

.log-timestamp {
    color: #666;
    font-size: 10px;
}

.log-controls {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.log-btn {
    padding: 6px 12px;
    border: 1px solid #6a4c93;
    background: white;
    color: #6a4c93;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    flex: 1;
}

    .log-btn:hover {
        background: #6a4c93;
        color: white;
    }

.log-toggle {
    position: fixed;
    bottom: 20px;
    /*right: 20px;*/
    background: linear-gradient(135deg, #6a4c93 0%, #5a3e7a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.4);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .log-toggle:hover {
        transform: scale(1.1);
    }

.connection-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

.status-connected {
    background: white;
    color: #4CAF50;
}

.status-disconnected {
    background: white;
    color: #F44336;
}

/* Language Button Styles */
.language-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 10px 0;
}

.lang-btn {
    padding: 12px 24px;
    border: 2px solid #6a4c93;
    background: white;
    color: #6a4c93;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

    .lang-btn:hover {
        background: #6a4c93;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3);
    }

    .lang-btn:active {
        transform: translateY(0);
    }

/* Action Button Styles */
.action-btn {
    display: inline-block;
    margin: 5px 8px 5px 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6a4c93 0%, #5a3e7a 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(106, 76, 147, 0.3);
    text-decoration: none;
}

    .action-btn:hover {
        background: linear-gradient(135deg, #5a3e7a 0%, #4a2d69 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(106, 76, 147, 0.4);
    }

    .action-btn:active {
        transform: translateY(0);
    }

/* Table Styles for JSON Components */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

    .data-table th {
        background: linear-gradient(135deg, #6a4c93 0%, #5a3e7a 100%);
        color: white;
        padding: 10px 8px;
        text-align: left;
        font-weight: 600;
        font-size: 12px;
    }

    .data-table td {
        padding: 8px;
        border-bottom: 1px solid #dee2e6;
        background: white;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table tr:hover td {
        background: #f1f3f5;
    }

/* Component Container */
.component-container {
    margin-bottom: 8px;
    overflow-x:auto;
}

    .component-container:last-child {
        margin-bottom: 0;
    }


@media (min-width:300px) and (max-width:600px) {
    .chat-container {
        max-width: 90%;
        margin: 0 auto;
        height: 95vh;
        min-width: 90%;
    }
    .ChatBox{
        right:0;
    }
    .chat-header {
    }
    .chat-logo, .language-buttons, .bot-message, .user-message, .message-input {
        font-size: 12px;
    }
    .language-buttons .lang-btn {

 padding:5px 20px;
    }
    .bot-message, .user-message {
        max-width: 100%;
    }
    .WelcomeMsg {
        padding: 20px !important;
        max-width:100%;
    }
    
}
.FullScreenHeight .WelcomeMsg {
    max-width:330px!important;
}


.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e1450;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.2s ease;
    text-align: center;
}

    .chat-toggle-btn:hover {
        transform: scale(1.1);
    }

.FullScreenHeight {
    height: 100vh;
    max-width: 100%;
    min-width: 100%;
}


/*Typing CSS*/

.typing {
    align-items: center;
    display: flex;
    height: 17px;
}

    .typing .dot {
        animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
        background-color: #1e1450;
        /*//rgba(20,105,69,.7);*/
        border-radius: 50%;
        height: 7px;
        margin-right: 4px;
        vertical-align: middle;
        width: 7px;
        display: inline-block;
    }

        .typing .dot:nth-child(1) {
            animation-delay: 200ms;
        }

        .typing .dot:nth-child(2) {
            animation-delay: 300ms;
        }

        .typing .dot:nth-child(3) {
            animation-delay: 400ms;
        }

        .typing .dot:last-child {
            margin-right: 0;
        }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #1e1435;
        /*// rgba(20,105,69,.7);*/
    }

    28% {
        transform: translateY(-7px);
        background-color: #01df8a;
        /*//rgba(20,105,69,.4);*/
    }

    44% {
        transform: translateY(0px);
        background-color: #d21c58;
    }
}

.typing {
    display: none
}

.loading .typing {
    display: flex !important;
    padding-left: 25px;
    background-color: #f8f9fa;
}
#micMain {
    display: inline-block;
    position: absolute;
    right: 4.44rem;
    background: whitesmoke;
    padding: 8px 13px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 19px;
    cursor: pointer;
}

