*,:after,:before{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px}body{background:#f1f5f9;color:#0f172a;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.5;min-height:100vh}a{color:inherit;text-decoration:none}ul{list-style:none}button{background:none;border:none;cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit;font-size:inherit}img{display:block;max-width:100%}.loading-container{align-items:center;color:#475569;display:flex;font-size:1.2rem;height:100vh;justify-content:center}.loading-spinner{animation:spin .8s linear infinite;border:3px solid #eef2ff;border-radius:50%;border-top-color:#4f46e5;display:inline-block;height:24px;margin-right:12px;width:24px}@keyframes spin{to{transform:rotate(1turn)}}.layout{display:flex;height:100vh}.sidebar{background:#1e293b;color:#e2e8f0;display:flex;flex-direction:column;transition:transform .25s ease;width:260px;z-index:100}.sidebar .logo{border-bottom:1px solid #ffffff1a;color:#fff;font-size:1.6rem;font-weight:700;margin-bottom:16px;padding:24px 20px}.sidebar nav{flex:1 1;padding:0 12px}.sidebar nav a{border-radius:8px;color:#cbd5e1;display:block;font-size:.9rem;margin-bottom:4px;padding:12px 16px;transition:background .25s ease,color .25s ease}.sidebar nav a.active,.sidebar nav a:hover{background:#ffffff1a;color:#fff}.sidebar .sidebar-footer{background:#0003;border-top:1px solid #ffffff1a;padding:16px}.sidebar .sidebar-footer .user-info{align-items:center;background:#ffffff0d;border-radius:8px;display:flex;gap:12px;margin-bottom:12px;padding:8px}.sidebar .sidebar-footer .user-info img{border-radius:50%;height:38px;object-fit:cover;width:38px}.sidebar .sidebar-footer .user-info .name{color:#fff;font-size:.9rem;font-weight:600}.sidebar .sidebar-footer .user-info .role{color:#94a3b8;font-size:.75rem;text-transform:capitalize}.sidebar .sidebar-footer .logout-btn{background:#4f46e5;border-radius:8px;color:#fff;font-size:.85rem;font-weight:600;padding:10px;transition:background .25s ease;width:100%}.sidebar .sidebar-footer .logout-btn:hover{background:#4338ca}.mobile-menu-btn{background:#4f46e5;border:none;border-radius:8px;color:#fff;display:none;font-size:1.4rem;height:40px;left:16px;position:fixed;top:16px;width:40px;z-index:200}.mobile-overlay{background:#0006;display:none;inset:0;position:fixed;z-index:99}.main-content{display:flex;flex:1 1;flex-direction:column;overflow:hidden}.top-bar{align-items:center;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 2px #0000000d;display:flex;justify-content:space-between;padding:16px 24px}.top-bar .page-title{color:#0f172a;font-size:1.4rem;font-weight:600}.top-bar .top-bar-actions{align-items:center;display:flex;gap:16px}.content{flex:1 1;overflow-y:auto;padding:24px}.content::-webkit-scrollbar{height:6px;width:6px}.content::-webkit-scrollbar-track{background:#0000}.content::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:3px}.notifications-dropdown{position:relative}.notifications-dropdown .notification-btn{background:#fff;border:1px solid #e2e8f0;border-radius:999px;color:#0f172a;font-size:.85rem;padding:8px 16px;position:relative;transition:background .25s ease}.notifications-dropdown .notification-btn:hover{background:#f1f5f9}.notifications-dropdown .notification-badge{background:#ef4444;border-radius:10px;color:#fff;font-size:.65rem;padding:2px 6px;position:absolute;right:-4px;top:-4px}.notifications-dropdown .notifications-panel{background:#fff;border-radius:12px;box-shadow:0 10px 25px #0000001a;overflow:hidden;position:absolute;right:0;top:48px;width:360px;z-index:50}.notifications-dropdown .notifications-panel .notifications-header{border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:16px}.notifications-dropdown .notifications-panel .notifications-header h3{font-weight:600}.notifications-dropdown .notifications-panel .notifications-header .mark-all-read{color:#4f46e5;cursor:pointer;font-size:.8rem}.notifications-dropdown .notifications-panel .notifications-list{max-height:360px;overflow-y:auto}.notifications-dropdown .notifications-panel .notifications-list .notification-item{align-items:center;border-bottom:1px solid #e2e8f0;border-left:3px solid #0000;cursor:pointer;display:flex;padding:14px 16px;transition:background .25s ease}.notifications-dropdown .notifications-panel .notifications-list .notification-item.unread{background:#eef2ff}.notifications-dropdown .notifications-panel .notifications-list .notification-item .notification-content{flex:1 1}.notifications-dropdown .notifications-panel .notifications-list .notification-item .notification-content .notification-message{font-size:.85rem}.notifications-dropdown .notifications-panel .notifications-list .notification-item .notification-content .notification-time{color:#94a3b8;font-size:.7rem}.notifications-dropdown .notifications-panel .notifications-list .notification-item .notification-dot{background:#4f46e5;border-radius:50%;height:8px;margin-left:8px;width:8px}.stats-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-bottom:32px}.stats-grid .stat-card{align-items:center;background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;display:flex;gap:16px;padding:20px;transition:transform .25s ease}.stats-grid .stat-card:hover{transform:translateY(-2px)}.stats-grid .stat-card .stat-icon{font-size:2rem}.stats-grid .stat-card .stat-info h3{font-size:2rem;font-weight:700}.stats-grid .stat-card .stat-info p{color:#475569;font-size:.9rem}.section-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px}.quick-actions{margin-top:32px}.quick-actions .actions-grid{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.quick-actions .action-card{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;cursor:pointer;padding:24px;text-align:center;transition:box-shadow .25s ease,transform .25s ease}.quick-actions .action-card:hover{box-shadow:0 4px 6px #00000012;transform:translateY(-3px)}.data-table{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;overflow:hidden;width:100%}.data-table td,.data-table th{border-bottom:1px solid #e2e8f0;font-size:.9rem;padding:12px 16px;text-align:left}.data-table th{background:#f8fafc;color:#475569;font-weight:600}.data-table tr:last-child td{border-bottom:none}.status-badge{border-radius:20px;display:inline-block;font-size:.75rem;font-weight:600;padding:4px 10px}.status-badge.active,.status-badge.online{background:#d1fae5;color:#0c8a60}.status-badge.away,.status-badge.pending{background:#fef3c7;color:#ac6f07}.status-badge.closed,.status-badge.inactive,.status-badge.offline{background:#e2e8f0;color:#94a3b8}.status-badge.transferred{background:#eef2ff;color:#4f46e5}.btn-primary{background:#4f46e5;border-radius:8px;color:#fff;font-size:.9rem;font-weight:600;padding:10px 20px;transition:background .25s ease}.btn-primary:hover{background:#4338ca}.btn-primary:disabled{cursor:not-allowed;opacity:.5}.btn-secondary{background:#6b7280;border-radius:8px;color:#fff;padding:10px 20px}.btn-secondary:hover{background:#545964}.btn-danger{background:#ef4444;border-radius:8px;color:#fff;padding:10px 20px}.btn-danger:hover{background:#eb1515}.btn-sm{font-size:.8rem;padding:6px 12px}.form-group{margin-bottom:20px}.form-group label{color:#0f172a;display:block;font-weight:500;margin-bottom:6px}.form-group input,.form-group select,.form-group textarea{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;transition:border .25s ease,box-shadow .25s ease;width:100%}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#6366f1;box-shadow:0 0 0 3px #4f46e51a;outline:none}.form-group .checkbox-group{display:flex;flex-direction:column;gap:10px}.form-group .checkbox-group label{align-items:center;display:flex;font-weight:400;gap:8px}.modal{align-items:center;animation:fadeIn .2s ease;background:#00000080;display:flex;inset:0;justify-content:center;position:fixed;z-index:1000}.modal .modal-content{background:#fff;border-radius:12px;box-shadow:0 10px 25px #0000001a;max-height:90vh;max-width:560px;overflow-y:auto;width:90%}.modal .modal-content .modal-header{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px}.modal .modal-content .modal-header h3{font-weight:600}.modal .modal-content .modal-header .close{color:#94a3b8;cursor:pointer;font-size:1.5rem}.modal .modal-content .modal-body{padding:20px}.modal .modal-content .modal-footer{border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:16px 20px}@keyframes fadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.operator-console{background:#f1f5f9;display:flex;flex-direction:column;height:100vh}.operator-console .operator-header{align-items:flex-start;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 2px #0000000d;display:flex;flex-wrap:wrap;gap:16px;padding:16px 24px}.operator-console .operator-header .operator-info{align-items:center;display:flex;gap:12px}.operator-console .operator-header .operator-info img{border-radius:50%;height:44px;width:44px}.operator-console .operator-header .operator-info h2{font-size:1.2rem}.operator-console .operator-header .operator-info p{color:#475569;font-size:.85rem}.operator-console .operator-header .operator-stats{display:flex;gap:24px}.operator-console .operator-header .operator-stats .stat{text-align:center}.operator-console .operator-header .operator-stats .stat .stat-value{font-size:1.5rem;font-weight:700}.operator-console .operator-header .operator-stats .stat .stat-label{color:#94a3b8;font-size:.7rem}.operator-console .operator-main{display:flex;flex:1 1;overflow:hidden}.chats-sidebar{background:#fff;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;width:340px}.chats-sidebar .sidebar-tabs{border-bottom:1px solid #e2e8f0;display:flex}.chats-sidebar .sidebar-tabs button{border-bottom:2px solid #0000;color:#475569;flex:1 1;font-size:.8rem;font-weight:600;padding:14px;transition:color .25s ease,border-color .25s ease}.chats-sidebar .sidebar-tabs button.active{border-bottom-color:#4f46e5;color:#4f46e5}.chats-sidebar .search-bar{padding:12px}.chats-sidebar .search-bar input{border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;width:100%}.chats-sidebar .chats-list{flex:1 1;overflow-y:auto}.chats-sidebar .chats-list::-webkit-scrollbar{height:6px;width:6px}.chats-sidebar .chats-list::-webkit-scrollbar-track{background:#0000}.chats-sidebar .chats-list::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:3px}.chat-area{background:#fff;display:flex;flex:1 1;flex-direction:column}.chat-area .no-chat-selected{align-items:center;background:#f8fafc;display:flex;flex:1 1;justify-content:center;text-align:center}.chat-area .no-chat-selected .empty-icon{background:#eef2ff;border-radius:24px;height:80px;margin:0 auto 16px;width:80px}.chat-window{display:flex;flex-direction:column;height:100%}.chat-window .chat-header{align-items:center;background:#fafafa;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:16px}.chat-window .chat-header .visitor-info{align-items:center;display:flex;gap:12px}.chat-window .chat-header .visitor-info .visitor-avatar{align-items:center;background:linear-gradient(135deg,#4f46e5,#6366f1);border-radius:50%;color:#fff;display:flex;font-weight:700;height:44px;justify-content:center;width:44px}.chat-window .chat-header .visitor-info h3{font-size:1.1rem}.chat-window .chat-header .visitor-info p{color:#94a3b8;font-size:.8rem}.chat-window .chat-header .visitor-info .channel-badge{background:#eef2ff;border-radius:10px;color:#4f46e5;font-size:.7rem;padding:2px 8px}.chat-window .chat-header .chat-actions{display:flex;gap:8px}.chat-window .chat-header .chat-actions button{border-radius:8px;font-size:.8rem;font-weight:600;padding:6px 14px}.chat-window .chat-header .chat-actions .btn-transfer{background:#4f46e5;color:#fff}.chat-window .chat-header .chat-actions .btn-secondary{background:#6b7280;color:#fff}.chat-window .chat-header .chat-actions .btn-close{background:#ef4444;color:#fff}.chat-window .chat-messages{flex:1 1;overflow-y:auto;padding:20px}.chat-window .chat-messages::-webkit-scrollbar{height:6px;width:6px}.chat-window .chat-messages::-webkit-scrollbar-track{background:#0000}.chat-window .chat-messages::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:3px}.chat-window .chat-messages .message{display:flex;flex-direction:column;margin-bottom:16px}.chat-window .chat-messages .message.operator{align-items:flex-end}.chat-window .chat-messages .message.visitor{align-items:flex-start}.chat-window .chat-messages .message.system{align-items:center}.chat-window .chat-messages .message .message-bubble{background:#f1f5f9;border-radius:16px;color:#0f172a;max-width:75%;padding:12px 16px;word-break:break-word}.chat-window .chat-messages .message .message-bubble.operator{background:#4f46e5;color:#fff}.chat-window .chat-messages .message .message-bubble .message-header{display:flex;font-size:.7rem;justify-content:space-between;margin-bottom:4px;opacity:.7}.chat-window .chat-messages .message .message-bubble .message-header .sender-name{font-weight:600}.chat-window .chat-messages .message .message-bubble .attachment-inline img{border-radius:8px;margin-top:8px;max-width:200px}.chat-window .typing-indicator{color:#94a3b8;font-size:.8rem;font-style:italic;padding:8px 16px}.chat-window .chat-input-area{background:#fafafa;border-top:1px solid #e2e8f0;padding:16px}.chat-window .chat-input-area .template-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.chat-window .chat-input-area .template-row .template-chip{align-items:center;background:#eef2ff;border-radius:20px;display:inline-flex;gap:4px;padding:2px 8px}.chat-window .chat-input-area .template-row .template-chip button{font-size:.75rem}.chat-window .chat-input-area .composer-box{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:8px}.chat-window .chat-input-area .composer-box textarea{border:none;min-height:60px;padding:8px;resize:none;width:100%}.chat-window .chat-input-area .composer-box textarea:focus{outline:none}.chat-window .chat-input-area .composer-box .composer-actions{display:flex;gap:8px;justify-content:flex-end}.chat-window .chat-input-area .composer-box .composer-actions .icon-btn{align-items:center;background:none;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;display:flex;height:36px;justify-content:center;width:36px}.chat-window .chat-input-area .composer-box .composer-actions .send-btn{background:#4f46e5;border-radius:8px;color:#fff;font-weight:600;padding:8px 18px}.login-container{align-items:center;background:linear-gradient(135deg,#4338ca,#4f46e5);display:flex;justify-content:center;min-height:100vh;padding:20px}.login-container .login-card{background:#fff;border-radius:20px;box-shadow:0 10px 25px #0000001a;max-width:420px;padding:40px;text-align:center;width:100%}.login-container .login-card .login-header{margin-bottom:32px}.login-container .login-card .login-header .logo{color:#4f46e5;font-size:2.5rem;font-weight:700}.login-container .login-card .login-header h2{margin:12px 0 4px}.login-container .login-card .form-group{margin-bottom:20px;text-align:left}.login-container .login-card .input-field{position:relative}.login-container .login-card .input-field input{border:1px solid #e2e8f0;border-radius:8px;padding:12px;width:100%}.login-container .login-card .input-field .toggle-password{background:none;color:#94a3b8;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.login-container .login-card .login-btn{background:#4f46e5;border-radius:8px;color:#fff;font-weight:600;margin-top:8px;padding:12px;width:100%}.login-container .login-card .demo-section{border-top:1px solid #e2e8f0;margin-top:24px;padding-top:20px}.login-container .login-card .demo-section .demo-buttons{display:flex;gap:8px;justify-content:center;margin:12px 0}.login-container .login-card .demo-section .demo-buttons button{border-radius:20px;color:#fff;font-size:.8rem;padding:6px 12px}.login-container .login-card .demo-section .demo-buttons .admin{background:#ef4444}.login-container .login-card .demo-section .demo-buttons .manager{background:#f59e0b}.login-container .login-card .demo-section .demo-buttons .operator{background:#10b981}.login-container .login-card .demo-section .demo-credentials{color:#94a3b8;display:flex;flex-direction:column;font-size:.7rem;gap:4px}.admin-panel .admin-content .admin-header{margin-bottom:24px}.charts-grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(400px,1fr))}.charts-grid .chart-card{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;padding:20px}.charts-grid .chart-card h3{margin-bottom:16px}.settings .settings-tabs{border-bottom:2px solid #e2e8f0;display:flex;gap:8px;margin-bottom:24px}.settings .settings-tabs button{border-bottom:2px solid #0000;color:#475569;font-size:.9rem;font-weight:600;margin-bottom:-2px;padding:10px 20px;transition:color .25s ease,border-color .25s ease}.settings .settings-tabs button.active{border-bottom-color:#4f46e5;color:#4f46e5}.settings .backup-section,.settings .security-section{background:#f8fafc;border-radius:12px;margin-bottom:24px;padding:20px}@media(max-width:1024px){.operator-main{flex-direction:column}.operator-main .chats-sidebar{border-bottom:1px solid #e2e8f0;border-right:none;max-height:40vh;width:100%}}@media(max-width:768px){.sidebar{bottom:0;left:-280px;position:fixed;top:0}.sidebar.mobile-open{left:0}.mobile-menu-btn{align-items:center;display:flex;justify-content:center}.mobile-overlay{display:block}.main-content{margin-left:0}.top-bar{padding:12px 16px}.stats-grid{grid-template-columns:1fr 1fr}.chats-layout{flex-direction:column}.data-table{font-size:.8rem}}.users-management .page-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px}.users-management .page-header h2{font-size:1.5rem;font-weight:700}.users-management .page-header .btn-primary{background:#4f46e5;border-radius:8px;color:#fff;font-size:.9rem;font-weight:600;padding:10px 20px;transition:background .25s ease}.users-management .page-header .btn-primary:hover{background:#4338ca}.users-management .users-table-container{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;overflow:hidden}.users-management .loading-spinner{align-items:center;color:#475569;display:flex;justify-content:center;padding:60px 20px}.role-badge{border-radius:20px;display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.5px;padding:4px 12px;text-transform:uppercase}.role-badge.admin{background:#fee2e2;color:#dc2626}.role-badge.manager{background:#fef3c7;color:#d97706}.role-badge.operator{background:#dbeafe;color:#2563eb}.online-status{align-items:center;display:flex;font-size:.85rem;gap:6px}.online-status.online{color:#10b981;font-weight:500}.online-status.online:before{background:#10b981;border-radius:50%;content:"";display:inline-block;height:8px;width:8px}.online-status.offline{color:#94a3b8;font-weight:400}.online-status.offline:before{background:#94a3b8;border-radius:50%;content:"";display:inline-block;height:8px;width:8px}.user-cell{align-items:center;display:flex;gap:12px}.user-cell img{border:2px solid #e2e8f0;border-radius:50%;height:36px;object-fit:cover;width:36px}.user-cell span{font-weight:500}.btn-icon{align-items:center;background:#0000;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;display:inline-flex;font-size:1rem;height:32px;justify-content:center;margin:0 4px;transition:background .25s ease,transform .15s;width:32px}.btn-icon:hover{transform:scale(1.05)}.btn-icon.btn-edit{background:#eef2ff;border-color:#f9f9fe;color:#4f46e5}.btn-icon.btn-edit:hover{background:#d5dfff}.btn-icon.btn-delete{background:#fee2e2;border-color:#fbd1d1;color:#ef4444}.btn-icon.btn-delete:hover{background:#fdc9c9}.status-badge.inactive{background:#fee2e2;color:#991b1b}.btn-sm{align-items:center;border:1px solid #0000;border-radius:6px;cursor:pointer;display:inline-flex;font-size:.75rem;font-weight:600;gap:4px;justify-content:center;padding:5px 12px;transition:all .2s ease}.btn-sm.btn-edit{background:#eef2ff;border-color:#e4e3fb;color:#4338ca}.btn-sm.btn-edit:hover{background:#4f46e5;border-color:#4f46e5;color:#fff}.btn-sm.btn-delete{background:#fee2e2;border-color:#f9b9b9;color:#eb1515}.btn-sm.btn-delete:hover{background:#ef4444;border-color:#ef4444;color:#fff}.channels-management .page-header{display:flex;justify-content:flex-end;margin-bottom:24px}.channels-management .page-header .btn-primary{font-weight:600;padding:10px 20px}.channels-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.channels-grid .empty-state{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;grid-column:1/-1;padding:60px 20px;text-align:center}.channels-grid .empty-state h3{color:#0f172a;margin-top:16px}.channels-grid .empty-state p{color:#475569;margin-bottom:20px}.channel-card{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;display:flex;flex-direction:column;overflow:hidden;transition:box-shadow .2s,transform .2s}.channel-card:hover{box-shadow:0 4px 6px #00000012;transform:translateY(-2px)}.channel-card .channel-header{align-items:flex-start;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 20px 12px}.channel-card .channel-header .channel-title{align-items:center;display:flex;flex-wrap:wrap;gap:12px}.channel-card .channel-header .channel-title .channel-type-badge{background:#eef2ff;border-radius:20px;color:#4338ca;display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.5px;padding:4px 10px;text-transform:uppercase}.channel-card .channel-header .channel-title h3{color:#0f172a;font-size:1.1rem;font-weight:600;margin:0}.channel-card .channel-header .status-badge{flex-shrink:0;margin-top:2px}.channel-card .channel-body{flex:1 1;padding:16px 20px}.channel-card .channel-body .channel-description{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#475569;display:-webkit-box;font-size:.9rem;line-height:1.5;margin-bottom:16px;overflow:hidden}.channel-card .channel-body .channel-config{background:#f8fafc;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:12px}.channel-card .channel-body .channel-config .config-item{align-items:flex-start;display:flex;flex-direction:column;font-size:.8rem;justify-content:space-between}.channel-card .channel-body .channel-config .config-item .config-label{color:#94a3b8;font-weight:500}.channel-card .channel-body .channel-config .config-item .config-value{color:#0f172a;font-weight:500;text-align:left}.channel-card .channel-body .channel-config .config-item .color-preview{border:1px solid #e2e8f0;border-radius:4px;height:20px;width:20px}.channel-card .channel-footer{background:#f9fafb;border-top:1px solid #e2e8f0;display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px}.channel-card .channel-footer .btn-sm{font-size:.75rem;padding:6px 12px}.widget-code{background:#1e293b;border-radius:8px;color:#e2e8f0;font-family:Fira Code,monospace;font-size:.8rem;margin:16px 0;overflow-x:auto;padding:16px;white-space:pre-wrap;word-break:break-all}.modal-lg{max-width:700px;width:95%}.channel-operators-management .page-header{margin-bottom:24px}.channel-operators-management .page-header h2{font-size:1.5rem;font-weight:700}.management-card{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;max-width:600px;padding:24px}.management-card .form-group{margin-bottom:24px}.management-card .form-group label{color:#0f172a;display:block;font-weight:600;margin-bottom:8px}.management-card .form-group .form-select{background:#fff;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;cursor:pointer;font-size:.9rem;padding:10px 12px;transition:border-color .25s ease,box-shadow .25s ease;width:100%}.management-card .form-group .form-select:focus{border-color:#6366f1;box-shadow:0 0 0 3px #4f46e51a;outline:none}.operators-grid{grid-gap:8px;display:grid;gap:8px;grid-template-columns:1fr;margin-bottom:24px}.operators-grid .text-muted{color:#94a3b8;font-size:.9rem;padding:20px;text-align:center}.operator-card{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:10px 14px;transition:all .2s ease}.operator-card:hover{background:#f8fafc;border-color:#cbd5e1}.operator-card.selected{background:#eef2ff;border-color:#cfccf8}.operator-card__avatar img{border:2px solid #e2e8f0;border-radius:50%;height:38px;object-fit:cover;width:38px}.operator-card__info{display:flex;flex:1 1;flex-direction:column;gap:2px}.operator-card__info .operator-name{color:#0f172a;font-size:.9rem;font-weight:600}.operator-card__info .operator-email{color:#94a3b8;font-size:.8rem}.operator-card__checkbox input[type=checkbox]{accent-color:#4f46e5;cursor:pointer;height:18px;width:18px}.management-actions{display:flex;justify-content:flex-end;margin-top:8px}.management-actions .btn-primary{font-weight:600;padding:10px 24px}.chats-management .page-header{margin-bottom:24px}.chats-management .filters{align-items:center;display:flex;flex-wrap:wrap;gap:12px}.chats-management .filters .filter-select{background:#fff;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;cursor:pointer;font-size:.9rem;min-width:180px;padding:8px 12px}.chats-management .filters .search-input{flex:1 1;min-width:200px;position:relative}.chats-management .filters .search-input .search-field{border:1px solid #e2e8f0;border-radius:8px;font-size:.9rem;padding:8px 12px 8px 36px;width:100%}.chats-management .filters .search-input .search-field::placeholder{color:#94a3b8}.chats-management .filters .search-input:before{color:#94a3b8;content:"🔍";font-size:1rem;left:10px;position:absolute;top:50%;transform:translateY(-50%)}.chats-layout{display:flex;gap:20px;height:calc(100vh - 180px)}.chats-list{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;overflow-y:auto;width:320px}.chats-list::-webkit-scrollbar{height:6px;width:6px}.chats-list::-webkit-scrollbar-track{background:#0000}.chats-list::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:3px}.chats-list .empty-state,.chats-list .loading-state{align-items:center;color:#94a3b8;display:flex;flex-direction:column;height:100%;justify-content:center;padding:20px;text-align:center}.no-chats{padding-inline:12px}.chat-item{border-bottom:1px solid #e5e7eb;cursor:pointer;padding:12px 16px;transition:background .2s}.chat-item:hover{background:#f9fafb}.chat-item.selected{background:#eff6ff}.chat-item .chat-item-content{align-items:stretch;display:flex;gap:12px}.chat-item .chat-avatar{flex-shrink:0;position:relative}.chat-item .chat-avatar .avatar-placeholder{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;color:#fff;display:flex;font-size:18px;font-weight:700;height:42px;justify-content:center;width:42px}.chat-item .chat-avatar .status-dot{border:2px solid #fff;border-radius:50%;bottom:2px;height:10px;position:absolute;right:2px;width:10px}.chat-item .chat-main{display:flex;flex:1 1;flex-direction:column;min-width:0}.chat-item .chat-main .chat-header{align-items:baseline;display:flex;gap:8px;justify-content:space-between;margin-bottom:4px}.chat-item .chat-main .chat-header .visitor-name{align-items:center;color:#1f2937;display:flex;flex:1 1;font-size:14px;font-weight:600;gap:6px;min-width:0;word-break:break-word}.chat-item .chat-main .chat-header .visitor-name .unread-badge{background:#ef4444;border-radius:10px;color:#fff;flex-shrink:0;font-size:10px;padding:2px 6px}.chat-item .chat-main .chat-header .chat-time{color:#9ca3af;flex-shrink:0;font-size:11px}.chat-item .chat-main .chat-details{color:#6b7280;display:flex;font-size:12px;gap:12px;margin-bottom:6px}.chat-item .chat-main .chat-details .visitor-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-item .chat-main .chat-details .channel-name{color:#8b5cf6;font-weight:500}.chat-item .chat-main .chat-actions-bottom{display:flex;gap:8px;margin-top:4px}.chat-item .chat-main .chat-actions-bottom .take-chat-btn{background:#10b981;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:12px;padding:4px 12px;transition:background .2s}.chat-item .chat-main .chat-actions-bottom .take-chat-btn:hover{background:#059669}.chat-item .chat-main .chat-actions-bottom .close-chat-btn{background:#ef4444;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:12px;padding:4px 12px;transition:background .2s}.chat-item .chat-main .chat-actions-bottom .close-chat-btn:hover{background:#dc2626}.chat-detail{background:#fff;border-radius:12px;box-shadow:0 1px 2px #0000000d;flex:1 1;overflow:hidden}.chat-detail .no-chat-selected{align-items:center;display:flex;height:100%;justify-content:center}.chat-detail .no-chat-selected .empty-state{padding:40px;text-align:center}.chat-detail .no-chat-selected .empty-state h3{margin-bottom:8px}.chat-detail .no-chat-selected .empty-state p{color:#94a3b8}.attachments-preview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px;padding:10px 12px}.attachment-item{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:8px;display:flex;gap:8px;max-width:220px;padding:6px 10px;position:relative;transition:all .2s ease}.attachment-item:hover{border-color:#6366f1;box-shadow:0 2px 8px #0000000f}.attachment-item img{border:1px solid #e2e8f0;border-radius:6px;flex-shrink:0;height:48px;object-fit:cover;width:48px}.attachment-item span{color:#0f172a;font-size:.75rem;font-weight:500;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-item .btn-link{align-items:center;background:#fee2e2;border-radius:50%;color:#ef4444;display:flex;flex-shrink:0;font-size:.8rem;font-weight:700;height:22px;justify-content:center;line-height:1;padding:0;transition:all .2s ease;width:22px}.attachment-item .btn-link:hover{background:#ef4444;color:#fff;transform:scale(1.1)}.message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.message-attachments .attachment-wrapper{border-radius:8px;cursor:pointer;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}.message-attachments .attachment-wrapper:hover{box-shadow:0 4px 12px #00000026;transform:scale(1.02)}.message-attachments .attachment-wrapper .attachment-image{border-radius:8px;display:block;max-height:200px;max-height:150px;max-width:200px;max-width:150px;object-fit:cover}.message-attachments .attachment-wrapper:only-child .attachment-image{max-height:300px;max-width:300px}.image-lightbox-overlay{align-items:center;animation:lightboxFadeIn .25s ease;background:#000000e6;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999999}.image-lightbox-overlay .image-lightbox-image{animation:lightboxScaleIn .3s ease;border-radius:4px;box-shadow:0 0 40px #00000080;max-height:95%;max-width:95%;object-fit:contain}.image-lightbox-overlay .image-lightbox-close{background:none;border:none;color:#fff;cursor:pointer;font-size:40px;font-weight:700;position:absolute;right:30px;top:20px;transition:transform .2s ease;z-index:1}.image-lightbox-overlay .image-lightbox-close:hover{transform:scale(1.2)}@keyframes lightboxFadeIn{0%{opacity:0}to{opacity:1}}@keyframes lightboxScaleIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.operator-header{align-items:center;display:flex;gap:20px}.operator-header .channel-selector{align-items:center;display:flex;gap:8px}.operator-header .channel-selector select{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:6px 12px}.social-links-editor .social-link-row{align-items:center;display:flex;gap:8px;margin-bottom:8px}.social-links-editor .social-link-row select{flex:0 0 120px;padding:6px}.social-links-editor .social-link-row input{flex:1 1;padding:6px}.social-links-editor .social-link-row .btn-remove-link{background:#ef4444;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:16px;padding:4px 10px}.social-links-editor .btn-add-link{background:#3b82f6;border:none;border-radius:4px;color:#fff;cursor:pointer;margin-top:4px;padding:6px 14px}.buttons-list{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.button-item{align-items:center;display:flex;gap:8px}.button-item input{flex:1 1}.btn-sm{font-size:12px;padding:4px 10px}.reports-export{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;max-width:500px;padding:24px}.reports-export h3{margin-bottom:20px}.form-row{display:flex;gap:16px}.form-row .form-group{flex:1 1}.report-type-selector{display:flex;gap:8px}.report-type-btn{background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;color:#6b7280;cursor:pointer;flex:1 1;font-size:14px;font-weight:500;padding:8px 16px;transition:all .2s}.report-type-btn.active{background:#3b82f6;border-color:#3b82f6;color:#fff}.report-type-btn:hover:not(.active){background:#e5e7eb}
/*# sourceMappingURL=main.6cb0e9b7.css.map*/