File: /var/www/html/www.winghung.com/wp-content/plugins/upkyk-assistant-ai/admin/css/admin-style.css
/* Admin Styles for Upkyk AssistantAI - Version 1.1 */
/* Reset WordPress admin margins for our page */
.upkyk-assistant-ai-admin {
margin: 0;
padding: 0;
}
/* Admin Header */
.upkyk-admin-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
margin-bottom: 15px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.upkyk-logo img {
max-height: 50px;
width: auto;
}
/* Admin Notifications */
.upkyk-admin-notification {
position: fixed;
top: 32px;
right: 15px;
max-width: 350px;
padding: 15px 20px;
background-color: #fff;
border-left: 4px solid #2271b1;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 9999;
transform: translateX(120%);
transition: transform 0.3s ease;
}
.upkyk-admin-notification.show {
transform: translateX(0);
}
.upkyk-admin-notification.success {
border-left-color: #46b450;
}
.upkyk-admin-notification.error {
border-left-color: #dc3232;
}
.upkyk-admin-notification.warning {
border-left-color: #ffb900;
}
.upkyk-notification-message {
margin-right: 20px;
}
.upkyk-notification-close {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 16px;
}
/* Form Layout */
.upkyk-form {
max-width: 100%;
background-color: #fff;
border-radius: 4px;
padding: 20px;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.upkyk-form-section {
margin-bottom: 30px;
border-bottom: 1px solid #eee;
padding-bottom: 20px;
}
.upkyk-form-section:last-child {
border-bottom: none;
margin-bottom: 0;
}
.upkyk-form-field {
margin-bottom: 15px;
}
/* Main Tabs - Admin Settings page specific tabs */
.upkyk-settings-tabs .upkyk-tab-links {
display: flex;
margin: 0 0 20px 0;
border-bottom: 1px solid #ccc;
padding: 0;
}
.upkyk-settings-tabs .upkyk-tab-link {
padding: 10px 15px;
margin-right: 5px;
cursor: pointer;
border: 1px solid #ccc;
border-bottom: none;
border-radius: 4px 4px 0 0;
background-color: #f1f1f1;
text-decoration: none;
color: #444;
font-weight: 600;
}
.upkyk-settings-tabs .upkyk-tab-link:hover,
.upkyk-settings-tabs .upkyk-tab-link:focus {
background-color: #f8f8f8;
color: #2271b1;
outline: none;
box-shadow: none;
}
.upkyk-settings-tabs .upkyk-tab-link.active {
background-color: #fff;
border-bottom: 1px solid #fff;
color: #2271b1;
margin-bottom: -1px;
}
.upkyk-tab-content {
background-color: #fff;
padding: 20px;
border-radius: 0 4px 4px 4px;
border-top: none;
}
.upkyk-tab-pane {
display: none;
}
.upkyk-tab-pane.active {
display: block;
}
/* Legacy tabs compatibility */
.upkyk-tab-links {
display: flex;
margin: 0;
padding: 0;
list-style: none;
border-bottom: 1px solid #ccc;
background-color: #f9f9f9;
}
.upkyk-tab-link {
padding: 12px 20px;
cursor: pointer;
font-weight: 500;
color: #1d2327;
text-decoration: none;
border: 1px solid transparent;
margin-bottom: -1px;
transition: all 0.2s ease;
}
.upkyk-tab-link:hover,
.upkyk-tab-link:focus {
background-color: #fff;
color: #2271b1;
outline: none;
box-shadow: none;
}
.upkyk-tab-link.active {
background-color: #fff;
color: #2271b1;
border-top: 2px solid #2271b1;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
border-bottom: 1px solid #fff;
}
/* Consistent Styling for Admin & Settings Tabs */
.upkyk-settings-tabs .upkyk-tab-links,
.upkyk-admin-tabs .upkyk-tab-links {
display: flex;
margin: 0;
padding: 0;
list-style: none;
border-bottom: 1px solid #ccc;
background-color: #f9f9f9;
}
.upkyk-settings-tabs .upkyk-tab-link,
.upkyk-admin-tabs .upkyk-tab-link {
padding: 12px 20px;
cursor: pointer;
font-weight: 500;
color: #1d2327;
text-decoration: none;
border: 1px solid transparent;
margin-bottom: -1px;
transition: all 0.2s ease;
}
.upkyk-settings-tabs .upkyk-tab-link:hover,
.upkyk-settings-tabs .upkyk-tab-link:focus,
.upkyk-admin-tabs .upkyk-tab-link:hover,
.upkyk-admin-tabs .upkyk-tab-link:focus {
background-color: #fff;
color: #2271b1;
outline: none;
box-shadow: none;
}
.upkyk-settings-tabs .upkyk-tab-link.active,
.upkyk-admin-tabs .upkyk-tab-link.active {
background-color: #fff;
color: #2271b1;
border-top: 2px solid #2271b1;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
border-bottom: 1px solid #fff;
}
/* Rest of existing CSS stays the same */
.upkyk-assistant-ai-admin {
max-width: 1100px;
margin: 20px 0;
padding: 0 20px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.upkyk-usage-info {
text-align: right;
}
.upkyk-plan {
font-weight: 600;
margin-bottom: 5px;
color: #3c434a;
}
.upkyk-usage-bar {
width: 200px;
height: 10px;
background: #f0f0f1;
border-radius: 5px;
overflow: hidden;
margin-bottom: 5px;
}
.upkyk-usage-progress {
height: 100%;
background: #39CCCC;
border-radius: 5px;
transition: width 0.3s ease;
}
.upkyk-usage-text {
font-size: 12px;
color: #646970;
}
/* Preview Animation Styles */
@keyframes previewFadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes previewSlideUp {
0% { transform: translateY(20px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes previewSlideLeft {
0% { transform: translateX(20px); opacity: 0; }
100% { transform: translateX(0); opacity: 1; }
}
@keyframes previewSlideRight {
0% { transform: translateX(-20px); opacity: 0; }
100% { transform: translateX(0); opacity: 1; }
}
@keyframes previewScaleIn {
0% { transform: scale(0.8); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
/* Animation in Preview */
.upkyk-preview-chat.animated {
animation-duration: 0.7s !important;
animation-fill-mode: both !important;
}
.upkyk-animation-fade .upkyk-preview-chat.animated {
animation-name: previewFadeIn !important;
}
.upkyk-animation-slide .upkyk-preview-chat.animated {
animation-name: previewSlideUp !important;
}
.upkyk-animation-slide-left .upkyk-preview-chat.animated {
animation-name: previewSlideLeft !important;
}
.upkyk-animation-slide-right .upkyk-preview-chat.animated {
animation-name: previewSlideRight !important;
}
.upkyk-animation-scale .upkyk-preview-chat.animated {
animation-name: previewScaleIn !important;
}
/* Form Styling */
.upkyk-form-section {
background: #f6f7f7;
padding: 20px;
border-radius: 6px;
margin-bottom: 25px;
}
.upkyk-form-section h3 {
margin-top: 0;
margin-bottom: 15px;
font-size: 16px;
color: #3c434a;
}
.upkyk-form-field {
margin-bottom: 20px;
}
.upkyk-form-field label {
display: block;
font-weight: 600;
margin-bottom: 5px;
color: #23282d;
}
/* Label with badge positioning */
.label-with-badge {
position: relative;
margin-bottom: 15px;
padding-bottom: 10px;
}
.label-with-badge h3,
.label-with-badge label {
margin: 0;
padding: 0;
display: inline-block;
}
/* Override form field label display for label-with-badge */
.upkyk-form-field .label-with-badge label {
display: inline-block;
}
.label-with-badge .pro-feature-badge {
display: inline-block;
position: relative;
top: 0;
margin-left: 8px;
vertical-align: middle;
}
/* Override the absolute positioning for badges in pro-feature-wrapper */
.pro-feature-badge {
position: relative !important;
top: 0 !important;
right: auto !important;
}
/* Remove the horizontal line under section headings with PRO badges */
.upkyk-form-section > .label-with-badge {
border-bottom: none !important;
}
.label-with-badge .pro-feature-badge-info {
position: absolute;
top: 24px;
left: 100px;
background: #fff;
padding: 10px 15px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
z-index: 30;
width: 250px;
display: none;
font-size: 13px;
line-height: 1.5;
cursor: default;
border: 1px solid #ddd;
pointer-events: none;
}
.label-with-badge .pro-feature-badge:hover + .pro-feature-badge-info,
.pro-feature-badge:hover + .pro-feature-badge-info {
display: block;
}
.upkyk-form-field input[type="text"],
.upkyk-form-field input[type="number"],
.upkyk-form-field input[type="email"],
.upkyk-form-field input[type="password"],
.upkyk-form-field select,
.upkyk-form-field textarea {
width: 100%;
max-width: 400px;
padding: 8px 12px;
border: 1px solid #dcdcde;
border-radius: 4px;
background: white;
}
.upkyk-form-field textarea {
height: 100px;
}
.upkyk-form-field .description {
margin-top: 2px;
color: #646970;
font-size: 13px;
line-height: 1.4;
}
/* Checkbox styling */
.upkyk-form-field label[for="upkyk_assistant_ai_enabled"],
.upkyk-form-field label[for="upkyk_assistant_ai_typing_animation"] {
display: flex;
align-items: center;
font-weight: normal;
}
.upkyk-form-field label[for="upkyk_assistant_ai_enabled"] input,
.upkyk-form-field label[for="upkyk_assistant_ai_typing_animation"] input {
margin-right: 8px;
}
/* Avatar upload */
.upkyk-avatar-upload {
display: flex;
align-items: center;
margin-bottom: 10px;
}
#upkyk_avatar_preview {
width: 60px;
height: 60px;
background: #dcdcde;
border-radius: 50%;
overflow: hidden;
margin-right: 15px;
display: flex;
align-items: center;
justify-content: center;
}
#upkyk_avatar_preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
.upkyk-no-avatar {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-image: url('../../assets/images/chat-icons/person-silhouette.svg');
background-position: center;
background-repeat: no-repeat;
background-size: 30px;
}
.upkyk-avatar-upload .button {
margin-right: 10px;
}
/* Preview Container */
.upkyk-preview-container {
display: flex;
flex-wrap: wrap;
gap: 30px;
align-items: flex-start;
margin-top: 15px;
}
/* Preview Section Boxes */
.upkyk-preview-section {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.upkyk-preview-section h4 {
margin-top: 0;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
color: #23282d;
}
/* Chat Preview */
.upkyk-preview-chat {
width: 300px;
height: 400px;
background: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
font-family: var(--preview-font, Roboto, sans-serif);
display: flex;
flex-direction: column;
}
.upkyk-preview-header {
display: flex;
align-items: center;
padding: 10px 15px;
background-color: var(--preview-bot-color, #0084ff);
color: white;
}
.upkyk-preview-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
overflow: hidden;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.upkyk-preview-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.upkyk-preview-no-avatar {
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.3);
display: flex;
align-items: center;
justify-content: center;
}
.upkyk-preview-title {
font-weight: bold;
font-size: 16px;
}
.upkyk-preview-messages {
flex: 1;
padding: 15px;
height: 200px;
overflow-y: auto;
background: #f8f9fa;
display: flex;
flex-direction: column;
gap: 10px;
}
.upkyk-preview-message {
border-radius: 18px;
max-width: 80%;
}
.upkyk-preview-bot {
align-self: flex-start;
background-color: var(--preview-bot-color, #0084ff);
color: white;
}
.upkyk-preview-user {
align-self: flex-end;
background-color: var(--preview-user-color, #e9ecef);
color: #212529;
}
.upkyk-preview-input {
display: flex;
padding: 10px;
background: white;
border-top: 1px solid #e9ecef;
}
.upkyk-preview-input input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ced4da;
border-radius: 20px;
margin-right: 8px;
}
.upkyk-preview-input button {
background-color: var(--preview-bot-color, #0084ff);
color: white;
border: none;
border-radius: 50%;
width: 35px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
/* Button Preview */
.upkyk-preview-toggle-container {
display: flex;
flex-direction: column;
align-items: center;
}
.upkyk-preview-toggle {
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Button Shapes */
.upkyk-preview-shape-circle {
border-radius: 50%;
}
.upkyk-preview-shape-square {
border-radius: 0;
}
.upkyk-preview-shape-rounded {
border-radius: 10px;
}
/* Button Sizes */
.upkyk-preview-size-small {
width: 45px;
height: 45px;
}
.upkyk-preview-size-medium {
width: 50px;
height: 50px;
}
.upkyk-preview-size-large {
width: 59px;
height: 59px;
}
/* Icon sizes for different button sizes */
.upkyk-preview-size-small img {
width: 30px;
height: 30px;
}
.upkyk-preview-size-medium img {
width: 41px;
height: 41px;
}
.upkyk-preview-size-large img {
width: 47px;
height: 47px;
}
/* Button with notification dot */
.upkyk-preview-toggle {
position: relative;
}
.upkyk-preview-notification-dot {
width: 13px;
height: 13px;
background-color: #ff3b30;
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
border: 2px solid white;
}
/* Message Font Sizes */
.upkyk-preview-message.small {
font-size: 12px;
line-height: 1.3;
}
.upkyk-preview-message.medium {
font-size: 14px;
line-height: 1.5;
}
.upkyk-preview-message.large {
font-size: 16px;
line-height: 1.7;
}
/* Message Padding */
.upkyk-preview-message.compact {
padding: 6px 10px;
}
.upkyk-preview-message.normal {
padding: 10px 15px;
}
.upkyk-preview-message.spacious {
padding: 14px 20px;
}
/* Branding Preview */
.upkyk-preview-branding {
text-align: center;
padding: 5px;
font-size: 11px;
background: #f5f5f5;
border-top: 1px solid #e0e0e0;
color: #999;
}
/* Range Sliders */
.upkyk-range-slider {
position: relative;
margin: 30px 0 20px;
padding-top: 20px;
clear: both;
}
.upkyk-range-slider input[type="range"] {
width: 100%;
margin: 5px 0;
background: #f0f0f0;
height: 10px;
border-radius: 5px;
-webkit-appearance: none;
appearance: none;
}
.upkyk-range-slider input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: #0073aa;
cursor: pointer;
border-radius: 50%;
}
.upkyk-range-slider input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
background: #0073aa;
cursor: pointer;
border-radius: 50%;
border: none;
}
.upkyk-range-value {
position: absolute;
top: -5px;
left: 50%;
transform: translateX(-50%);
display: inline-block;
padding: 3px 8px;
background: #f0f0f0;
border: 1px solid #ccc;
border-radius: 3px;
font-weight: bold;
text-align: center;
min-width: 30px;
z-index: 10;
}
.upkyk-range-labels {
display: flex;
justify-content: space-between;
margin-top: 10px;
font-size: 12px;
width: 100%;
}
.range-label-left {
color: #666;
text-align: left;
}
.range-label-right {
color: #666;
text-align: right;
}
/* Settings errors/notices */
.upkyk-assistant-ai-admin .notice {
margin: 15px 0;
padding: 10px 15px;
border-left-width: 4px;
background: #fff;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.upkyk-assistant-ai-admin .notice-success {
border-left-color: #46b450;
}
.upkyk-assistant-ai-admin .notice-error {
border-left-color: #dc3232;
}
.upkyk-assistant-ai-admin .notice-info {
border-left-color: #00a0d2;
}
.upkyk-assistant-ai-admin .notice-warning {
border-left-color: #ffb900;
}
/* Length Control */
.upkyk-length-control {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 5px;
}
.upkyk-length-control select {
flex: 1;
}
/* Document Management UI */
.upkyk-documents-buttons {
margin-top: 15px;
display: flex;
gap: 10px;
}
.upkyk-status-badge {
display: inline-block;
padding: 3px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
text-align: center;
}
.upkyk-status-pending {
background-color: #f0f0f1;
color: #50575e;
}
.upkyk-status-processed {
background-color: #edfaef;
color: #2a7d3f;
}
.upkyk-status-error {
background-color: #fcf0f1;
color: #b32d2e;
}
/* Document modal styles */
.upkyk-modal-large {
max-width: 800px;
width: 80%;
}
.upkyk-document-metadata {
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 4px;
}
.upkyk-document-content-container {
max-height: 400px;
overflow-y: auto;
padding: 10px;
border: 1px solid #e5e5e5;
border-radius: 4px;
}
.upkyk-document-content,
.upkyk-context-text {
white-space: pre-wrap;
word-break: break-word;
max-height: 300px;
overflow-y: auto;
background: #f8f9fa;
padding: 10px;
border: 1px solid #e5e5e5;
border-radius: 4px;
font-family: monospace;
font-size: 12px;
line-height: 1.4;
}
.upkyk-qa-pairs {
display: flex;
flex-direction: column;
gap: 15px;
}
.upkyk-qa-pair {
padding: 10px;
border: 1px solid #e5e5e5;
border-radius: 4px;
background: #f8f9fa;
}
.upkyk-question {
margin-bottom: 5px;
padding-bottom: 5px;
border-bottom: 1px dashed #e5e5e5;
}
/* Test results modal styles */
.upkyk-test-info {
margin-bottom: 15px;
padding: 10px;
background: #f0f6fc;
border-radius: 4px;
}
.upkyk-ai-response {
margin-bottom: 15px;
}
.upkyk-response-text {
padding: 15px;
background: #f8f9fa;
border: 1px solid #e5e5e5;
border-radius: 4px;
white-space: pre-wrap;
}
.upkyk-context-info,
.upkyk-documents-used {
margin-top: 15px;
padding: 10px;
background: #f8f9fa;
border: 1px solid #e5e5e5;
border-radius: 4px;
}
/* Table Styling Improvements */
.upkyk-contacts-table-container,
.upkyk-history-table-container {
background: white;
border: 1px solid #e5e5e5;
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
padding: 0;
overflow: hidden;
margin-top: 20px;
}
.upkyk-history-table,
.upkyk-contacts-table {
border-collapse: collapse;
width: 100%;
margin-top: 0;
}
.upkyk-contacts-table thead th,
.upkyk-history-table thead th {
background-color: #2271b1 !important; /* WordPress standard blue */
color: #fff !important;
padding: 12px !important;
font-weight: 600 !important;
border-bottom: none;
text-align: left;
border-top: 1px solid #1d618a;
}
.upkyk-contacts-table tbody td,
.upkyk-history-table tbody td {
padding: 12px 10px;
vertical-align: middle;
border-top: 1px solid #f2f2f2;
}
.upkyk-contacts-table tbody tr:hover,
.upkyk-history-table tbody tr:hover {
background-color: #f0f6fc;
}
.upkyk-contacts-table tbody tr:nth-child(even),
.upkyk-history-table tbody tr:nth-child(even) {
background-color: #f9f9f9;
}
.upkyk-contacts-table tbody tr:nth-child(odd),
.upkyk-history-table tbody tr:nth-child(odd) {
background-color: #ffffff;
}
.upkyk-contacts-table .check-column,
.upkyk-history-table .check-column {
text-align: center;
width: 30px;
}
/* API Diagnostics Styles */
.upkyk-api-diagnostics {
max-width: 1100px;
margin: 20px 0;
background: #fff;
padding: 20px;
border-radius: 3px;
box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.upkyk-api-diagnostics h2 {
font-size: 1.3em;
margin: 1em 0;
padding: 0;
font-weight: 600;
}
.upkyk-api-diagnostics .form-table {
border-collapse: collapse;
margin-top: 0.5em;
width: 100%;
clear: both;
}
.upkyk-api-diagnostics .form-table th {
vertical-align: top;
text-align: left;
padding: 15px 10px 15px 0;
width: 200px;
line-height: 1.3;
font-weight: 600;
}
.upkyk-api-diagnostics .form-table td {
margin-bottom: 9px;
padding: 15px 10px;
line-height: 1.3;
vertical-align: middle;
}
.upkyk-status-success {
color: #46b450;
font-weight: bold;
margin-right: 5px;
}
.upkyk-status-error {
color: #dc3232;
font-weight: bold;
margin-right: 5px;
}
.upkyk-diagnostic-details {
background: #f8f8f8;
border: 1px solid #e5e5e5;
border-radius: 3px;
padding: 10px;
margin-bottom: 20px;
overflow: auto;
max-height: 300px;
}
.upkyk-diagnostic-details pre {
margin: 0;
white-space: pre-wrap;
font-size: 13px;
font-family: Consolas, Monaco, monospace;
}
.upkyk-api-diagnostics .notice {
margin: 15px 0;
padding: 10px 15px;
border-left-width: 4px;
background: #fff;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.upkyk-api-diagnostics .notice-success {
border-left-color: #46b450;
}
.upkyk-api-diagnostics .notice-error {
border-left-color: #dc3232;
}
.upkyk-api-diagnostics input[type="password"],
.upkyk-api-diagnostics input[type="text"] {
width: 100%;
max-width: 400px;
padding: 8px 12px;
border: 1px solid #dcdcde;
border-radius: 4px;
background: white;
}
.upkyk-api-diagnostics .description {
font-size: 13px;
margin: 2px 0 5px;
color: #646970;
}
.upkyk-api-diagnostics .submit {
padding: 10px 0;
margin-top: 10px;
}
.upkyk-test-results {
margin: 20px 0;
padding: 15px;
background: #f8f8f8;
border: 1px solid #e5e5e5;
border-radius: 3px;
}
.upkyk-test-results h3 {
margin-top: 0;
font-size: 16px;
font-weight: 600;
}
.model-selector {
margin: 15px 0;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.test-model-button {
margin-right: 5px !important;
}
#custom-model-name {
margin: 0 5px;
width: 250px;
}
.upkyk-action-bar button {
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 10px;
vertical-align: middle;
line-height: normal;
}
.upkyk-action-bar button i,
.upkyk-action-bar button .dashicons {
margin-right: 8px;
font-size: 18px;
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
vertical-align: middle;
}
#upkyk-admin-notices {
margin: 15px 0;
}
#upkyk-admin-notices .notice {
margin: 5px 0 15px;
position: relative;
}
/* Hide redundant success messages */
#upkyk-admin-notices .notice:not(:last-child) {
display: none;
}
/* Fix for Knowledge Base tab notifications */
#knowledge-base .notice-success,
#training .notice-success {
display: none !important;
}
/* Only show the most recent notification */
.notice:contains("Training data loaded") {
display: none !important;
}
.upkyk-upload-form {
display: flex;
flex-direction: column;
margin-bottom: 20px;
}
.upkyk-file-input {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.upkyk-upload-button {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background-color: #0085ba;
color: white;
border-radius: 4px;
cursor: pointer;
font-weight: normal;
transition: background-color 0.2s;
}
.upkyk-upload-button:hover {
background-color: #006799;
}
#upkyk-upload-status {
margin-top: 10px;
padding: 8px;
border-radius: 4px;
}
#upkyk-upload-status.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
#upkyk-upload-status.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
#upkyk-upload-status.info {
background-color: #d1ecf1;
color: #0c5460;
border: 1px solid #bee5eb;
}
/* File input styles */
.upkyk-selected-file {
margin-left: 15px;
font-style: italic;
color: #555;
padding: 5px 0;
}
/* Status indicators on training page */
.upkyk-training-status-panel {
margin-bottom: 20px;
}
.upkyk-status-indicator {
display: inline-flex;
align-items: center;
padding: 8px 12px;
border-radius: 4px;
font-weight: 500;
background-color: #f1f1f1;
color: #666;
}
.upkyk-status-indicator.trained {
background-color: #d4edda;
color: #155724;
}
.upkyk-status-indicator.not_trained {
background-color: #f8f9fa;
color: #6c757d;
}
.upkyk-status-indicator.needs_training {
background-color: #f8d7da;
color: #721c24;
}
.upkyk-status-icon {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
}
.upkyk-status-indicator.trained .upkyk-status-icon {
background-color: #28a745;
}
.upkyk-status-indicator.not_trained .upkyk-status-icon {
background-color: #6c757d;
}
.upkyk-status-indicator.needs_training .upkyk-status-icon {
background-color: #dc3545;
}
.upkyk-pending-count {
font-size: 0.9em;
font-weight: normal;
margin-left: 5px;
}
/* Contact Modal Styles - For conversation display */
.upkyk-chat-history {
max-height: 400px;
overflow-y: auto;
padding: 15px;
background: #f9f9f9;
border-radius: 6px;
border: 1px solid #e0e0e0;
margin-top: 15px;
}
.upkyk-chat-message {
display: flex;
margin-bottom: 15px;
position: relative;
}
.upkyk-avatar {
width: 35px;
height: 35px;
border-radius: 50%;
margin-right: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 16px;
flex-shrink: 0;
}
.upkyk-user-avatar {
background-color: #e9ecef;
color: #495057;
}
.upkyk-bot-avatar {
background-color: #0082C8;
color: #fff;
overflow: hidden;
}
.upkyk-bot-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.upkyk-message-content {
padding: 10px 15px;
border-radius: 18px;
max-width: 80%;
line-height: 1.4;
position: relative;
word-wrap: break-word;
}
.upkyk-user-message {
justify-content: flex-end;
}
.upkyk-user-message .upkyk-avatar {
order: 2;
margin-left: 10px;
margin-right: 0;
}
.upkyk-user-message .upkyk-message-content {
background-color: #e9ecef;
color: #212529;
order: 1;
border-bottom-right-radius: 4px;
}
.upkyk-bot-message .upkyk-message-content {
background-color: #0082C8;
color: #fff;
border-bottom-left-radius: 4px;
}
.upkyk-no-messages {
text-align: center;
padding: 20px;
color: #888;
font-style: italic;
}
/* Make modal larger for better conversation display */
.upkyk-modal-content {
max-width: 700px;
width: 90%;
}
.upkyk-contact-conversation-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.upkyk-message-content {
max-width: 90%;
}
.upkyk-modal-content {
width: 95%;
}
}
/* Contacts Page Styles */
.upkyk-contacts-container {
margin-top: 20px;
}
.upkyk-contacts-actions {
display: flex;
justify-content: space-between;
margin: 20px 0;
padding: 15px;
background: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: 4px;
}
.upkyk-action-buttons {
display: flex;
gap: 12px;
}
.upkyk-action-buttons .button {
display: flex;
align-items: center;
padding: 6px 15px;
}
.upkyk-action-buttons .button .dashicons {
margin-right: 5px;
}
.upkyk-danger-zone {
display: flex;
align-items: center;
gap: 10px;
}
.upkyk-danger-note {
color: #d63638;
font-size: 12px;
max-width: 320px;
}
/* Contacts Filters Styling */
.upkyk-contacts-filters {
padding: 15px;
margin-bottom: 20px;
background: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: 4px;
}
.upkyk-flex-form {
display: flex;
flex-wrap: wrap;
gap: 15px;
align-items: flex-end;
}
.upkyk-filter-group {
margin-bottom: 10px;
}
.upkyk-filter-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
}
.upkyk-search-group {
display: flex;
gap: 8px;
flex-grow: 1;
}
.upkyk-search-group input[type="text"] {
flex-grow: 1;
}
/* Button icon alignment */
button.button .dashicons {
line-height: 1.4;
}
/* Button styles */
.button-danger {
background-color: #f44336 !important;
color: white !important;
border-color: #d32f2f !important;
}
.button-danger:hover {
background-color: #d32f2f !important;
}
.upkyk-contacts-table button {
margin-right: 5px !important;
}
.upkyk-view-contact-conversation,
.upkyk-delete-contact {
min-width: 110px;
text-align: center;
margin-bottom: 5px !important;
display: inline-block;
}
/* Contact conversation styling */
.upkyk-contact-conversation {
max-height: 400px;
overflow-y: auto;
padding: 5px;
margin-top: 10px;
background: #f8f8f8;
border-radius: 5px;
border: 1px solid #e0e0e0;
}
/* Make the conversation styling match chat history */
.upkyk-conversation-messages {
display: flex;
flex-direction: column;
gap: 10px;
padding: 10px;
}
.upkyk-conversation-messages .upkyk-message {
position: relative;
padding: 12px 15px;
border-radius: 8px;
max-width: 85%;
margin-bottom: 10px;
line-height: 1.4;
word-wrap: break-word;
}
.upkyk-conversation-messages .upkyk-bot-message {
align-self: flex-start;
background-color: #39CCCC;
color: white;
border-bottom-left-radius: 3px;
}
.upkyk-conversation-messages .upkyk-user-message {
align-self: flex-end;
background-color: #39CCCC;
color: white;
border-bottom-right-radius: 3px;
}
.upkyk-conversation-messages .upkyk-message-content {
white-space: pre-wrap;
}
.upkyk-conversation-messages .upkyk-message-time {
font-size: 11px;
opacity: 0.7;
margin-top: 5px;
text-align: right;
}
.upkyk-contact-conversation-header {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
/* Button Styling Improvements */
.upkyk-action-buttons button,
.upkyk-danger-zone button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 140px;
text-align: center;
height: auto;
padding: 8px 12px;
}
.upkyk-action-buttons .dashicons,
.upkyk-danger-zone .dashicons {
margin-right: 8px;
}
/* Table Styling Improvements */
.upkyk-contacts-table-container,
.upkyk-history-table-container {
background: white;
border: 1px solid #e5e5e5;
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
padding: 0;
overflow: hidden;
}
.upkyk-contacts-table thead th,
.upkyk-history-table thead th {
background-color: #2271b1 !important; /* WordPress standard blue */
color: #fff !important;
padding: 12px !important;
font-weight: 600 !important;
border-bottom: none;
text-align: left;
border-top: 1px solid #1d618a;
}
.upkyk-contacts-table tbody tr:hover,
.upkyk-history-table tbody tr:hover {
background-color: #f0f6fc;
}
.upkyk-contacts-table .check-column,
.upkyk-history-table .check-column {
text-align: center;
}
.upkyk-pagination {
margin-top: 15px;
text-align: center;
padding: 10px;
}
.upkyk-pagination .page-numbers {
display: inline-block;
min-width: 30px;
height: 30px;
line-height: 28px;
text-align: center;
margin: 0 2px;
text-decoration: none;
border: 1px solid #ddd;
border-radius: 3px;
}
.upkyk-pagination .page-numbers.current {
background-color: #2271b1 !important; /* WordPress standard blue */
border-color: #1d618a !important; /* Slightly darker border */
color: #fff !important;
}
/* History and Contacts Table Header Actions */
.upkyk-history-actions,
.upkyk-contacts-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin: 20px 0;
padding: 15px;
background: #f9f9f9;
border-radius: 6px;
border: 1px solid #e0e0e0;
}
.upkyk-history-actions .button,
.upkyk-action-buttons .button,
.upkyk-danger-zone .button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 140px;
text-align: center;
height: auto;
padding: 8px 12px;
}
.upkyk-history-actions .dashicons,
.upkyk-action-buttons .dashicons,
.upkyk-danger-zone .dashicons {
margin-right: 8px;
}
/* History page buttons consistency */
#upkyk-export-history,
#upkyk-delete-history {
min-width: 140px;
}
/* Improve Message Appearance */
.upkyk-message {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.upkyk-message .upkyk-message-content {
white-space: pre-wrap;
word-break: break-word;
}
/* Ensure buttons in action bars have consistent height */
.upkyk-filter-group button,
.upkyk-action-buttons button {
height: auto;
min-height: 36px;
line-height: 1.3;
}
/* Custom SVG upload styling */
.upkyk-svg-upload {
display: flex;
align-items: center;
margin-bottom: 10px;
}
#upkyk_svg_preview {
margin-right: 15px;
}
.upkyk-svg-preview-container {
border-radius: 50%;
overflow: hidden;
}
.upkyk-no-svg {
font-size: 11px;
color: #646970;
background: #f0f0f1;
padding: 10px;
border-radius: 4px;
display: inline-block;
}
.upkyk-svg-upload .button {
margin-right: 8px;
}
/* Section Intro - Add this to match training page */
.upkyk-section-intro {
margin-bottom: 25px;
padding: 0 10px;
}
.upkyk-section-intro h2 {
font-size: 24px;
margin-bottom: 15px;
color: #23282d;
}
.upkyk-section-intro p {
color: #666;
font-size: 14px;
margin-top: 10px;
line-height: 1.5;
}
/* Apply consistent styling to various training sections */
.upkyk-training-section {
background: #fff;
padding: 20px;
border-radius: 5px;
margin-bottom: 25px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.upkyk-form {
margin-top: 10px;
}
/* Preset size description for window size settings */
.preset-size-description {
margin-top: 10px;
padding: 10px;
background: #f8f8f8;
border-left: 4px solid #2271b1;
font-size: 13px;
}
.preset-size-description p {
margin: 0;
line-height: 1.5;
}
/* Additional settings styles */
.nav-tab-wrapper {
margin-bottom: 20px;
}
.upkyk-settings-container {
max-width: 100%;
padding: 20px;
}
.color-picker {
max-width: 80px !important;
}
/* Fix for tab pane display */
.upkyk-tab-content {
padding: 25px;
}
.upkyk-tab-pane {
display: none;
}
.upkyk-tab-pane.active {
display: block;
}
/* Fix for color picker width */
.wp-picker-container {
display: inline-block;
}
/* AI Settings Tab */
.upkyk-settings-section {
background: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Slider styles */
.upkyk-slider-container {
display: flex;
align-items: center;
margin-top: 5px;
}
.upkyk-slider-label {
font-size: 12px;
color: #646970;
font-weight: 500;
width: 70px;
text-align: center;
}
.upkyk-slider-label:first-child {
text-align: right;
padding-right: 10px;
}
.upkyk-slider-label:last-of-type {
text-align: left;
padding-left: 10px;
}
.upkyk-slider {
flex-grow: 1;
margin-right: 15px;
height: 5px;
background: #ddd;
outline: none;
-webkit-appearance: none;
appearance: none;
}
.upkyk-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
background: #2271b1;
border-radius: 50%;
cursor: pointer;
}
.upkyk-slider::-moz-range-thumb {
width: 18px;
height: 18px;
background: #2271b1;
border-radius: 50%;
cursor: pointer;
border: none;
}
.upkyk-slider-value {
min-width: 40px;
padding: 3px 8px;
background: #2271b1;
color: white;
text-align: center;
border-radius: 3px;
font-weight: 500;
}
/* Checkbox styling for settings */
.upkyk-checkbox-label {
display: flex;
align-items: center;
font-weight: 600;
}
.upkyk-checkbox-label input[type="checkbox"] {
margin-right: 8px;
}
/* Form actions in settings */
.upkyk-form-actions {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #eee;
}
/* Save Confirmation Animation */
.upkyk-save-confirmation {
position: fixed;
z-index: 99999;
pointer-events: none;
}
.upkyk-save-success {
display: flex;
align-items: center;
background-color: #fff;
border-left: 4px solid #46b450;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 10px 15px;
opacity: 0;
transform: translateY(10px);
transition: all 0.3s ease;
}
.upkyk-save-success.show {
opacity: 1;
transform: translateY(0);
}
.upkyk-save-icon {
width: 24px;
height: 24px;
margin-right: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.upkyk-save-icon svg {
fill: #46b450;
width: 24px;
height: 24px;
}
.upkyk-save-message {
font-size: 14px;
color: #444;
font-weight: 500;
}
/* Button success state */
.button.button-primary.success {
background-color: #46b450;
border-color: #389e42;
transition: all 0.3s ease;
}
.button.button-primary.success .dashicons {
margin-right: 5px;
}
/* Save button hover animation */
.upkyk-form-actions button[type="submit"]:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}
/* Pro Feature Styling */
.pro-feature-disabled {
position: relative;
opacity: 0.75;
filter: grayscale(40%);
pointer-events: none;
user-select: none;
position: relative;
overflow: hidden;
cursor: not-allowed;
}
.pro-feature-disabled select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: none !important;
padding-right: 8px;
}
.pro-feature-disabled::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.5);
z-index: 10;
pointer-events: none;
}
.pro-feature-badge {
position: absolute;
top: 0;
right: 0;
z-index: 20;
pointer-events: auto;
cursor: pointer;
transition: transform 0.2s ease;
}
.pro-feature-badge:hover {
transform: scale(1.1);
}
.pro-feature-wrapper {
position: relative;
margin-bottom: 20px;
}
.pro-feature-badge-info {
position: absolute;
top: 24px;
right: 0;
background: #fff;
padding: 10px 15px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
z-index: 30;
width: 250px;
display: none;
font-size: 13px;
line-height: 1.5;
cursor: default;
border: 1px solid #ddd;
}
.pro-feature-badge:hover + .pro-feature-badge-info {
display: block;
}
/* Custom PRO Badge Override */
.pro-feature-badge img {
width: auto;
height: auto;
max-width: none;
max-height: 24px;
}
/* Icon Selector Modal */
.upkyk-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
overflow: auto;
}
.upkyk-modal-content {
position: relative;
background-color: #fff;
margin: 5% auto;
padding: 20px;
border-radius: 5px;
width: 80%;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.upkyk-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.upkyk-modal-title {
font-size: 18px;
font-weight: 600;
margin: 0;
}
.upkyk-modal-close {
cursor: pointer;
font-size: 20px;
color: #666;
transition: color 0.2s;
}
.upkyk-modal-close:hover {
color: #dc3232;
}
.upkyk-icon-search {
width: 100%;
margin-bottom: 20px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.upkyk-icon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 15px;
margin-top: 20px;
}
.upkyk-icon-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15px;
border: 1px solid #eee;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.upkyk-icon-item:hover {
background-color: #f0f7ff;
border-color: #2271b1;
transform: translateY(-2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.upkyk-icon-item.selected {
background-color: #f0f7ff;
border-color: #2271b1;
border-width: 2px;
transform: translateY(-2px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.upkyk-icon-item.selected .upkyk-icon-preview {
background-color: #2271b1;
}
.upkyk-icon-item i {
display: none !important;
}
.upkyk-icon-item span {
font-size: 12px;
text-align: center;
color: #555;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-top: 8px;
}
.upkyk-icon-select-button {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px;
padding: 8px 12px;
background-color: #f0f0f1;
border: 1px solid #c3c4c7;
border-radius: 3px;
cursor: pointer;
font-size: 13px;
transition: all 0.2s;
}
.upkyk-icon-select-button:hover {
background-color: #f6f7f7;
border-color: #8c8f94;
}
/* Icon Preview Styles - Complete rewrite */
.upkyk-icon-preview {
position: relative;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 8px;
background-color: #39CCCC;
border-radius: 50%;
}
/* Direct background images for each icon type */
.upkyk-icon-preview.chat-balloon {
background-image: url('../../../assets/images/chat-icons/chat-balloon.svg');
background-color: #39CCCC;
}
.upkyk-icon-preview.comment {
background-image: url('../../../assets/images/chat-icons/comment.svg');
background-color: #39CCCC;
}
.upkyk-icon-preview.comments {
background-image: url('../../../assets/images/chat-icons/comments.svg');
background-color: #39CCCC;
}
.upkyk-icon-preview.robot {
background-image: url('../../../assets/images/chat-icons/robot.svg');
background-color: #39CCCC;
}
.upkyk-icon-preview.question {
background-image: url('../../../assets/images/chat-icons/question-circle.svg');
background-color: #39CCCC;
}
.upkyk-icon-preview.envelope {
background-image: url('../../../assets/images/chat-icons/envelope.svg');
background-color: #39CCCC;
}
/* Icon Selector Modal Specific Styles */
#upkyk_icon_selector_modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
overflow: auto;
}
#upkyk_icon_selector_modal .upkyk-modal-content {
position: relative;
background-color: #fff;
margin: 5% auto;
padding: 20px;
border-radius: 5px;
width: 80%;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#upkyk_icon_selector_modal .upkyk-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
#upkyk_icon_selector_modal h3 {
font-size: 18px;
font-weight: 600;
margin: 0;
}
#upkyk_icon_selector_modal .close-modal {
cursor: pointer;
background: none;
border: none;
color: #666;
font-size: 20px;
transition: color 0.2s;
}
#upkyk_icon_selector_modal .close-modal:hover {
color: #dc3232;
}
#upkyk_icon_search {
width: 100%;
margin-bottom: 20px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
#upkyk_icon_selector_modal .upkyk-icon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 15px;
margin-top: 20px;
}
.upkyk-icon-item .upkyk-icon-preview {
width: 60px;
height: 60px;
margin-bottom: 8px;
background-color: #39CCCC;
border-radius: 50%;
}
.upkyk-icon-select-button .upkyk-icon-preview {
width: 24px;
height: 24px;
margin-bottom: 0;
margin-right: 5px;
background-size: 16px;
}
/* Icon classes for admin icon selector */
.upkyk-icon {
display: inline-block;
width: 24px;
height: 24px;
margin-bottom: 8px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
.upkyk-icon-chat-balloon {
background-image: url('../../../assets/images/chat-icons/chat-balloon.svg');
}
.upkyk-icon-chat,
.upkyk-icon-comment {
background-image: url('../../../assets/images/chat-icons/comment.svg');
}