:root{--primary: #1d4ed8;--primary-dark: #1e40af;--bg: #f3f4f6;--surface: #ffffff;--surface-2: #f3f4f6;--surface-3: #f9fafb;--border: #e5e7eb;--text: #111827;--text-muted: #6b7280;--text-muted-2: #9ca3af;--accent-soft: #e0e7ff;--success: #16a34a;--warning: #d97706;--danger: #dc2626;--sidebar-bg: #111827;--sidebar-border: #1f2937;--radius: 10px;--shadow-card: 0 1px 2px rgba(0, 0, 0, .04);--shadow-lift: 0 4px 12px rgba(0, 0, 0, .08)}[data-theme=dark]{--primary: #3b82f6;--primary-dark: #2563eb;--bg: #0f172a;--surface: #1e293b;--surface-2: #263349;--surface-3: #223047;--border: #334155;--text: #e2e8f0;--text-muted: #94a3b8;--text-muted-2: #64748b;--accent-soft: #1e3a5f;--success: #4ade80;--warning: #fbbf24;--danger: #f87171;--sidebar-bg: #0b1220;--sidebar-border: #1e293b;--shadow-card: 0 1px 2px rgba(0, 0, 0, .3);--shadow-lift: 0 4px 12px rgba(0, 0, 0, .45)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:Segoe UI,Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text);direction:rtl;transition:background .25s ease,color .25s ease}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit;font-size:14px}.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:var(--radius);border:1px solid transparent;background:var(--primary);color:#fff;cursor:pointer;font-weight:600;transition:background .15s ease,transform .1s ease,box-shadow .15s ease}.btn:hover{background:var(--primary-dark)}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.btn.secondary:hover{background:var(--surface-3)}.btn.danger{background:var(--danger);color:#fff}.btn.danger:hover{filter:brightness(.9)}.btn.small{padding:5px 10px;font-size:12.5px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-card);transition:background .25s ease,border-color .25s ease,box-shadow .2s ease}.input,select.input,textarea.input{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);transition:border-color .15s ease,background .25s ease}.input:focus,select.input:focus,textarea.input:focus{outline:2px solid var(--primary);outline-offset:-1px}.input::placeholder{color:var(--text-muted-2)}.field{margin-bottom:14px}.field label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--text-muted)}table.table{width:100%;border-collapse:collapse}table.table th{text-align:right;padding:10px 12px;font-size:12.5px;color:var(--text-muted);border-bottom:2px solid var(--border)}table.table td{padding:12px;border-bottom:1px solid var(--border);font-size:13.5px;transition:background .12s ease}table.table tr:hover td{background:var(--surface-3)}table.table tr{cursor:pointer}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.table-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.compact-filter{width:auto!important;min-width:140px;padding:7px 10px!important;font-size:12.5px}.column-settings{position:relative}.column-settings>summary{list-style:none;-webkit-user-select:none;user-select:none}.column-settings>summary::-webkit-details-marker{display:none}.column-settings-menu{position:absolute;z-index:20;top:calc(100% + 7px);left:0;width:210px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow-lift)}.column-settings-title{padding:2px 6px 8px;color:var(--text-muted);font-size:12px;font-weight:700}.column-settings-option{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:7px;cursor:pointer;font-size:13px}.column-settings-option:hover{background:var(--surface-3)}.column-settings-option input{accent-color:var(--primary)}.column-settings-option:has(input:disabled){cursor:not-allowed;opacity:.55}.column-settings-reset{width:100%;margin-top:6px;padding:7px;border:0;border-top:1px solid var(--border);background:transparent;color:var(--primary);cursor:pointer;font:inherit;font-size:12.5px}.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge.gray{background:var(--surface-2);color:var(--text-muted)}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.green{background:#dcfce7;color:#16a34a}.badge.orange{background:#ffedd5;color:#d97706}.badge.red{background:#fee2e2;color:#dc2626}[data-theme=dark] .badge.blue{background:#1e3a5f;color:#93c5fd}[data-theme=dark] .badge.green{background:#14342a;color:#4ade80}[data-theme=dark] .badge.orange{background:#3d2c12;color:#fbbf24}[data-theme=dark] .badge.red{background:#421a1a;color:#f87171}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.page-header h1{margin:0;font-size:22px}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-card);transition:transform .15s ease,box-shadow .15s ease,background .25s ease,border-color .25s ease}.kpi-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift)}.kpi-card .label{font-size:12.5px;color:var(--text-muted);margin-bottom:8px}.kpi-card .value{font-size:24px;font-weight:700}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#090d168c;display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;z-index:50;overflow-y:auto;animation:fadeIn .15s ease}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;width:100%;max-width:640px;animation:slideUp .2s ease}.modal h2{margin-top:0}.error-msg{background:#fee2e2;color:#b91c1c;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}[data-theme=dark] .error-msg{background:#421a1a;color:#fca5a5}.empty-state{text-align:center;padding:40px;color:var(--text-muted)}.sidebar{background:var(--sidebar-bg);color:#e5e7eb;display:flex;flex-direction:column;flex-shrink:0;transition:width .2s ease,background .25s ease;overflow:hidden}.sidebar .nav-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;margin-bottom:2px;color:#cbd5e1;font-size:13.5px;white-space:nowrap;transition:background .12s ease,color .12s ease}.sidebar .nav-link:hover{background:#ffffff12;color:#fff}.sidebar .nav-link.active{background:var(--primary);color:#fff;font-weight:600}.sidebar .nav-link svg{flex-shrink:0}.sidebar .nav-section{font-size:11px;color:#6b7280;padding:12px 12px 6px;font-weight:700;white-space:nowrap}.sidebar.collapsed .nav-section{text-align:center;padding:12px 4px 6px}.sidebar .icon-btn{background:transparent;border:1px solid #374151;color:#cbd5e1;border-radius:8px;padding:6px 9px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .12s ease,color .12s ease}.sidebar .icon-btn:hover{background:#ffffff14;color:#fff}.page-enter{animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.course-page{max-width:1200px;margin:0 auto}.course-hero{background:linear-gradient(135deg,#111827,#1e3a5f);color:#fff;border-radius:18px;padding:28px 30px;display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:18px;box-shadow:0 14px 35px #0f172a2e}.course-kicker{color:#93c5fd;font-size:12px;font-weight:800;letter-spacing:.08em}.course-hero h1{margin:7px 0 8px;font-size:26px}.course-hero p{margin:0;color:#cbd5e1;max-width:720px;line-height:1.7}.course-hero-actions{display:flex;gap:8px;flex-shrink:0}.course-hero .btn.secondary{background:#ffffff14;color:#fff;border-color:#ffffff2e}.course-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.course-kpis>div{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:5px}.course-kpis strong{font-size:25px}.course-kpis span{color:var(--text-muted);font-size:12px}.course-progress-card i{display:block;height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden;margin-top:5px}.course-progress-card b{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#22c55e);border-radius:999px}.course-toolbar{display:flex;gap:12px;align-items:center;padding:12px;margin-bottom:14px}.course-toolbar>.input{max-width:310px}.course-filters{display:flex;gap:6px;flex-wrap:wrap}.course-list{display:flex;flex-direction:column;gap:10px}.course-lesson{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:17px;display:grid;grid-template-columns:95px 1fr 38px;gap:16px;transition:.18s ease}.course-lesson:hover{transform:translateY(-1px);box-shadow:var(--shadow-lift)}.lesson-number{border-left:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;gap:7px}.lesson-number span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--primary);font-weight:800}.lesson-number small{color:var(--text-muted);font-weight:700;line-height:1.4}.lesson-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.axis-label{color:var(--primary);font-size:11px;font-weight:800}.lesson-body h3{margin:4px 0 7px;font-size:16px}.lesson-body p{margin:0;color:var(--text-muted);line-height:1.65;font-size:13px}.lesson-status{width:auto!important;min-width:128px;font-weight:700;font-size:12px!important;padding:6px 9px!important}.lesson-links{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap;font-size:12px;color:var(--primary)}.lesson-links span{color:var(--text-muted)}.lesson-actions{display:flex;flex-direction:column;gap:5px}.lesson-actions button{width:32px;height:32px;border:1px solid var(--border);background:var(--surface-3);color:var(--text-muted);border-radius:8px;cursor:pointer;font-size:16px}.lesson-actions button:hover{color:var(--primary);border-color:var(--primary)}.course-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width:800px){.course-hero{align-items:flex-start;flex-direction:column}.course-kpis{grid-template-columns:1fr 1fr}.course-toolbar{align-items:stretch;flex-direction:column}.course-toolbar>.input{max-width:none}.course-lesson{grid-template-columns:60px 1fr}.lesson-actions{grid-column:2;flex-direction:row}.lesson-top{flex-direction:column}.course-form-grid{grid-template-columns:1fr}}.wa-page{max-width:1500px;margin:0 auto}.wa-page-header{margin-bottom:14px}.wa-page-header>div:first-child{display:flex;flex-direction:column;gap:4px}.wa-subtitle{color:var(--text-muted);font-size:12.5px}.wa-setup-notice{margin-bottom:12px;padding:11px 14px;border:1px solid #f59e0b55;border-radius:10px;background:#fffbeb;color:#92400e;font-size:13px}[data-theme=dark] .wa-setup-notice{background:#3d2c12;color:#fbbf24}.wa-shell{direction:ltr;display:grid;grid-template-columns:280px minmax(420px,1fr) 310px;height:calc(100vh - 175px);min-height:580px;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-card)}.wa-customer-panel,.wa-chat-panel,.wa-list-panel{direction:rtl;min-width:0}.wa-customer-panel{padding:18px;border-right:1px solid var(--border);overflow-y:auto}.wa-profile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0 20px;border-bottom:1px solid var(--border);text-align:center}.wa-profile>span{color:var(--text-muted);font-size:12px}.wa-avatar,.wa-conversation-avatar{display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#dcfce7;color:#15803d;font-weight:800}.wa-avatar{width:58px;height:58px;font-size:22px}.wa-info-list{display:flex;flex-direction:column;gap:0;margin-top:10px}.wa-info-list>div,.wa-info-list>label{display:flex;flex-direction:column;gap:4px;padding:11px 0;border-bottom:1px solid var(--border)}.wa-info-list span{color:var(--text-muted);font-size:11.5px}.wa-info-list strong{font-size:13px;overflow-wrap:anywhere}.wa-info-list select{margin-top:3px;font-size:12px}.wa-crm-link{display:block;margin-top:16px;text-align:center}.wa-chat-panel{display:flex;flex-direction:column;background:color-mix(in srgb,var(--surface-2) 65%,#dcfce7 35%)}.wa-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:12px 18px;border-bottom:1px solid var(--border);background:var(--surface)}.wa-chat-header>div{display:flex;flex-direction:column;gap:3px}.wa-chat-header span[dir=ltr]{color:var(--text-muted);font-size:11.5px}.wa-messages{flex:1;overflow-y:auto;padding:22px}.wa-message-row{display:flex;margin:7px 0}.wa-message-row.inbound{justify-content:flex-end}.wa-message-row.outbound{justify-content:flex-start}.wa-message-bubble{max-width:min(72%,620px);padding:9px 12px 6px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:13.5px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 2px #0000000d}.wa-message-row.inbound .wa-message-bubble{border-top-right-radius:3px}.wa-message-row.outbound .wa-message-bubble{border-top-left-radius:3px;background:#dcfce7;color:#14532d}[data-theme=dark] .wa-message-row.outbound .wa-message-bubble{background:#14342a;color:#dcfce7}.wa-message-bubble small{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:3px;color:var(--text-muted);font-size:10px;direction:ltr}.wa-message-type{margin-bottom:3px;color:var(--primary);font-weight:700}.wa-delivery.read{color:#0284c7}.wa-delivery.failed{color:#dc2626;font-weight:800}.wa-composer{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid var(--border);background:var(--surface)}.wa-composer textarea{resize:none;min-height:44px;max-height:110px}.wa-composer .btn{align-self:stretch;min-width:78px}.wa-chat-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:30px;color:var(--text-muted);text-align:center}.wa-chat-empty h2{margin:8px 0 4px;color:var(--text)}.wa-chat-empty p{margin:0;font-size:13px}.wa-empty-icon{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:34px}.wa-list-panel{display:flex;flex-direction:column;gap:10px;padding:14px 10px;border-left:1px solid var(--border);overflow:hidden}.wa-list-title{display:flex;align-items:center;justify-content:space-between;padding:2px 5px}.wa-list-title span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:var(--surface-2);color:var(--text-muted);font-size:11px}.wa-conversation-list{flex:1;overflow-y:auto}.wa-conversation{position:relative;display:flex;align-items:center;width:100%;gap:10px;padding:11px 8px;border:0;border-bottom:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);cursor:pointer;text-align:right}.wa-conversation:hover{background:var(--surface-3)}.wa-conversation.active{background:var(--accent-soft)}.wa-conversation-avatar{width:38px;height:38px}.wa-conversation-copy{min-width:0;flex:1}.wa-conversation-copy>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.wa-conversation-copy strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}.wa-conversation-copy time{flex-shrink:0;color:var(--text-muted-2);font-size:9.5px}.wa-conversation-copy p{margin:4px 0 0;overflow:hidden;color:var(--text-muted);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.wa-unread{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#16a34a;color:#fff;font-size:10px;font-weight:800}@media (max-width: 1100px){.wa-shell{grid-template-columns:minmax(360px,1fr) 290px}.wa-customer-panel{display:none}}@media (max-width: 760px){.wa-shell{display:flex;height:auto;min-height:0;flex-direction:column;overflow:visible}.wa-list-panel{order:-1;max-height:300px;border-left:0;border-bottom:1px solid var(--border)}.wa-chat-panel{min-height:560px}.wa-message-bubble{max-width:88%}}
