File: /home/salamatk/www/wp-content/plugins/woodmart-plus/assets/admin/css/admin-campaign.css
/* استایل دکمه */
.add-campaign-btn {
background-color: #0073aa;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
margin: 20px 0;
transition: background-color 0.3s;
}
.add-campaign-btn:hover {
background-color: #005a87;
}
/* استایل کارت های کمپین */
.campaigns-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
margin: 20px 0;
padding: 20px;
}
.campaign-card {
background: white;
border: 1px solid #e1e5e9;
border-radius: 8px;
padding: 20px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
position: relative;
min-height: 150px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.campaign-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
border-color: #0073aa;
}
.campaign-card.active {
border-color: #00a32a;
background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}
.campaign-card.scheduled {
border-color: #f0b849;
background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}
.campaign-card.completed {
border-color: #666;
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.campaign-title {
font-size: 16px;
font-weight: bold;
color: #333;
margin-bottom: 10px;
line-height: 1.4;
}
.campaign-meta {
font-size: 12px;
color: #666;
margin-bottom: 15px;
}
.campaign-status {
position: absolute;
top: 10px;
left: 10px;
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
}
.status-active {
background-color: #00a32a;
color: white;
}
.status-scheduled {
background-color: #f0b849;
color: white;
}
.status-completed {
background-color: #666;
color: white;
}
.campaign-stats {
display: flex;
justify-content: space-between;
margin-top: auto;
padding-top: 15px;
border-top: 1px solid #f0f0f0;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 18px;
font-weight: bold;
color: #0073aa;
}
.stat-label {
font-size: 11px;
color: #666;
margin-top: 2px;
}
/* استایل پاپ آپ ایجاد کمپین */
.popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.popup-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
min-width: 500px;
max-width: 700px;
direction: rtl;
max-height: 90vh;
overflow-y: auto;
}
/* استایل پاپ آپ جزئیات کمپین */
.details-popup-content {
min-width: 600px;
max-width: 800px;
}
.popup-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
border-bottom: 1px solid #ddd;
padding-bottom: 15px;
}
.popup-title {
font-size: 18px;
font-weight: bold;
color: #333;
}
.close-btn {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #666;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.close-btn:hover {
color: #000;
}
.popup-body {
margin-bottom: 20px;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
.form-group textarea {
height: 100px;
resize: vertical;
}
.condition-row {
display: flex;
gap: 10px;
align-items: end;
}
.condition-row .form-group {
flex: 1;
margin-bottom: 0;
}
.condition-row .form-group:first-child {
flex: 2;
}
.popup-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
border-top: 1px solid #ddd;
padding-top: 15px;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.btn-primary {
background-color: #0073aa;
color: white;
}
.btn-primary:hover {
background-color: #005a87;
}
.btn-secondary {
background-color: #f1f1f1;
color: #333;
}
.btn-secondary:hover {
background-color: #e1e1e1;
}
.btn-danger {
background-color: #dc3545;
color: white;
}
.btn-danger:hover {
background-color: #c82333;
}
.btn-info {
background-color: #17a2b8;
color: white;
}
.btn-info:hover {
background-color: #138496;
}
.condition-info {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
padding: 10px;
margin-top: 10px;
font-size: 13px;
color: #6c757d;
}
/* استایل جزئیات کمپین */
.detail-section {
margin-bottom: 25px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
border-right: 4px solid #0073aa;
}
.detail-title {
font-size: 16px;
font-weight: bold;
color: #333;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.detail-content {
color: #555;
line-height: 1.6;
}
.sms-preview {
background-color: #fff;
border: 2px solid #0073aa;
border-radius: 8px;
padding: 15px;
font-family: 'Tahoma', sans-serif;
direction: rtl;
text-align: right;
position: relative;
}
.sms-preview::before {
content: "پیشنمایش پیامک";
position: absolute;
top: -10px;
right: 15px;
background-color: #0073aa;
color: white;
padding: 2px 8px;
font-size: 11px;
border-radius: 4px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-top: 15px;
}
.stat-box {
background-color: white;
padding: 15px;
border-radius: 6px;
text-align: center;
border: 1px solid #e9ecef;
}
.stat-box .number {
font-size: 24px;
font-weight: bold;
color: #0073aa;
}
.stat-box .label {
font-size: 12px;
color: #666;
margin-top: 5px;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.page-title {
font-size: 24px;
font-weight: bold;
color: #333;
}
/* استایل تبها در پاپ آپ جزئیات */
.details-tabs {
display: flex;
border-bottom: 2px solid #f0f0f0;
margin-bottom: 20px;
}
.tab-button {
background: none;
border: none;
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
color: #666;
border-bottom: 2px solid transparent;
transition: all 0.3s;
}
.tab-button.active {
color: #0073aa;
border-bottom-color: #0073aa;
font-weight: bold;
}
.tab-button:hover {
color: #0073aa;
background-color: #f8f9fa;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* استایل جدول لاگ */
.logs-container {
max-height: 400px;
overflow-y: auto;
border: 1px solid #e1e5e9;
border-radius: 6px;
}
.logs-table,.users-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.logs-table th,.users-table th {
background-color: #f8f9fa;
padding: 12px 8px;
text-align: right;
border-bottom: 2px solid #e1e5e9;
font-weight: bold;
color: #333;
position: sticky;
top: 0;
z-index: 10;
}
.logs-table td , .users-table td {
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.logs-table tr:hover,.users-table tr:hover {
background-color: #f8f9fa;
}
.status-badge {
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
}
.status-sent {
background-color: #e3f2fd;
color: #1976d2;
}
.status-delivered {
background-color: #e8f5e8;
color: #2e7d32;
}
.status-failed {
background-color: #ffebee;
color: #c62828;
}
.status-pending {
background-color: #fff3e0;
color: #f57c00;
}
.phone-number {
font-family: 'Courier New', monospace;
direction: ltr;
text-align: right;
}
.error-message {
color: #c62828;
font-size: 11px;
font-style: italic;
}
/* فیلترهای لاگ */
.logs-filters {
display: flex;
gap: 15px;
margin-bottom: 15px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
align-items: center;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.filter-group label {
font-size: 12px;
color: #666;
font-weight: bold;
}
.filter-group select,
.filter-group input {
padding: 6px 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
}
.logs-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 10px;
margin-bottom: 20px;
}
.summary-item {
background-color: white;
padding: 12px;
border-radius: 6px;
text-align: center;
border: 1px solid #e1e5e9;
}
.summary-number {
font-size: 18px;
font-weight: bold;
color: #0073aa;
}
.summary-label {
font-size: 11px;
color: #666;
margin-top: 3px;
}
.no-logs {
text-align: center;
padding: 40px;
color: #666;
font-style: italic;
}
.refresh-logs-btn {
background-color: #0073aa;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
margin-right: auto;
}
.refresh-logs-btn:hover {
background-color: #005a87;
}
.excel-export-sticky {
position: sticky;
top: 10px;
z-index: 1000;
display: flex;
justify-content: flex-end;
margin-bottom: 15px;
padding: 0 10px;
}
.excel-export-btn {
background: linear-gradient(135deg, #28a745, #20c997);
color: white;
border: none;
padding: 12px 20px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
transition: all 0.3s ease;
font-family: inherit;
direction: rtl;
}
.excel-export-btn:hover {
background: linear-gradient(135deg, #218838, #1ea085);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}
.excel-export-btn:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}
.excel-icon {
display: inline-block;
flex-shrink: 0;
}
/* برای موبایل */
@media (max-width: 768px) {
.excel-export-sticky {
position: relative;
top: auto;
justify-content: center;
margin-bottom: 10px;
}
.excel-export-btn {
padding: 10px 16px;
font-size: 13px;
}
.excel-icon {
width: 16px;
height: 16px;
}
}
/* انیمیشن لودینگ برای زمان پردازش */
.excel-export-btn.loading {
opacity: 0.7;
pointer-events: none;
}
.excel-export-btn.loading .excel-icon {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loader-spinner {
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid transparent;
border-top: 2px solid currentColor;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-left: 5px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.toggle-shortcodes-btn {
background: #0073aa;
color: white;
border: none;
padding: 8px 15px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
margin: 10px 0;
display: flex;
align-items: center;
gap: 5px;
transition: all 0.3s ease;
}
.toggle-shortcodes-btn:hover {
background: #005a87;
}
.toggle-shortcodes-btn .toggle-icon {
transition: transform 0.3s ease;
}
.toggle-shortcodes-btn.expanded .toggle-icon {
transform: rotate(180deg);
}
.shortcodes-extended {
transition: all 0.3s ease;
}
.notice.notice-type-error {
padding: 10px;
border-right-color: #ff0000d9;
}
.notice.notice-type-success {
padding: 10px;
border-right-color: #0ed60dd9;
}
/* cod takhfif */
/* استایل تبهای پاپ آپ */
.popup-tabs {
display: flex;
border-bottom: 1px solid #ddd;
margin-bottom: 20px;
background: #f9f9f9;
}
.popup-tab-button {
flex: 1;
padding: 12px 20px;
border: none;
background: transparent;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #666;
transition: all 0.3s ease;
border-bottom: 3px solid transparent;
}
.popup-tab-button:hover {
background: #f0f0f0;
color: #333;
}
.popup-tab-button.active {
background: #fff;
color: #0073aa;
border-bottom-color: #0073aa;
}
.popup-tab-content {
display: none;
}
.popup-tab-content.active {
display: block;
}
.coupon-placeholder {
text-align: center;
padding: 40px 20px;
color: #666;
background: #f9f9f9;
border-radius: 5px;
border: 2px dashed #ddd;
}
.coupon-placeholder p {
margin: 0;
font-size: 16px;
}
/* استایل تنظیمات کد تخفیف */
.coupon-settings-container {
padding: 20px 0;
}
.coupon-help-text {
margin-top: 8px;
}
.coupon-help-text p {
margin: 0;
font-size: 13px;
color: #666;
line-height: 1.5;
}
.coupon-link {
color: #0073aa;
text-decoration: none;
font-weight: 500;
}
.coupon-link:hover {
color: #005a87;
text-decoration: underline;
}
.checkbox-container {
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 8px;
}
.checkbox-container input[type="checkbox"] {
margin: 0;
margin-top: 2px;
}
.checkbox-label {
font-size: 14px;
font-weight: 500;
color: #333;
cursor: pointer;
line-height: 1.4;
margin: 0;
}
.checkbox-help-text {
margin-right: 25px;
}
.checkbox-help-text small {
color: #666;
font-size: 12px;
line-height: 1.4;
display: block;
}
/* حذف استایل placeholder قبلی */
.coupon-placeholder {
display: none;
}
/* استایل چک باکس کوچکتر */
.checkbox-container input[type="checkbox"] {
margin: 0;
margin-top: 2px;
width: 16px;
height: 16px;
transform: scale(0.9);
}
.checkbox-container {
display: flex;
align-items: flex-start;
gap: 8px;
margin-bottom: 8px;
}
.checkbox-label {
font-size: 14px;
font-weight: 500;
color: #333;
cursor: pointer;
line-height: 1.4;
margin: 0;
flex: 1;
}
.checkbox-help-text {
margin-right: 24px;
}
/* استایل لودر و پیامهای وضعیت */
.condition-loader {
color: #666;
font-style: italic;
display: flex;
align-items: center;
gap: 8px;
}
.condition-loader .spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid #f3f3f3;
border-top: 2px solid #0073aa;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.condition-error {
color: #dc3232;
font-size: 13px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#conditionExample {
margin-top: 10px;
padding: 8px;
background: #f9f9f9;
border-radius: 4px;
font-size: 13px;
min-height: 20px;
}
/* استایل لودر کمپین */
.campaign-loader-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
}
.campaign-loader-content {
background: white;
padding: 30px;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
min-width: 250px;
}
.campaign-spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #0073aa;
border-radius: 50%;
animation: campaign-spin 1s linear infinite;
margin: 0 auto 15px;
}
.campaign-loader-content p {
margin: 0;
color: #333;
font-size: 14px;
}
@keyframes campaign-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.campaign-loader-overlay[style*="block"] {
display: flex !important;
}
.popup-content {
width: 600px !important;
max-width: 90vw;
min-width: 500px;
}
a.add-campaign-btn.remove-all-campaign:hover {
color: white !important;
}
a.add-campaign-btn.remove-all-campaign{
text-decoration: none !important;
}
.feedback-sms-info {
background: #f9f9f9;
padding: 15px;
border-radius: 5px;
margin-top: 10px;
border-right: 4px solid #0073aa;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
word-wrap: break-word;
overflow-wrap: break-word;
}
.feedback-sms-info p {
margin: 0;
color: #555;
font-size: 14px;
line-height: 1.5;
white-space: normal;
}
.checkbox-container {
margin-bottom: 10px;
}
.checkbox-label {
font-weight: 500;
color: #333;
}
#feedbackSmsContainer {
margin-top: 15px;
padding: 10px;
background: #fafafa;
border-radius: 5px;
border: 1px solid #e0e0e0;
width: 100%;
box-sizing: border-box;
}
.popup-body {
width: 100%;
box-sizing: border-box;
}
.form-group {
width: 100%;
box-sizing: border-box;
}
/* استایلهای پاپ آپ تست پیامک */
.test-sms-popup-content {
min-width: 500px;
max-width: 600px;
}
.test-sms-container {
padding: 10px 0;
}
.sms-pattern-preview {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
padding: 12px;
font-family: 'Tahoma', sans-serif;
direction: rtl;
text-align: right;
min-height: 50px;
word-wrap: break-word;
overflow-wrap: break-word;
color: #333;
font-size: 14px;
line-height: 1.5;
}
.sms-variables-preview {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
padding: 12px;
min-height: 50px;
color: #333;
font-size: 14px;
}
.sms-variables-preview ul {
margin: 0;
padding-right: 20px;
list-style-type: none;
}
.sms-variables-preview li {
margin-bottom: 8px;
padding: 5px 0;
border-bottom: 1px solid #e9ecef;
}
.sms-variables-preview li:last-child {
border-bottom: none;
margin-bottom: 0;
}
.sms-variables-preview strong {
color: #0073aa;
font-weight: 600;
}
.test-result {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
padding: 12px;
margin-top: 8px;
min-height: 50px;
}
.test-success {
color: #2e7d32;
background-color: #e8f5e8;
padding: 8px 12px;
border-radius: 4px;
border-right: 4px solid #2e7d32;
font-weight: 500;
}
.test-error {
color: #c62828;
background-color: #ffebee;
padding: 8px 12px;
border-radius: 4px;
border-right: 4px solid #c62828;
font-weight: 500;
}
div#myListVariables {
list-style: none;
margin-top: 16px;
font-weight: 600;
}