/* Veterinary Chatbot Styles */
#vc-chatbot {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Arial', sans-serif;
}

#vc-chatbot-header {
    text-align: center;
    padding-bottom: 10px;
}

#vc-chatbot-header h2 {
    font-size: 22px;
    color: #333;
    margin: 10px 0;
}

#vc-chatbot-header p {
    font-size: 14px;
    color: #666;
}

#vc-chatbot-icon {
    width: 50px;
    height: 50px;
}

#vc-chatbot-suggestions {
    margin-top: 10px;
}

.vc-suggestion-btn {
    width: 90%;
    padding: 10px;
    margin: 5px 0;
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 20px !important;
    cursor: pointer;
    font-size: 14px !important;
    transition: 0.3s ease-in-out;
}

.vc-suggestion-btn:hover {
    background: #e0e0e0 !important;
}

#vc-chatbot-input {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vc-user-input {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

#vc-send-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    margin-left: 5px;
    cursor: pointer;
}

#vc-send-btn:hover {
    background: #0056b3;
}

#vc-chat-response {
    margin-top: 10px;
    padding: 10px;
    font-size: 14px;
    color: #333;
    text-align: left;
    border-top: 1px solid #ddd;
}

#vc-clear-btn {
    background-color: #ffffff;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 5px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

#vc-clear-btn:active {
    transform: scale(0.8);
    background-color: #ff5252;
}

/* Default color for placeholder text */
#vc-user-input::placeholder {
    color: #888888;
    transition: color 0.3s ease-in-out;
}

/* When user types, change text color */
#vc-user-input:focus,
#vc-user-input:not(:placeholder-shown) {
    color: #000000;
    font-weight: bold;
}

/* Popup Styles */
.vc-chatbot-popup-launcher { 
    text-align: center; 
    margin: 10px 0!important; 
}

.vc-modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px !important;
    background: linear-gradient(135deg, #6b48ff 0%, #00ddeb 100%); 
    color: white !important;
    border: none;
    border-radius: 25px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vc-modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Prevent body scroll when popup is active */
body.vc-popup-active {
    overflow: hidden;
}

/* Popup container */
.vc-chatbot-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active popup */
.vc-chatbot-popup.active {
    display: block;
    opacity: 1;
}

/* Popup content */
.vc-chatbot-popup-content {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-radius: 0;
}

/* Active popup content */
.vc-chatbot-popup.active .vc-chatbot-popup-content {
    transform: scale(1);
}

/* Header stays fixed at the top */
.vc-chatbot-popup-header {
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Main chat container */
.vc-chatbot-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Main chat area */
.vc-chatbot-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Messages wrapper - the scrollable area */
.vc-chatbot-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    background: none !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 10px !important;
}

/* Messages inner content */
.vc-chatbot-messages-inner {
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input area stays at the bottom */
.vc-chatbot-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 5px !important;
    flex-shrink: 0;
    justify-content: space-between;
}

.vc-chatbot-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.vc-chatbot-popup.active {
    display: block;
    opacity: 1;
}

.vc-chatbot-popup-content {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.vc-chatbot-popup.active .vc-chatbot-popup-content {
    transform: scale(1);
}

.vc-chatbot-popup-header {
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.vc-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.vc-chatbot-popup-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.vc-status {
    font-size: 16px;
    color: #666;
}

.vc-close-btn {
    font-size: 20px !important;
    border: none;
    background: transparent !important;
    color: #e74c3c !important;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    line-height: 1;
}

.vc-close-btn:hover {
    color: #c0392b;
    transform: scale(1.15) rotate(90deg);
}

.vc-chatbot-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.vc-chatbot-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vc-chatbot-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    background: none !important;
    padding: 1px !important;
    border-radius: 10px !important;
    margin: 10px !important;
    max-height: calc(100vh - 150px);
}

.vc-chatbot-messages-inner {
    padding: 10px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vc-chat-intro {
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 20px !important;
}

.vc-intro-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    border: 2px solid #4CAF50 !important;
}

.vc-intro-content h3 {
    margin: 0 0 5px 0 !important;
    font-size: 18px !important;
    color: #333 !important;
}

.vc-intro-content p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

.vc-predefined-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fff;
}

.vc-predefined-btn {
    padding: 10px 20px;
    background: #4CAF50 !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer;
    font-size: 14px;
    color: white !important;
    transition: background 0.2s, transform 0.2s;
}

.vc-predefined-btn:hover {
    background: #45a049 !important;
    transform: translateY(-2px);
}

.vc-message-bot, .vc-message-user {
    padding: 10px 20px;
    border-radius: 15px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

.vc-message-bot {
    background: #ffffff;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.vc-message-bot a {
    color: #007bff;
    text-decoration: underline;
}

.vc-message-bot a:hover {
    color: #0056b3;
}

.vc-message-user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    text-align: right;
}

.vc-chatbot-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 5px !important;
    flex-shrink: 0;
    justify-content: space-between;
}

.vc-new-chat-btn {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 6px 10px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s, transform 0.2s !important;
}

.vc-new-chat-btn:hover {
    background-color: #0056b3 !important;
    transform: scale(1.05) !important;
}

.vc-new-chat-btn i {
    margin-right: 5px !important;
}

#vc-popup-input {
    flex: 2 !important;
    padding: 10px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
    min-width: 0;
}

#vc-popup-input:focus {
    border-color: #00ddeb;
}

#vc-popup-input::placeholder {
    color: #95a5a6;
}

#vc-clear-input {
    background: transparent;
    border: none;
    color: #e74c3c;
    padding: 4px !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
}

#vc-clear-input:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.vc-toggle-history-btn {
    background: transparent !important;
    border: none;
    color: #3498db;
    padding: 4px !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.vc-toggle-history-btn:hover {
    color: #2980b9;
    transform: scale(1.1);
}

#vc-popup-send {
    background: transparent;
    border: none;
    color: #6b48ff;
    padding: 4px !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
}

#vc-popup-send:hover {
    color: #5e3de6;
    transform: scale(1.1);
}

.vc-chatbot-sidebar {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    padding: 15px;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 10001;
}

.vc-chatbot-sidebar.active {
    left: 0;
}

.vc-sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px !important;
}

.vc-chatbot-sidebar h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.vc-close-sidebar-btn {
    font-size: 24px !important;
    border: none;
    background: none !important;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.vc-close-sidebar-btn:hover {
    color: #333;
}

.vc-chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vc-chat-history-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px !important;
    border-bottom: 1px solid #eee !important;
    transition: background-color 0.3s !important;
    cursor: pointer !important;
}

.vc-chat-history-item:hover {
    background-color: #f8f9fa !important;
}

.vc-chat-history-item.active {
    background-color: #e9ecef !important;
}

.vc-chat-title {
    flex-grow: 1 !important;
    font-size: 14px !important;
    color: #333 !important;
}

.vc-chat-timestamp {
    font-size: 12px !important;
    color: #888 !important;
    margin-left: 10px !important;
}

.vc-delete-chat-btn {
    background: none !important;
    border: none !important;
    color: #dc3545 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 5px !important;
    transition: color 0.3s, transform 0.2s !important;
}

.vc-delete-chat-btn:hover {
    color: #bd2130 !important;
    transform: scale(1.1) !important;
}

.vc-clear-history-btn {
    background-color: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    margin: 10px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s, transform 0.2s !important;
}

.vc-clear-history-btn:hover {
    background-color: #bd2130 !important;
    transform: scale(1.05) !important;
}

.vc-clear-history-btn i {
    margin-right: 5px !important;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}