/* Chat Bot Window */
#narad-muni-window {
    position: fixed;
    bottom: 90px;
    left: 20px; /* Adjusted to bottom left */
    width: 600px; /* Default width for larger screens */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 9999;
    display: none;
}

/* Chat Bot Header */
#narad-muni-header {
    background-color: #011021;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    position: relative; /* Needed for positioning the close button */
}

/* Chat Bot Body */
#narad-muni-body {
    padding: 10px;
    height: 400px;
    overflow-y: auto;
    background-color: #f1f1f1;
}

/* Footer with scrollable buttons */
#narad-muni-footer {
    padding: 10px;
    text-align: center;
    max-height: 150px; /* Set a max height for the footer */
    overflow-y: auto;  /* Enable vertical scrolling if buttons overflow */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual question buttons */
.narad-muni-question {
    background-color: #011021;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
}

.narad-muni-question:hover {
    background-color: #219199;
}

/* Chat Bot Icon */
#narad-muni-icon {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Bottom left corner */
    background-color: #011021;
    color: white;
    border-radius: 50%; /* Ensures the icon is a circle */
    width: 60px;  /* Set the width of the icon */
    height: 60px; /* Set the height equal to width for perfect circle */
    padding: 15px; /* Adjust padding for icon size */
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
}

#narad-muni-icon:hover {
    background-color: #219199;
}

/* Bubble styles for messages */
.narad-muni-message {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.narad-muni-bubble {
    max-width: 80%; /* Limit the width of the bubble */
    background-color: #011021;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    word-wrap: break-word;
}

.narad-muni-user .narad-muni-bubble {
    background-color: #011021; /* User message bubble color */
    align-self: flex-end;
}

.narad-muni-bot .narad-muni-bubble {
    background-color: #17a2b8; /* Bot message bubble color */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Adjust the width of the chat window on smaller screens */
    #narad-muni-window {
        width: 90%; /* Make the width responsive */
        bottom: 10px;
        left: 10px; /* Adjusted for left side */
    }

    /* Adjust the chat icon size */
    #narad-muni-icon {
        padding: 12px;
    }

    /* Adjust the header font size */
    #narad-muni-header {
        font-size: 14px;
        padding: 8px;
    }

    /* Adjust button size */
    .narad-muni-question {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Adjust chat body height */
    #narad-muni-body {
        max-height: 400px;
    }

    /* Adjust footer size on smaller screens */
    #narad-muni-footer {
        max-height: 120px;  /* Adjust footer height for mobile */
    }
}

@media (max-width: 480px) {
    /* Further adjust the width on very small devices */
    #narad-muni-window {
        width: 90%;
        bottom: 10px;
        left: 10px; /* Adjusted for left side */
    }

    /* Further reduce the size of the chat icon */
    #narad-muni-icon {
        padding: 10px;
    }

    /* Adjust header font size */
    #narad-muni-header {
        font-size: 12px;
        padding: 6px;
    }

    /* Reduce button size further */
    .narad-muni-question {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* Adjust chat body height */
    #narad-muni-body {
        max-height: 200px;
    }

    /* Further adjust footer height for very small devices */
    #narad-muni-footer {
        max-height: 100px;
    }
}



/** Backend CSS */
/* WordPress Admin Styling */
.postbox { padding: 20px; border: 1px solid #ccd0d4; background: #fff; }
.hndle { margin: 0; font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid #ccd0d4; }
.form-table th { text-align: left; width: 150px; }
.regular-text { width: 100%; max-width: 500px; }
.wp-list-table th { text-align: left; }
.button-link-delete { color: #a00; }

/* Modal Styling */
.hidden { display: none; }
#edit-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50%; z-index: 1000; background: #fff; padding: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); border: 1px solid #ccd0d4; }
.close { float: right; font-size: 20px; cursor: pointer; color: #777; }
.close:hover { color: #000; }
