/* General Styling */
#chatgpt-conversation {
    padding: 15px 20px;
}

form#quickai-chatgpt-form, form#chatgpt-form {
    display: flex;
    gap: 36px;
    align-items: center;
    margin: 0px 30px;
    padding: 20px 0px 30px 0px;
}

#quickai-chatgpt-container h2, #chatgpt-container h2 {
    font-size: 15px;
    color: black;
    background: #f1f3f766;
    padding: 15px 30px;
    border-radius: 20px;
    width: fit-content;
    margin-left: 24px;
    margin-bottom: 30px;
}

#quickai-chatgpt-container, #chatgpt-container {
    background: black;
    padding: 15px 0;
    border-radius: 20px;
}

/* Prompt Styling */
#chatgpt-prompt {
    border-radius: 10px;
    padding: 15px;
    background: #454654;
    color: #fff !important;
    text-transform: capitalize;
    width: 100%;
}

#chatgpt-prompt::placeholder {
    color: #fff;
}

/* Form Button */
#quickai-chatgpt-form button, #chatgpt-form button {
    width: fit-content;
    height: 50px;
    background: #454654;
    border-color: #454654;
    color: #fff;
    border-radius: 10px;
}

/* Conversation Styling */
#chatgpt-conversation {
    padding: 0px 30px;
}

.chatgpt-message.user h5,
.chatgpt-message.user p,
.chatgpt-message.bot h5,
.chatgpt-message.bot p {
    margin: 10px;
    text-transform: capitalize;
}

.Layout-1 .chatgpt-message.user p,
.Layout-1 .chatgpt-message.user p {
    background: #f1f3f766;
    padding: 15px 30px;
    border-radius: 35px;
    width: fit-content;
    max-width: 60%;
}

.Layout-2 .chatgpt-message.user p {
    background: #f1f3f766;
    padding: 15px 30px;
    border-radius: 0px;
    width: fit-content;
    max-width: 60%;
}

.Layout-1 .chatgpt-message.bot p,
.Layout-1 .chatgpt-message.bot p {
    background: #f1f3f766;
    padding: 15px 30px;
    border-radius: 35px;
    width: fit-content;
    max-width: 60%;
}

.Layout-2 .chatgpt-message.bot p {
    background: #f1f3f766;
    padding: 15px 30px;
    border-radius: 0px;
    width: fit-content;
    max-width: 60%;
}

/* Suggestion Button Styling */
.chatgpt-suggestion-btn {
    background: #454654;
    color: #fff;
    margin-left: 10px;
    margin-bottom: 10px;
    border: 1px solid #454654;
    padding: 15px;
}

.chatgpt-message.user {
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
}

/* Quick Wrap Table Preview */
.quick-wrap-table-preview {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.quick-wrap-table-preview .edit-form {
    width: 40%;
}

.quick-wrap-table-preview .shortcode-preview {
    width: 70%;
}

/* Chat Prompt Field */
#chatgpt-prompt {
    min-height: 50px;
    max-height: 200px;
    border: 1px solid #4d4d4f;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    outline: none;
    resize: none;
    overflow: hidden;
    word-wrap: break-word;
    width: 85%;
    color: white;
}

#chatgpt-prompt:focus {
    border-color: #10a37f;
    box-shadow: 0 0 4px #10a37f;
}

/* Bot Start Text */
.chatgpt-message.bot.start-text {
    padding: 0 30px !important;
}

#quickai-chatgpt-form button, #chatgpt-form button {
    width: 10% !important;
    justify-content: center;
    height: 55px;
}

/* Highlighted Element */
.tour-highlight {
    position: relative;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #0073aa !important;
    background-color: #fff !important;
}

/* Tooltip */
.tour-tooltip {
    position: absolute;
    z-index: 1002;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    max-width: 300px;
    text-align: center;
}

.tour-tooltip .tour-buttons {
    margin-top: 10px;
}

.tour-tooltip button {
    background-color: #0073aa;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin: 0 5px;
}

.tour-tooltip button:hover {
    background-color: #005a87;
}

.tour-tooltip .close-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

.tour-tooltip .close-icon:hover {
    color: #000;
}

