/* Ima Chatbot Public Styles */

.ima-chatbot-container-left {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
}
.ima-chatbot-container-right {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    right:0;
}
.ima-chatbot-toggle {
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.ima-chatbot-interface {
    position: relative;
    width: 350px;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.ima-chatbot-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.ima-chatbot-messages {
    height: 350px;
    overflow-y: auto;
    padding: 10px;
    position: relative;
}

.ima-chatbot-message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ima-chatbot-message-container.bot {
    flex-direction: row;
}

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

.ima-chatbot-message {
    border-radius: 10px;
    padding: 10px;
    max-width: calc(100% - 35px);
    font-size:14px;
}

.ima-chatbot-message.user {
    background-color: #e6f3ff;
    margin-left: auto;
}

.ima-chatbot-message.bot {
    background-color: #f0f0f0;
}

.ima-chatbot-message-icon {
    width: 39px;
    height: 30px;
    margin:  5px;
    align-self: flex-start;
}

.ima-chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.ima-chatbot-input {
    flex-grow: 1;
    padding: 5px;
    border: 2px solid #777;
    border-radius: 5px;
    font-size: 14px;
}

.ima-chatbot-send {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
}
.ima-chatbot-header {
    background-color: lightblue;
    padding: 5px;
    text-align: center;
}

.ima-chatbot-logo {
    max-width: 50%;
    height: auto;
}

/* CSS for the "Chat With Sales" button on the right side */
.ima-chatbot-button-right{
    position: fixed;
    right: -62px;
    top: 50%;
    transform: rotate(-90deg);
    background-color: #FFA500; /* Orange background color */
    color: #FFFFFF; /* White text color */
    padding: 10px 20px;
    border-radius: 5px 5px 0 0 ; /* Rounded corners on the left */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
}

.ima-chatbot-button-right:hover,.ima-chatbot-button-left:hover {
    background-color: #FF8C00; /* Darker orange on hover */
}
/* CSS for the "Chat With Sales" button on the left side */
.ima-chatbot-button-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FFA500; /* Orange background color */
    color: #FFFFFF; /* White text color */
    padding: 10px 20px;
    border-radius: 0 5px 5px 0; /* Rounded corners on the right */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
}
.ima-chatbot-button-bottom-left{
    left: 20px; right: auto;
}
.ima-chatbot-button-bottom-right{
    right: 20px; left: auto;
}
.ima-chatbot-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.ima-chatbot-loading .dot {
    background-color: #333;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.ima-chatbot-loading .dot:nth-child(2) {
    animation-delay: 0.5s;
}

.ima-chatbot-loading .dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}
.ima-chatbot-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10;
    padding: 10px;
}

.skeleton-message {
    display: flex;
    margin-bottom: 15px;
}

.skeleton-message.user {
    justify-content: flex-end;
}

.skeleton-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 10px;
}

.skeleton-text {
    flex-grow: 1;
    max-width: 70%;
}

.skeleton-line {
    height: 10px;
    background-color: #e0e0e0;
    margin-bottom: 5px;
    border-radius: 5px;
}

.skeleton-line:last-child {
    width: 80%;
}

@keyframes skeleton-loading {
    0% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f0f0f0;
    }
}

.skeleton-avatar,
.skeleton-line {
    animation: skeleton-loading 1s linear infinite alternate;
}

#ima-chatbot-inline
{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}
.ima-chatbot-appointment-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ima-chatbot-appointment-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.ima-chatbot-slot-button {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid  #0d6efd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    margin-top: 1rem;
}

.ima-chatbot-slot-button:hover {
    background: #e9ecef;
    border-color:  #00437e;
}

.ima-chatbot-slot-button.selected {
    background: #e7f1ff;
    border-color: #0d6efd;
}

.ima-chatbot-slot-time {
    font-weight: 500;
    color: #212529;
}

.ima-chatbot-slot-resource {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 4px;
}

.ima-chatbot-appointment-confirm {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ima-chatbot-confirm-button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
}

.ima-chatbot-confirm-button.confirm {
    background: #198754;
}

.ima-chatbot-confirm-button.cancel {
    background: #dc3545;
}

.ima-chatbot-confirm-button:hover {
    filter: brightness(90%);
}

.ima-chatbot-appointment-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}


/* Scheduler Styles */
.ima-scheduler-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}


.ima-scheduler-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ima-resource-name {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

.ima-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#ima-current-date {
    font-weight: 600;
    font-size: 14px;
}

.ima-nav-button {
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
}

.ima-nav-button:hover {
    background-color: #e4e4e4;
}

.ima-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 15px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    padding: 10px;
}

.ima-slot {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.ima-slot:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.ima-slot.selected {
    background-color: #d1e7dd;
    border-color: #a3cfbb;
    color: #0f5132;
}

.ima-loading-slots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.ima-loading-slots .dot {
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    animation: dot-pulse 1.5s infinite ease-in-out;
}

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

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

@keyframes dot-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.ima-form-group {
    margin-bottom: 10px;
}

.ima-form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #444;
}

.ima-form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.ima-form-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.ima-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.ima-btn-primary {
    background-color: #0d6efd;
    color: white;
}

.ima-btn-primary:hover {
    background-color: #0b5ed7;
}

.ima-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.ima-btn-secondary:hover {
    background-color: #5c636a;
}

.ima-btn-text {
    background-color: transparent;
    color: #0d6efd;
}

.ima-btn-text:hover {
    background-color: #f8f9fa;
}

.ima-scheduler-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.ima-no-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px;
    color: #666;
    font-style: italic;
}
::-moz-focus-inner {
    padding: 0;

    border-style: none;

}

.ima-btn-primary:disabled {
    background-color: #cccccc;
}


