/* * Hesabix Admin CSS * * @package Hesabix * @author Mohammad Rezai * @author URI https://pirouz.xyz * @since 1.0.0 */ *, .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 { box-sizing: border-box; font-family: 'IRANYekanWeb'; } .hesabix-stats-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; grid-column: 1 / -1; } .hesabix-spinner { width: 40px; height: 40px; border: 4px solid #e3e6ea; border-top: 4px solid #007cba; border-radius: 50%; animation: hesabix-spin 1s linear infinite; margin-bottom: 1rem; } @keyframes hesabix-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .hesabix-stats-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; } .hesabix-stats-loading .hesabix-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #0073aa; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; } .hesabix-stats-loading p { color: #666; font-size: 16px; margin: 0; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .hesabix-feature-card.not-connected .hesabix-feature-icon svg { color: #dc3545; } .hesabix-feature-card.not-connected .hesabix-feature-icon { background: rgba(220, 53, 69, 0.1) !important; } .hesabix-feature-card.connected .hesabix-feature-icon svg { animation: hesabix-pulse 1.2s infinite; color: #667eea; border-radius: 50%; } @keyframes hesabix-pulse { 0% { box-shadow: 0 0 0 0 #667eea; opacity: 1; } 70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.5); } 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); } } body.hesabix-admin { font-family: 'IRANYekanWeb'; background: #f8f9fa; margin: 0; padding: 0; direction: rtl; text-align: right; line-height: 1.6; color: #333; } .hesabix-container { max-width: 1400px; margin: 0 auto; padding: 20px; } .hesabix-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; padding: 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 15px; color: white; box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); } .hesabix-info { flex: 1; } .hesabix-actions { display: flex; gap: 10px; flex-wrap: wrap; } .hesabix-logo { width: 80px; height: 80px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .hesabix-logo img { width: 50px; height: 50px; filter: brightness(0) invert(1); } .hesabix-title { margin: 0 0 10px 0; font-size: 2.5rem; font-weight: 700; } .hesabix-subtitle { font-size: 1.1rem; margin: 0 0 15px 0; opacity: 0.9; } .hesabix-badges { display: flex; gap: 10px; } .hesabix-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; } .hesabix-badge.version { background: rgba(255, 255, 255, 0.2); } .hesabix-badge.status { background: #28a745; color: white; border: 1px solid #28a745; } .hesabix-badge.warning { background: #ffc107; color: #212529; border: 1px solid #ffc107; } .hesabix-badge.danger { background: #dc3545; color: white; border: 1px solid #dc3545; } .hesabix-badge.info { background: #17a2b8; } .hesabix-update-badge { cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; background: rgba(102, 126, 234, 0.1); color: #667eea; border: 1px solid rgba(102, 126, 234, 0.2); } .hesabix-update-badge:hover { background: rgba(102, 126, 234, 0.15); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2); } .hesabix-update-badge:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .hesabix-badge.status { cursor: default; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; } .hesabix-badge.warning { cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; } .hesabix-badge.warning:hover { background: #e0a800; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3); } .hesabix-badge.danger { cursor: default; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; } .hesabix-spinner-small { width: 12px; height: 12px; border: 2px solid #e3e6ea; border-top: 2px solid #667eea; border-radius: 50%; animation: hesabix-spin 1s linear infinite; } .hesabix-card { background: white; border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .hesabix-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .hesabix-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 3px solid #667eea; } .hesabix-card-title { margin: 0; font-size: 1.8rem; color: #333; font-weight: 700; } .hesabix-card-subtitle { margin: 5px 0 0 0; color: #666; font-size: 1rem; } .hesabix-grid { display: grid; gap: 25px; } .hesabix-grid-2 { grid-template-columns: repeat(2, 1fr); } .hesabix-grid-3 { grid-template-columns: repeat(3, 1fr); } .hesabix-grid-4 { grid-template-columns: repeat(4, 1fr); } .hesabix-feature-card { padding: 25px; border-radius: 12px; background: #f8f9fa; border-left: 4px solid #667eea; transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; } .hesabix-feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .hesabix-feature-icon { font-size: 2.5rem; color: #667eea; margin-bottom: 15px; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: rgba(102, 126, 234, 0.1); border-radius: 50%; margin: 0 auto 15px auto; } .hesabix-feature-card h3 { margin: 0 0 10px 0; font-size: 1.3rem; color: #333; } .hesabix-feature-card p { margin: 0; color: #666; line-height: 1.6; } .hesabix-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 0.95rem; text-align: center; justify-content: center; min-width: 120px; } .hesabix-btn:hover { transform: translateY(-2px); text-decoration: none; } .hesabix-btn-primary { background: #667eea; color: white; } .hesabix-btn-primary:hover { background: #5a6fd8; color: white; } .hesabix-btn-success { background: #28a745; color: white; } .hesabix-btn-success:hover { background: #218838; color: white; } .hesabix-btn-warning { background: #ffc107; color: #212529; } .hesabix-btn-warning:hover { background: #e0a800; color: #212529; } .hesabix-btn-danger { background: #dc3545; color: white; } .hesabix-btn-danger:hover { background: #c82333; color: white; } .hesabix-btn-info { background: #17a2b8; color: white; } .hesabix-btn-info:hover { background: #138496; color: white; } .hesabix-btn-secondary { background: #6c757d; color: white; } .hesabix-btn-secondary:hover { background: #5a6268; color: white; } .hesabix-btn-outline { background: transparent; border: 2px solid #667eea; color: #667eea; } .hesabix-btn-outline:hover { background: #667eea; color: white; } .hesabix-btn-sm { padding: 8px 16px; font-size: 0.85rem; min-width: 80px; } .hesabix-btn-lg { padding: 15px 30px; font-size: 1.1rem; min-width: 150px; } .hesabix-btn-group { display: flex; gap: 10px; flex-wrap: wrap; } .hesabix-form-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 2px solid #e9ecef; } .hesabix-form-group { margin-bottom: 28px; } .hesabix-form-label { margin-bottom: 10px; font-size: 1rem; font-weight: 600; color: #374151; } .hesabix-form-control { width: 100%; padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; background: white; } .hesabix-form-control:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .hesabix-form-control.error { border-color: #dc3545; } .hesabix-form-control.success { border-color: #28a745; } .hesabix-form-text { display: block; margin-top: 10px; color: #6c757d; font-size: 0.95rem; background: #f8fafc; border-radius: 6px; padding: 10px 14px; border-right: 3px solid #667eea; font-weight: 500; line-height: 1.7; } .hesabix-form-text.error { color: #dc3545; } .hesabix-form-text.success { color: #28a745; } .hesabix-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); margin-bottom: 20px; } .hesabix-table th { background: #667eea; color: white; padding: 15px; text-align: right; font-weight: 600; font-size: 0.95rem; } .hesabix-table td { padding: 12px 15px; text-align: right; border-bottom: 1px solid #e9ecef; vertical-align: middle; } .hesabix-table tr:hover { background: #f8f9fa; } .hesabix-table tr:last-child td { border-bottom: none; } .hesabix-table-container { overflow-x: auto; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); background: white; margin-bottom: 20px; } .hesabix-table-container .hesabix-table { margin-bottom: 0; box-shadow: none; border-radius: 0; } @media (max-width: 768px) { .hesabix-table-container { border-radius: 8px; margin: 0 -10px 20px -10px; } .hesabix-table-container .hesabix-table { min-width: 600px; } .hesabix-table-container .hesabix-table th, .hesabix-table-container .hesabix-table td { padding: 10px 8px; font-size: 0.9rem; } .hesabix-table-container .hesabix-table th { font-size: 0.85rem; padding: 12px 8px; } .hesabix-table-container .hesabix-switch { transform: scale(0.9); margin: 0 auto; display: block; } .hesabix-table-container .hesabix-input { font-size: 0.85rem; padding: 6px 8px; min-width: 80px; } } @media (max-width: 480px) { .hesabix-table-container { margin: 0 -15px 20px -15px; border-radius: 6px; } .hesabix-table-container .hesabix-table { min-width: 500px; } .hesabix-table-container .hesabix-table th, .hesabix-table-container .hesabix-table td { padding: 8px 6px; font-size: 0.8rem; } .hesabix-table-container .hesabix-table th { font-size: 0.8rem; padding: 10px 6px; } .hesabix-table-container .hesabix-switch { transform: scale(0.8); } .hesabix-table-container .hesabix-input { font-size: 0.8rem; padding: 4px 6px; min-width: 60px; } } .hesabix-section:has(.hesabix-table-container) { background: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 30px; } .hesabix-section:has(.hesabix-table-container) .hesabix-section-title { margin-bottom: 15px; color: #495057; font-size: 1.1rem; } .hesabix-section:has(.hesabix-table-container) .hesabix-section-description { margin-bottom: 20px; color: #6c757d; font-size: 0.95rem; line-height: 1.5; } .hesabix-field-group { margin-bottom: 25px; padding: 15px; background: white; border-radius: 8px; border: 1px solid #e9ecef; } .hesabix-field-label { display: block; font-weight: 600; color: #495057; margin-bottom: 10px; font-size: 0.95rem; } .hesabix-radio-group { display: flex; flex-direction: column; gap: 12px; } .hesabix-radio { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; cursor: pointer; transition: background-color 0.2s ease; } .hesabix-radio:hover { background: #f8f9fa; } .hesabix-radio input[type="radio"] { margin: 0; } .hesabix-radio-custom { width: 18px; height: 18px; border: 2px solid #dee2e6; border-radius: 50%; position: relative; transition: all 0.2s ease; } .hesabix-radio input[type="radio"]:checked+.hesabix-radio-custom { border-color: #667eea; background: #667eea; } .hesabix-radio input[type="radio"]:checked+.hesabix-radio-custom::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; background: white; border-radius: 50%; } @media (max-width: 768px) { .hesabix-field-group { padding: 12px; margin-bottom: 20px; } .hesabix-field-label { font-size: 0.9rem; margin-bottom: 8px; } .hesabix-radio { padding: 8px; font-size: 0.9rem; } .hesabix-radio-custom { width: 16px; height: 16px; } .hesabix-radio input[type="radio"]:checked+.hesabix-radio-custom::after { width: 5px; height: 5px; } } @media (max-width: 480px) { .hesabix-field-group { padding: 10px; margin-bottom: 15px; } .hesabix-field-label { font-size: 0.85rem; margin-bottom: 6px; } .hesabix-radio { padding: 6px; font-size: 0.85rem; } .hesabix-radio-custom { width: 14px; height: 14px; } .hesabix-radio input[type="radio"]:checked+.hesabix-radio-custom::after { width: 4px; height: 4px; } } .hesabix-alert { padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid transparent; display: flex; align-items: center; gap: 10px; } .hesabix-alert-success { background: #d4edda; border-color: #c3e6cb !important; color: #155724; } .hesabix-alert-danger { background: #f8d7da; border-color: #f5c6cb !important; color: #721c24; } .hesabix-alert-warning { background: #fff3cd; border-color: #ffeaa7 !important; color: #856404; } .hesabix-alert-info { background: #d1ecf1; border-color: #bee5eb !important; color: #0c5460; } .hesabix-alert-primary { background: #cce7ff; border-color: #b3d9ff !important; color: #004085; } .hesabix-progress { width: 100%; height: 20px; background: #e9ecef; border-radius: 10px; overflow: hidden; margin: 10px 0; } .hesabix-progress-bar { height: 100%; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 10px; transition: width 0.3s ease; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.8rem; font-weight: 600; } .hesabix-tabs { display: flex; border-bottom: 2px solid #e9ecef; margin-bottom: 30px; overflow-x: auto; justify-content: flex-start; text-align: right; gap: 5px; padding: 0 10px; } .hesabix-tab { padding: 15px 20px; background: none; border: none; cursor: pointer; font-weight: 600; color: #6c757d; transition: all 0.3s ease; white-space: nowrap; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 50px; } .hesabix-tab:hover { color: #667eea; background: rgba(102, 126, 234, 0.08); transform: translateY(-2px); } .hesabix-tab.active { color: #667eea; border-bottom-color: #667eea; background: rgba(102, 126, 234, 0.12); box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15); transform: none !important; } .hesabix-tab-content { display: none; } .hesabix-tab-content.active { display: block; } .hesabix-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 9999; align-items: center; justify-content: center; } .hesabix-modal.show { display: flex; } .hesabix-modal-content { background: white; border-radius: 15px; padding: 30px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); } .hesabix-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #e9ecef; } .hesabix-modal-title { margin: 0; font-size: 1.5rem; color: #333; } .hesabix-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6c757d; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; } .hesabix-modal-close:hover { background: #f8f9fa; color: #333; } .hesabix-loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: hesabix-spin 1s linear infinite; } @keyframes hesabix-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .hesabix-text-center { text-align: center; } .hesabix-text-right { text-align: right; } .hesabix-text-left { text-align: left; } .hesabix-mt-0 { margin-top: 0; } .hesabix-mt-1 { margin-top: 0.25rem; } .hesabix-mt-2 { margin-top: 0.5rem; } .hesabix-mt-3 { margin-top: 1rem; } .hesabix-mt-4 { margin-top: 1.5rem; } .hesabix-mt-5 { margin-top: 3rem; } .hesabix-mb-0 { margin-bottom: 0; } .hesabix-mb-1 { margin-bottom: 0.25rem; } .hesabix-mb-2 { margin-bottom: 0.5rem; } .hesabix-mb-3 { margin-bottom: 1rem; } .hesabix-mb-4 { margin-bottom: 1.5rem; } .hesabix-mb-5 { margin-bottom: 3rem; } .hesabix-p-0 { padding: 0; } .hesabix-p-1 { padding: 0.25rem; } .hesabix-p-2 { padding: 0.5rem; } .hesabix-p-3 { padding: 1rem; } .hesabix-p-4 { padding: 1.5rem; } .hesabix-p-5 { padding: 3rem; } .hesabix-d-none { display: none; } .hesabix-d-block { display: block; } .hesabix-d-flex { display: flex; } .hesabix-d-grid { display: grid; } .hesabix-w-100 { width: 100%; } .hesabix-h-100 { height: 100%; } @media (max-width: 768px) { .hesabix-container { padding: 15px; } .hesabix-header { flex-direction: column; text-align: center; padding: 20px; gap: 15px; } .hesabix-logo { width: 60px; height: 60px; } .hesabix-title { font-size: 1.8rem; } .hesabix-subtitle { font-size: 1rem; } .hesabix-card { padding: 20px; } .hesabix-grid-2, .hesabix-grid-3, .hesabix-grid-4 { grid-template-columns: 1fr; gap: 20px; } .hesabix-feature-card { padding: 20px; } .hesabix-feature-icon { width: 60px; height: 60px; font-size: 2rem; } .hesabix-btn-group { flex-direction: column; } .hesabix-btn { width: 100%; } .hesabix-tabs { flex-direction: column; gap: 2px; } .hesabix-tab { text-align: center; border-bottom: none; border-right: 3px solid transparent; border-radius: 0 8px 8px 0; min-height: 45px; } .hesabix-tab.active { border-right-color: #667eea; border-bottom-color: transparent; } #hesabix_sync_orders { flex-direction: column; gap: 10px; } .order-sync-card { grid-column: 1/1 !important; } } @media (max-width: 480px) { .hesabix-container { padding: 10px; } .hesabix-header { padding: 15px; } .hesabix-title { font-size: 1.5rem; } .hesabix-subtitle { font-size: 0.9rem; } .hesabix-card-title { font-size: 1.4rem; } .hesabix-feature-card h3 { font-size: 1.1rem; } } .wp-admin .hesabix-admin { margin-top: 32px; } .wp-admin .hesabix-admin .hesabix-container { margin-top: 20px; } .hesabix-admin ::-webkit-scrollbar { width: 8px; } .hesabix-admin ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .hesabix-admin ::-webkit-scrollbar-thumb { background: #667eea; border-radius: 4px; } .hesabix-admin ::-webkit-scrollbar-thumb:hover { background: #5a6fd8; } @keyframes hesabix-fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .hesabix-fade-in { animation: hesabix-fadeIn 0.5s ease-out; } @media print { .hesabix-admin { background: white; } .hesabix-card { box-shadow: none; border: 1px solid #ddd; } .hesabix-btn { display: none; } } .hesabix-setup-steps { display: flex; flex-direction: column; gap: 20px; } .hesabix-setup-step { display: flex; align-items: flex-start; gap: 20px; padding: 20px; background: #f8f9fa; border-radius: 12px; border-left: 4px solid #667eea; transition: transform 0.3s ease, box-shadow 0.3s ease; } .hesabix-setup-step:hover { transform: translateX(-5px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2); } .hesabix-step-number { width: 40px; height: 40px; background: #667eea; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; } .hesabix-step-content h4 { margin: 0 0 8px 0; color: #333; font-size: 1.2rem; font-weight: 600; } .hesabix-step-content p { margin: 0; color: #666; line-height: 1.6; } .hand { cursor: pointer; } .hesabix-tab-icon { width: 18px; height: 18px; opacity: 0.8; transition: opacity 0.3s ease; } .hesabix-tab:hover .hesabix-tab-icon { opacity: 1; } .hesabix-tab.active .hesabix-tab-icon { opacity: 1; } .hesabix-bold { font-weight: bold; } .hesabix-plugin-tutorial-chapter { color: #667eea; font-weight: bold; border-bottom: 1px solid #e9ecef; margin-bottom: 5px; padding-bottom: 10px; margin-top: 10px; transition: color 0.3s ease; } .hesabix-plugin-tutorial-chapter:hover { color: #5a6fd8; cursor: pointer; } .hesabix-section { margin-bottom: 32px; padding-bottom: 24px; } .hesabix-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .hesabix-section-title { font-size: 18px; font-weight: 600; color: #374151; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; } .hesabix-card form table { width: 100%; border-collapse: collapse; margin-bottom: 0; } .hesabix-card form table th { padding: 10px 12px; text-align: right; font-weight: 600; color: #374151; width: 20%; vertical-align: middle; font-size: 15px; position: relative; font-family: 'IRANYekanWeb'; } .hesabix-card form table th label { font-weight: 600; color: #374151; font-size: 15px; margin: 0; display: block; line-height: 1.5; text-align: right; padding: 0; background: none; border: none; box-shadow: none; font-family: 'IRANYekanWeb'; } .hesabix-card form table th label:focus { outline: none; box-shadow: none; border: none; } .hesabix-card form table td { padding: 20px; border-bottom: 1px solid #e2e8f0; vertical-align: top; display: flex; flex-direction: column; background: white; position: relative; } .hesabix-card form input[type="text"], .hesabix-card form input[type="password"], .hesabix-card form input[type="email"], .hesabix-card form input[type="number"], .hesabix-card form select, .hesabix-card form textarea { width: 100%; max-width: 450px; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 14px; transition: all 0.3s ease; background: white; font-family: 'IRANYekanWeb'; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .hesabix-card form input[type="text"]:focus, .hesabix-card form input[type="password"]:focus, .hesabix-card form input[type="email"]:focus, .hesabix-card form input[type="number"]:focus, .hesabix-card form select:focus, .hesabix-card form textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1); transform: translateY(-1px); } .hesabix-card form input[type="checkbox"] { width: 18px; height: 18px; border: 2px solid #d1d5db; border-radius: 4px; cursor: pointer; } .hesabix-card form input[type="radio"] { width: 18px; height: 18px; border: 2px solid #d1d5db; cursor: pointer; } .hesabix-card form label { font-weight: 500; color: #374151; display: block; } .hesabix-card form .description { color: #64748b; font-size: 13px; margin-top: 8px; line-height: 1.5; padding: 8px 12px; background: #f8fafc; border-radius: 6px; border-right: 3px solid #3b82f6; font-weight: 500; display: inline-block; max-width: 450px; } .hesabix-btn.loading { position: relative; color: transparent; } .hesabix-btn.loading::after { content: ''; color: white !important; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: hesabix-spin 1s linear infinite; } .hesabix-message { padding: 12px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; margin-top: 16px; border: 1px solid; } .hesabix-message.success { background-color: #f0fdf4; border-color: #22c55e; color: #166534; } .hesabix-message.error { background-color: #fef2f2; border-color: #ef4444; color: #991b1b; } .hesabix-message svg { flex-shrink: 0; } .hesabix-message { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; } .hesabix-message.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; padding: 12px 16px; } .hesabix-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 12px 16px; } .hesabix-message.warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 12px 16px; } .hesabix-switch { position: relative; display: inline-block; width: 46px; height: 24px; vertical-align: middle; margin-left: 10px; } .hesabix-switch input { opacity: 0; width: 0; height: 0; } .hesabix-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .hesabix-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); } .hesabix-switch input:checked+.hesabix-slider { background-color: #667eea; } .hesabix-switch input:checked+.hesabix-slider:before { transform: translateX(22px); } .hesabix-switch .hesabix-slider { box-shadow: 0 2px 4px rgba(102, 126, 234, 0.08); } #log-history-list { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; gap: 10px !important; margin-top: 12px !important; } .log-date-btn { position: relative !important; border: 2px solid #e1e5e9 !important; border-radius: 6px !important; padding: 12px 16px !important; background: #fff !important; cursor: pointer !important; transition: all 0.3s ease !important; display: flex !important; align-items: center !important; gap: 10px !important; font-size: 13px !important; font-weight: 500 !important; color: #23282d !important; text-decoration: none !important; } .log-date-btn:hover { border-color: #0073aa !important; box-shadow: 0 2px 6px rgba(0, 115, 170, 0.12) !important; transform: translateY(-1px) !important; color: #23282d !important; } .log-date-btn.active { border-color: #0073aa !important; background: #f0f8ff !important; box-shadow: 0 2px 6px rgba(0, 115, 170, 0.18) !important; color: #23282d !important; padding-right: 44px !important; } .log-date-btn:focus { outline: none !important; box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1) !important; } .log-date-btn.active::after { content: '📄' !important; position: absolute !important; right: 16px !important; top: 50% !important; transform: translateY(-50%) !important; width: 20px !important; border-radius: 50% !important; background: #0073aa !important; color: #fff !important; font-size: 10px !important; font-weight: bold !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 2px !important; padding-top: 4px !important; } .hesabix-btn:disabled, .hesabix-btn[disabled] { opacity: 0.5 !important; pointer-events: none !important; filter: grayscale(0.3); cursor: not-allowed !important; } .hesabix-version-card { direction: rtl !important; background: linear-gradient(135deg, #374896 0%, #422361 50%, #5d495f 100%) !important; color: #fff; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25), 0 4px 16px rgba(240, 147, 251, 0.15); border-radius: 24px; padding: 40px; margin-bottom: 32px; display: flex; align-items: center; gap: 32px; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(255, 255, 255, 0.1); } .hesabix-version-card:hover { box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35), 0 8px 24px rgba(240, 147, 251, 0.25); } .hesabix-version-card .hesabix-version-icon { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); animation: hesabix-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1); margin-left: 24px; position: relative; z-index: 2; border: 2px solid rgba(255, 255, 255, 0.2); } .hesabix-version-card .hesabix-version-icon svg { width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); } @keyframes hesabix-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); transform: scale(1); } 50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); } } @keyframes hesabix-shimmer { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } } @keyframes hesabix-glow { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } } .hesabix-version-card .hesabix-version-info { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; flex: 1; } .hesabix-version-card .hesabix-version-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); letter-spacing: -0.5px; } .hesabix-version-card .hesabix-version-row { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; opacity: 0.95; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; } .hesabix-version-card .hesabix-version-row:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(-4px); } .hesabix-version-card .hesabix-version-row::before { content: '•'; width: 10px; height: 12px; color: #fff; font-weight: bold; font-size: 1.2rem; margin-top: auto; margin-bottom: auto; } .hesabix-version-section { margin-bottom: 20px; padding: 16px; background: rgba(255, 255, 255, 0.08); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); } .hesabix-version-section:last-child { margin-bottom: 0; } .hesabix-version-section-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid rgba(255, 255, 255, 0.2); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .hesabix-version-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; } .hesabix-version-row { display: flex; justify-content: center; align-items: center; padding: 8px 12px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; } .hesabix-version-row:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(-2px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .hesabix-version-label { font-weight: 600; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; } .hesabix-version-value { font-weight: 500; color: #fff; font-size: 0.95rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } @media (max-width: 768px) { .hesabix-version-card { flex-direction: column; text-align: center; padding: 30px 24px; gap: 24px; } .hesabix-version-card .hesabix-version-icon { margin-left: 10px; width: 40px; height: 40px; } .hesabix-version-card .hesabix-version-icon svg { width: 20px; height: 20px; } .hesabix-version-card .hesabix-version-title { font-size: 0.8rem; } .hesabix-version-card .hesabix-version-row { font-size: 1rem; padding: 6px 12px; } .hesabix-version-grid { grid-template-columns: 1fr; } .hesabix-version-section { padding: 12px; } .hesabix-version-section-title { font-size: 1rem; } .hesabix-version-label, .hesabix-version-value { font-size: 0.9rem; } } .wp-die-message, p { margin-top: 0.25em !important; } .signature-button { position: relative; overflow: hidden; } .signature-button::before { content: ''; position: absolute; top: 0; left: -75%; width: 30%; height: 100%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0) 100%); transform: skewX(-18deg); animation: shine-anim 5s infinite; pointer-events: none; } @keyframes shine-anim { 0% { left: -75%; } 100% { left: 130%; } } @media screen and (max-width: 782px) { .hesabix-logo img { width: 35px !important; height: 35px !important; } } .hesabix-status-selector { margin: 20px 0; } .hesabix-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; } .hesabix-status-item { position: relative; border: 2px solid #e1e5e9; border-radius: 8px; padding: 16px; background: #fff; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; } .hesabix-status-item:hover { border-color: #0073aa; box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15); transform: translateY(-1px); } .hesabix-status-item.selected { border-color: #0073aa; background: #f0f8ff; box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2); } .hesabix-status-item input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; } .hesabix-status-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .hesabix-status-icon svg { width: 16px; height: 16px; fill: currentColor; } .hesabix-status-content { flex: 1; } .hesabix-status-title { font-weight: 600; color: #23282d; margin-bottom: 4px; font-size: 14px; } .hesabix-status-description { font-size: 12px; color: #666; line-height: 1.4; } .hesabix-status-pending .hesabix-status-icon { background: #ffba00; color: #fff; } .hesabix-status-processing .hesabix-status-icon { background: #0073aa; color: #fff; } .hesabix-status-on-hold .hesabix-status-icon { background: #f7b100; color: #fff; } .hesabix-status-completed .hesabix-status-icon { background: #46b450; color: #fff; } .hesabix-status-cancelled .hesabix-status-icon { background: #dc3232; color: #fff; } .hesabix-status-refunded .hesabix-status-icon { background: #a0a5aa; color: #fff; } .hesabix-status-failed .hesabix-status-icon { background: #dc3232; color: #fff; } .hesabix-status-checkout-draft .hesabix-status-icon { background: #6c757d; color: #fff; } .hesabix-status-item.selected.hesabix-status-pending { border-color: #ffba00; background: #fffbf0; } .hesabix-status-item.selected.hesabix-status-processing { border-color: #0073aa; background: #f0f8ff; } .hesabix-status-item.selected.hesabix-status-on-hold { border-color: #f7b100; background: #fffbf0; } .hesabix-status-item.selected.hesabix-status-completed { border-color: #46b450; background: #f0fff0; } .hesabix-status-item.selected.hesabix-status-cancelled { border-color: #dc3232; background: #fff0f0; } .hesabix-status-item.selected.hesabix-status-refunded { border-color: #a0a5aa; background: #f8f9fa; } .hesabix-status-item.selected.hesabix-status-failed { border-color: #dc3232; background: #fff0f0; } .hesabix-status-item.selected.hesabix-status-checkout-draft { border-color: #6c757d; background: #f8f9fa; } @media (max-width: 768px) { .hesabix-status-grid { grid-template-columns: 1fr; } .hesabix-status-item { padding: 12px; } } .hesabix-status-counter { margin-top: 12px; padding: 8px 12px; background: #f8f9fa; border-radius: 4px; font-size: 12px; color: #666; border: 1px solid #e1e5e9; } .hesabix-status-counter strong { color: #0073aa; } .hesabix-date-presets { margin-bottom: 16px; } .hesabix-date-presets>div { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; } .hesabix-date-preset-btn { position: relative; border: 2px solid #e1e5e9; border-radius: 6px; padding: 12px 16px; background: #fff; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: #23282d; } .hesabix-date-preset-btn:hover { border-color: #0073aa; box-shadow: 0 2px 6px rgba(0, 115, 170, 0.12); transform: translateY(-1px); } .hesabix-date-preset-btn.active { border-color: #0073aa; background: #f0f8ff; box-shadow: 0 2px 6px rgba(0, 115, 170, 0.18); padding-right: 44px; } .hesabix-date-preset-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1); } .hesabix-date-preset-btn.active::after { content: '✓'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #0073aa; color: #fff; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; padding: 2px !important; padding-top: 4px !important; } .hesabix-date-range-container { margin: 16px 0; } .hesabix-date-range-wrapper { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; } .hesabix-date-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; } .hesabix-date-label { font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 4px; } .hesabix-date-input { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #ffffff; transition: border-color 0.2s ease, box-shadow 0.2s ease; } .hesabix-date-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .hesabix-date-input.error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); } .hesabix-date-arrow { display: flex; align-items: center; justify-content: center; color: #6b7280; margin-bottom: 8px; flex-shrink: 0; } .hesabix-selected-range { animation: hesabix-fade-in 0.3s ease; } @keyframes hesabix-fade-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .hesabix-date-range-wrapper { flex-direction: column; align-items: stretch; } .hesabix-date-field { min-width: unset; } .hesabix-date-arrow { transform: rotate(-90deg); margin: 8px 0; } .hesabix-date-presets>div { grid-template-columns: 1fr !important; } .hesabix-date-preset-btn { width: 100%; justify-content: flex-start; } #log-history-list { grid-template-columns: 1fr !important; } .log-date-btn { width: 100% !important; justify-content: flex-start !important; } } .hesabix-freight-switch-container { margin: 16px 0; } .hesabix-freight-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; } .hesabix-freight-option { position: relative; border: 2px solid #e1e5e9; border-radius: 8px; padding: 16px; background: #fff; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; } .hesabix-freight-option:hover { border-color: #0073aa; box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15); transform: translateY(-1px); } .hesabix-freight-option.active { border-color: #0073aa; background: #f0f8ff; box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2); } .hesabix-freight-option-content { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; } .hesabix-freight-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f8f9fa; transition: all 0.3s ease; } .hesabix-freight-option.active .hesabix-freight-icon { background: #0073aa; color: #fff; } .hesabix-freight-icon svg { width: 16px; height: 16px; fill: currentColor; } .hesabix-freight-option:not(.active) .hesabix-freight-icon { color: #6b7280; } .hesabix-freight-title { font-weight: 600; color: #23282d; margin-bottom: 4px; font-size: 14px; } .hesabix-freight-desc { font-size: 12px; color: #666; line-height: 1.4; } .hesabix-freight-option.active .hesabix-freight-title { color: #0073aa; } .hesabix-freight-option.active .hesabix-freight-desc { color: #0369a1; } .hesabix-freight-option[data-value="disabled"] .hesabix-freight-icon { background: #dc2626; color: #fff; } .hesabix-freight-option[data-value="disabled"].active .hesabix-freight-title { color: #dc2626; } .hesabix-freight-option[data-value="disabled"].active .hesabix-freight-desc { color: #b91c1c; } .hesabix-freight-option[data-value="disabled"].active { border-color: #dc2626; background: #fef2f2; } .hesabix-freight-option[data-value="0"] .hesabix-freight-icon { background: #16a34a; color: #fff; } .hesabix-freight-option[data-value="0"].active .hesabix-freight-title { color: #16a34a; } .hesabix-freight-option[data-value="0"].active .hesabix-freight-desc { color: #15803d; } .hesabix-freight-option[data-value="0"].active { border-color: #16a34a; background: #f0fdf4; } .hesabix-freight-option[data-value="1"] .hesabix-freight-icon { background: #eab308; color: #fff; } .hesabix-freight-option[data-value="1"].active .hesabix-freight-title { color: #eab308; } .hesabix-freight-option[data-value="1"].active .hesabix-freight-desc { color: #ca8a04; } .hesabix-freight-option[data-value="1"].active { border-color: #eab308; background: #fefce8; } @media (max-width: 768px) { .hesabix-freight-options { grid-template-columns: 1fr; } .hesabix-freight-option { padding: 14px; } .hesabix-freight-option-content { gap: 10px; } .hesabix-card-header { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; } .hesabix-card-header .hesabix-card-subtitle { font-size: 0.8rem !important; } .hesabix-alert { display: block !important; } .hesabix-card form table th { width: 100% !important; } .form-table td fieldset label { display: flex !important; flex-direction: column !important; gap: 10px !important; } .hesabix-form-actions { display: flex !important; flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; } } ul { list-style: disc; } @media screen and (min-width: 992px) { .hesabix-alert ul { margin-right: 45px; } } .custom-api-address-field { display: none; } .custom-api-address-field.show { display: table-row; } .hesabix-api-error-container { text-align: center; padding: 40px 20px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1); margin: 20px 0; border: 1px solid #e9ecef; max-width: 500px; margin-left: auto; margin-right: auto; } .hesabix-api-error-container .hesabix-error-icon { margin-bottom: 20px; display: flex; justify-content: center; } .hesabix-api-error-container .hesabix-error-icon svg { width: 64px; height: 64px; color: #dc3545; opacity: 0.8; } .hesabix-api-error-container h3 { color: #dc3545; margin-bottom: 15px; font-size: 18px; font-weight: 600; margin-top: 0; } .hesabix-api-error-container p { color: #6c757d; margin-bottom: 25px; font-size: 14px; line-height: 1.6; margin-top: 0; } .hesabix-api-error-container .hesabix-error-actions { margin-top: 25px; } .hesabix-api-error-container .hesabix-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 0.95rem; text-align: center; justify-content: center; min-width: 120px; background: #667eea; color: white; } .hesabix-api-error-container .hesabix-btn:hover { background: #5a6fd8; color: white; transform: translateY(-2px); text-decoration: none; } .hesabix-api-error-container .hesabix-btn svg { width: 16px; height: 16px; fill: currentColor; } @media (max-width: 768px) { .hesabix-api-error-container { padding: 30px 15px; margin: 15px 10px; } .hesabix-api-error-container .hesabix-error-icon svg { width: 48px; height: 48px; } .hesabix-api-error-container h3 { font-size: 16px; } .hesabix-api-error-container p { font-size: 13px; } } .hesabix-radio-text { flex: 1; font-size: 0.95rem; color: #495057; line-height: 1.4; } .hesabix-radio input[type="radio"] { display: none; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .hesabix-table-container.disabled-fields { opacity: 0.6; pointer-events: none; } .hesabix-table-container.disabled-fields input[type="checkbox"], .hesabix-table-container.disabled-fields input[type="text"] { opacity: 0.5; cursor: not-allowed; } .hesabix-table-container.disabled-fields .hesabix-switch { opacity: 0.5; cursor: not-allowed; } table tr:last-child td { border-bottom: none; } #footer-left { display: flex; justify-content: center; align-items: center; gap: 2px; } #footer-left .signature-button { margin-right: 10px; } .hesabix-date-input-jalali { font-family: 'Tahoma', 'Arial', sans-serif; font-size: 14px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; background-color: #ffffff; transition: border-color 0.2s ease, box-shadow 0.2s ease; } .hesabix-date-input-jalali:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .hesabix-date-input-jalali.error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); } .hesabix-date-input-jalali::placeholder { color: #9ca3af; font-size: 13px; } .hesabix-date-field { display: flex; flex-direction: column; gap: 4px; } .hesabix-date-label { font-weight: 500; color: #374151; font-size: 14px; } .hesabix-date-range-wrapper { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; } .hesabix-date-arrow { display: flex; align-items: center; color: #6b7280; margin-bottom: 4px; } @media (max-width: 768px) { .hesabix-date-range-wrapper { flex-direction: column; align-items: stretch; gap: 8px; } .hesabix-date-arrow { display: none; } .hesabix-date-input-jalali { width: 100%; } } .hesabix-date-field input { padding: 10px 12px !important; }