/* Popup Modal */
#tour-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#tour-popup .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

#tour-popup button {
    background-color: #0073aa;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#tour-popup button:hover {
    background-color: #005a87;
}

#tour-popup .close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

#tour-popup .close-icon:hover {
    color: #000;
}

/* Admin Styling */
.quai_sec_1, .quai_sec_2, .quai_sec_4 {
    padding: 34px;
    background: #E3E3E3;
    border-radius: 18px;
}

.quai_sec_2 { 
    margin-top: 24px;
    background: #000000;
}

.quai_sec_3 {
    margin-top: 24px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quai_sec_4 {
    border: 1px solid black;
    background: transparent;
}

.quai_sec_1 .regular-text, .quai_sec_2 .regular-text, .quai_sec_3 .regular-text, .quai_sec_4 .regular-text {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}

.quai_sec_1 p, .quai_sec_2 p {
    margin: 10px 0;
}

.quai_sec_1 .label, .quai_sec_2 .label-white, .quai_sec_3 .label, .quai_sec_4 .label, .quai_sec_5 .label {
    margin: 10px 0;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #0E0E0E;
}

.quai_sec_2 .label-white {
    color: #fff;
}

.quai_slt_col {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.quai__col p {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quai__col img {
    display: none;
}

.quai__col .layout-tabs {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.quai__col {
    width: 285px;
    height: 62px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.quai_sec_1 .layout-tab {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 29%;
    min-height: 62px;
    border-radius: 12px;
}

.quai_sec_1 .layout-tab.active {
    background-color: #000000;
    color: #fff;
    border-color: #000000;
}

.layout-tab:hover {
    background-color: #e9ecef;
}

.quai__col .quai_number {
    height: 29px;
}

.quai_sec_1 #layout-tabs {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.quai_subtitle, .quai_title {
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #0E0E0E;
}

.quai_subtitle {
    margin: 0;
    padding: 60px 0px 0px;
}
.quai-wrap-h-img {
    display: flex;
}
.quai-wrap-h-img img {
    height: 42px;
    width: 42px;
}
.quai_sec_5 {
    display: flex;
    margin-top: 24px;
    border: 1px solid black;
    padding: 34px;
    background: #E3E3E3;
    border-radius: 18px;
    flex-direction: column;
}

.quai-file-css input[type='file']{ display: none; }
.quai-file-css span {
  cursor: pointer;
  background: black;
  font: 13pt Tahoma;
  text-shadow: -1px -1px 0 #024;
  color: #FFF;
  border-radius: 4px;
  padding: 10px 20px;
}
.quai-file-css span:hover { border-color: #09F; }
.quai-file-css span:active {
  background: linear-gradient(to top, #09F 0%, #024 100%);
  box-shadow: 1px 1px 0 #012;
}
.quai_slt_col .quai__col {
    width: 48%;
}
#image_url, #image_url2 {
  border: 2px dashed #bbb;
  background-color: #fff;
  transition: border-color .25s ease-in-out;
  display: flex;
  padding: 34px;
  margin-bottom:20px;
}
.quai_sec_3_col_3 .quai__col {
    width: 100%;
}
@media screen and (max-width: 1440px) {
 .quick-wrap-table-preview {
  flex-direction: column;
}
.quick-wrap-table-preview .edit-form {
    width: 100%;
}
.quai__col {
    width: 48%;
}
.quai_sec_1 .layout-tab {
    min-width: 28%;
}
.quai_sec_3_col_3 .quai__col {
    width: 100%;
}
.quai_sec_3_col_4 .quai__col {
    width: 100%;
}
.quai_sec_5 {
    justify-content: space-between;
    flex-direction: column;
}
.quick-wrap-table-preview .shortcode-preview {
     width: 100%; 
}
}
@media screen and (max-width: 491px) {

.quai_slt_col .quai__col {
    width: 100%;
}
.quai_sec_1 .layout-tab {
    min-width: 100%;
}
.quai_sec_3 {
    display: flex;
    flex-direction: column;
}
.quai_sec_3_col_4 .quai__col, .quai_sec_3_col_3 .quai__col {
    margin: 10px 0;
}
}