File: /home/salamatk/www/wp-content/plugins/woodmart-plus/assets/admin/css/chatbot-setting.css
.chatbot-rag-settings-wrapper {
max-width: 1000px;
margin: 0 auto;
padding: 20px;
}
/* حالت فرم */
.rag-minimal-form {
background: #fff;
border-radius: 12px;
padding: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.rag-form-header {
text-align: center;
margin-bottom: 30px;
}
.rag-form-icon {
width: 60px;
height: 60px;
margin: 0 auto 15px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.rag-form-header h2 {
font-size: 24px;
font-weight: 700;
color: #1a202c;
margin: 0 0 8px 0;
}
.rag-form-header p {
color: #718096;
margin: 0;
font-size: 14px;
}
.rag-post-types-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 30px;
}
.rag-post-type-card {
display: block;
cursor: pointer;
}
.rag-post-type-card input {
display: none;
}
.rag-post-type-card input:checked + .rag-card-content {
border-color: #667eea;
background: #f8faff;
}
.rag-card-content {
border: 2px solid #e2e8f0;
border-radius: 10px;
padding: 20px;
text-align: center;
transition: all 0.2s ease;
background: #fff;
}
.rag-post-type-card:hover .rag-card-content {
border-color: #cbd5e0;
transform: translateY(-2px);
}
.rag-card-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
color: #667eea;
}
.rag-card-title {
display: block;
font-weight: 600;
color: #2d3748;
margin-bottom: 4px;
}
.rag-card-slug {
font-size: 12px;
color: #a0aec0;
font-family: monospace;
}
.rag-form-actions {
text-align: center;
}
.rag-submit-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 8px;
padding: 12px 30px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
}
.rag-submit-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.rag-submit-btn svg {
width: 18px;
height: 18px;
}
/* نوتیس Cron */
.rag-cron-notice {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 20px;
margin-bottom: 25px;
position: relative;
overflow: hidden;
}
.rag-cron-pulse {
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.rag-cron-content {
display: flex;
align-items: center;
gap: 15px;
}
.rag-cron-spinner {
width: 24px;
height: 24px;
color: #667eea;
animation: spin 2s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.rag-cron-text {
flex: 1;
}
.rag-cron-text strong {
display: block;
color: #2d3748;
margin-bottom: 2px;
}
.rag-cron-text span {
font-size: 13px;
color: #718096;
}
/* بخش پست تایپها */
.rag-posttypes-section {
background: #fff;
border-radius: 10px;
padding: 25px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.rag-section-title {
font-size: 18px;
font-weight: 600;
color: #2d3748;
margin: 0 0 20px 0;
}
.rag-posttypes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.rag-posttype-item {
display: flex;
align-items: center;
gap: 12px;
padding: 15px;
background: #f7fafc;
border-radius: 8px;
border-left: 3px solid #48bb78;
}
.rag-posttype-icon {
width: 32px;
height: 32px;
color: #48bb78;
flex-shrink: 0;
}
.rag-posttype-info {
flex: 1;
}
.rag-posttype-name {
display: block;
font-weight: 500;
color: #2d3748;
margin-bottom: 2px;
}
.rag-posttype-status {
font-size: 12px;
color: #48bb78;
}
/* بخش خطاها */
.rag-errors-section {
background: #fff;
border-radius: 10px;
padding: 25px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.rag-errors-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.rag-error-item {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 15px;
background: #fff5f5;
border-radius: 6px;
border-left: 3px solid #f56565;
font-size: 14px;
}
.rag-error-item svg {
width: 18px;
height: 18px;
color: #f56565;
flex-shrink: 0;
}
/* دکمه دریافت مجدد */
.rag-refresh-section {
text-align: left;
}
.rag-refresh-btn {
background: #fff;
color: #667eea;
border: 2px solid #667eea;
border-radius: 8px;
padding: 10px 20px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
}
.rag-refresh-btn:hover {
background: #667eea;
color: white;
transform: translateY(-1px);
}
.rag-refresh-btn svg {
width: 18px;
height: 18px;
}
/* رسپانسیو */
@media (max-width: 768px) {
.chatbot-rag-settings-wrapper {
padding: 15px;
}
.rag-minimal-form,
.rag-posttypes-section,
.rag-errors-section {
padding: 20px;
}
.rag-post-types-grid,
.rag-posttypes-grid {
grid-template-columns: 1fr;
}
.rag-cron-content {
flex-direction: column;
text-align: center;
gap: 10px;
}
}
/* بخش لاگ ثبت نشده */
.rag-no-logs-section {
background: #fff;
border-radius: 12px;
padding: 40px 30px;
margin-bottom: 20px;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
border: 1px solid #e2e8f0;
}
.rag-no-logs-content {
max-width: 400px;
margin: 0 auto;
}
.rag-no-logs-icon {
width: 80px;
height: 80px;
margin: 0 auto 20px;
background: #f7fafc;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #a0aec0;
border: 2px dashed #e2e8f0;
}
.rag-no-logs-icon svg {
width: 40px;
height: 40px;
}
.rag-no-logs-content h3 {
font-size: 20px;
font-weight: 600;
color: #2d3748;
margin: 0 0 12px 0;
}
.rag-no-logs-content p {
color: #718096;
line-height: 1.6;
margin: 0 0 25px 0;
font-size: 14px;
}
.rag-no-logs-progress {
background: #f7fafc;
border-radius: 8px;
padding: 20px;
}
.rag-progress-bar {
width: 100%;
height: 6px;
background: #e2e8f0;
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
}
.rag-progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 3px;
width: 30%;
animation: progressPulse 2s ease-in-out infinite;
}
@keyframes progressPulse {
0%, 100% {
opacity: 0.7;
transform: scaleX(1);
}
50% {
opacity: 1;
transform: scaleX(1.05);
}
}
.rag-progress-text {
font-size: 13px;
color: #718096;
font-weight: 500;
}
/* انیمیشن برای نوتیس Cron */
.rag-cron-notice {
position: relative;
animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* استایلهای اضافی برای حالتهای مختلف */
.rag-posttypes-section,
.rag-errors-section {
animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* نوتیس Session */
.rag-notice {
margin-bottom: 20px;
animation: slideInDown 0.3s ease-out;
}
.rag-notice-content {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
border-left: 4px solid;
}
.rag-notice-success .rag-notice-content {
background: #f0fff4;
border-color: #48bb78;
color: #2d3748;
}
.rag-notice-success .rag-notice-icon {
color: #48bb78;
}
.rag-notice-error .rag-notice-content {
background: #fff5f5;
border-color: #f56565;
color: #2d3748;
}
.rag-notice-error .rag-notice-icon {
color: #f56565;
}
.rag-notice-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.rag-notice-icon svg {
width: 100%;
height: 100%;
}
.rag-notice-message {
flex: 1;
font-size: 14px;
font-weight: 500;
line-height: 1.4;
}
/* انیمیشن */
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* باکس اطلاعات */
.rag-info-box {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 24px;
margin-bottom: 30px;
}
.rag-info-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding-bottom: 16px;
border-bottom: 1px solid #e2e8f0;
}
.rag-info-icon {
width: 24px;
height: 24px;
color: #667eea;
flex-shrink: 0;
}
.rag-info-header h3 {
font-size: 18px;
font-weight: 600;
color: #2d3748;
margin: 0;
}
.rag-info-content {
display: flex;
flex-direction: column;
gap: 16px;
}
.rag-info-item {
display: flex;
align-items: flex-start;
gap: 12px;
}
.rag-info-number {
width: 24px;
height: 24px;
background: #667eea;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
flex-shrink: 0;
margin-top: 2px;
}
.rag-info-text {
color: #4a5568;
font-size: 14px;
line-height: 1.6;
flex: 1;
}
/* رسپانسیو */
@media (max-width: 768px) {
.rag-info-box {
padding: 20px;
}
.rag-info-item {
gap: 10px;
}
.rag-info-text {
font-size: 13px;
}
}
/* توضیح RAG */
.rag-explanation {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 16px;
margin-bottom: 20px;
}
.rag-explanation-header h4 {
font-size: 14px;
font-weight: 600;
color: #2d3748;
margin: 0 0 8px 0;
}
.rag-explanation-content p {
font-size: 13px;
color: #4a5568;
line-height: 1.5;
margin: 0 0 12px 0;
}
.rag-benefits {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.rag-benefit {
background: #f7fafc;
color: #4a5568;
padding: 4px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 500;
}
.header__erros_section {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}
.header__erros_section h3{
margin-bottom: 0px;
}
.header__erros_section a{
text-decoration: none;
}