*{margin:0;padding:0;box-sizing:border-box}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root{width:100%;min-height:100vh}.layout{min-height:100vh;display:flex;flex-direction:column;transition:background .5s ease,font-size .3s ease;font-size:1rem}.header{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:.25rem 2rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.1);position:relative;height:40px;z-index:50000}.header-left{display:flex;align-items:center;gap:2rem;flex:0 0 auto}.header-center{position:relative;flex:1;height:100%}.floating-style-tools{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:.75rem;z-index:10000}.header-right{display:flex;align-items:center;flex:0 0 auto}.logo{height:30px;width:auto;transition:all .3s ease;cursor:pointer;margin-top:12px}.logo:hover{transform:scale(1.05);opacity:.8}.user-menu{position:relative;z-index:100000}.user-icon{display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:50%;background:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.user-icon:hover{background:#fff;transform:scale(1.05);box-shadow:0 6px 16px #00000026}.user-avatar{font-size:1.5rem;color:#4a5568}.dropdown-menu{position:absolute;top:100%;right:0;margin-top:8px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;box-shadow:0 8px 32px #00000026;border:1px solid rgba(255,255,255,.3);min-width:180px;z-index:999999;overflow:hidden;animation:dropdownSlideIn .2s ease-out}@keyframes dropdownSlideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:all .2s ease;color:#4a5568;font-weight:500;border-bottom:1px solid rgba(0,0,0,.05)}.dropdown-item:last-child{border-bottom:none}.dropdown-item:hover{background:#0000000d;color:#2d3748}.dropdown-icon{font-size:1.1rem;width:20px;text-align:center}.dropdown-header{padding:16px;background:#00000005;border-bottom:1px solid rgba(0,0,0,.05)}.dropdown-profile{display:flex;align-items:center;gap:12px}.dropdown-profile-avatar{width:40px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:#fff;flex-shrink:0}.dropdown-profile-name{font-weight:600;color:#2d3748;font-size:.95rem}.dropdown-divider{height:1px;background:#0000001a;margin:4px 0}.main-container{display:flex;flex:1;padding:.5rem 1rem}.nav-menu{display:flex;flex-direction:row;gap:0;align-items:center;height:100%}.nav-item{display:flex;align-items:center;gap:.5rem;padding:0 1rem;height:100%;border:none;background:transparent;cursor:pointer;transition:all .3s ease;font-family:inherit;font-size:.95em;color:#fffc;text-align:center;font-weight:500;white-space:nowrap;border-bottom:2px solid transparent;line-height:1;transform:translateY(8px)}.nav-item:hover{color:#fff}.nav-item.active{color:#fff;font-weight:600;border-bottom-color:transparent;position:relative}.nav-item.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#fffc;border-bottom-color:transparent}.nav-item.nav-text-white{color:#fffc}.nav-item.nav-text-white:hover,.nav-item.nav-text-white.active{color:#fff}.nav-item.nav-text-white.active:after{background:#fffc}.nav-item.nav-text-black{color:#000000b3}.nav-item.nav-text-black:hover,.nav-item.nav-text-black.active{color:#000000e6}.nav-item.nav-text-black.active:after{background:#000000b3}.nav-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px}.nav-label{font-weight:500}.content{flex:1;background:#ffffffe6;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.3);border-radius:16px;padding:.75rem 2rem 2rem;box-shadow:0 10px 30px #0000001a;transition:all .3s ease;min-height:calc(100vh - 150px);position:relative;z-index:1}@media (max-width: 1024px){.header{padding:1rem}.nav-menu{gap:.25rem}.nav-item{padding:.4rem .8rem;font-size:.8em}.nav-item .nav-label{display:none}}@media (max-width: 768px){.header{height:auto;padding:.75rem 1rem}.nav-item .nav-label{display:inline;font-size:.7em}.nav-item{flex-direction:column;gap:.25rem;padding:.5rem .6rem}.main-container{padding:1rem}}.home{padding:0}.home-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.home-header h1{color:#2d3748;font-size:1.8rem;margin:0}.client-info{display:flex;gap:.75rem;align-items:center}.client-badge,.provider-badge{padding:.5rem 1rem;border-radius:20px;font-size:.85rem;font-weight:600}.client-badge{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.provider-badge{background:#e2e8f0;color:#4a5568}.control-panels{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:2rem;margin-bottom:2rem;align-items:stretch}.control-panel{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 10px 30px #00000014;border-left:5px solid #2563eb;position:relative;z-index:10}.control-panel h2{color:#2d3748;font-size:1.6rem;margin-bottom:1.5rem;padding-bottom:.75rem;display:flex;align-items:center;gap:.5rem;border-bottom:2px solid #e2e8f0}.ai-controls{grid-column:2;grid-row:1}.notifications-panel{grid-column:2;grid-row:2;display:flex;flex-direction:column}.notifications-panel .notifications-container{flex:1;display:flex;flex-direction:column}.metrics-status-row{grid-column:1 / -1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:2rem}.metrics-status-row .metrics-panel{grid-column:1}.metrics-status-row .status-panel{grid-column:2}.chatbot-controls{padding:0;overflow:hidden;grid-row:1 / 3;grid-column:1;display:flex;flex-direction:column}.chatbot-controls .chatbot-panel{box-shadow:none;border-radius:0;height:100%;display:flex;flex-direction:column}.control-item{margin-bottom:2rem}.control-item:last-child{margin-bottom:0}.control-item h3{color:#2d3748;font-size:1.4rem;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #e2e8f0}.toggle-container{display:flex;gap:1.5rem;align-items:flex-start;margin-top:-1rem}.toggle-switch{position:relative;display:inline-block;width:120px!important;height:68px!important;z-index:100}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;inset:0;width:100%!important;height:100%!important;background-color:#ccc;transition:.4s;border-radius:68px!important;z-index:101;display:block}.toggle-slider:before{position:absolute;content:"";height:52px!important;width:52px!important;left:8px!important;top:50%!important;transform:translateY(-50%);background-color:#fff;transition:.4s;border-radius:50%;z-index:102}input:checked+.toggle-slider{background:linear-gradient(135deg,#48bb78,#38a169)}input:focus+.toggle-slider{box-shadow:0 0 1px #2196f3}input:checked+.toggle-slider:before{transform:translateY(-50%) translate(52px)}.toggle-info h3{margin:0 0 .5rem;color:#2d3748;font-size:1.1rem;border-bottom:none!important;padding-bottom:0!important}.status.enabled{color:#48bb78;font-weight:600}.status.disabled{color:#e53e3e;font-weight:600}.response-time-container{display:flex;align-items:center;gap:1rem;margin:1rem 0}.response-time-input{padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;width:100px;text-align:center}.response-time-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.time-unit{color:#4a5568;font-weight:500}.time-display{padding:.5rem 1rem;background:#f7fafc;border-radius:6px;color:#2d3748;font-weight:600}.notifications-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.notifications-panel-header h2{margin:0}.see-all-notifications-btn{background:transparent;color:#667eea;border:none;padding:.5rem .75rem;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease}.see-all-notifications-btn:hover{background:#667eea1a;transform:translate(2px)}.notifications-header{margin-bottom:1rem}.notifications-header h3{margin:0;color:#2d3748;font-size:1.4rem;padding-bottom:.5rem;border-bottom:2px solid #e2e8f0;width:100%}.notification-summary{display:flex;gap:.75rem;align-items:center}.unread-count{background:#ed8936;color:#fff;font-size:.75rem;padding:.25rem .5rem;border-radius:10px;font-weight:600}.high-priority-count{background:#e53e3e;color:#fff;font-size:.75rem;padding:.25rem .5rem;border-radius:10px;font-weight:600}.notifications-container{max-height:300px;overflow-y:auto}.metrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}.metric-card{background:#f7fafc;padding:1.5rem;border-radius:12px;text-align:center;position:relative;border:2px solid transparent;transition:all .3s ease}.metric-card:hover{border-color:#667eea;transform:translateY(-2px)}.metric-value{font-size:2rem;font-weight:700;color:#2d3748;margin-bottom:.5rem}.metric-label{color:#4a5568;font-size:.9rem;margin-bottom:.5rem}.metric-icon{font-size:1.2rem;position:absolute;top:.75rem;right:.75rem}.loading-metrics{text-align:center;padding:2rem;color:#4a5568}.refresh-metrics-btn{width:100%;padding:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;transition:transform .2s ease}.refresh-metrics-btn:hover{transform:translateY(-2px)}.status-items{display:flex;flex-direction:column;gap:1rem}.status-item{display:flex;align-items:center;gap:1rem;padding:.75rem 0;border-bottom:1px solid #f1f5f9}.status-item:last-child{border-bottom:none}.status-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.status-dot.connected{background:#48bb78;box-shadow:0 0 10px #48bb7866}.status-dot.active{background:#667eea;box-shadow:0 0 10px #667eea66}.status-dot.normal{background:#ed8936;box-shadow:0 0 10px #ed893666}.status-value{margin-left:auto;font-weight:600;color:#2d3748}@media (max-width: 1024px){.control-panels,.metrics-grid{grid-template-columns:1fr}}.confirmation-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000}.confirmation-modal{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 20px 40px #0003;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.confirmation-modal h3{margin:0 0 1rem;color:#2d3748;font-size:1.3rem}.confirmation-modal p{margin:0 0 1rem;color:#4a5568;line-height:1.5}.confirmation-input{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;margin:1rem 0;box-sizing:border-box}.confirmation-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.confirmation-buttons{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.confirm-btn,.cancel-btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s ease}.confirm-btn{background:linear-gradient(135deg,#e53e3e,#c53030);color:#fff}.confirm-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #e53e3e4d}.cancel-btn{background:#f7fafc;color:#4a5568;border:1px solid #e2e8f0}.cancel-btn:hover{background:#edf2f7;transform:translateY(-2px)}@media (max-width: 768px){.home-header{flex-direction:column;align-items:flex-start}.response-time-container{flex-wrap:wrap}.toggle-container{flex-direction:column;align-items:flex-start;gap:1rem}.confirmation-modal{margin:1rem;width:calc(100% - 2rem)}.confirmation-buttons{flex-direction:column}}.notification-list{display:flex;flex-direction:column;gap:.75rem}.notification-list.compact{gap:.5rem}.notification-list-item{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem;border:1px solid #e2e8f0;border-radius:8px;background:#fff;transition:all .3s ease}.notification-list-item.compact{padding:.75rem}.notification-list-item:hover{box-shadow:0 2px 8px #0000001a}.notification-list-item.unread{background:linear-gradient(90deg,#fff,#f0f4ff);border-left:3px solid #2563eb}.notification-list-left{display:flex;gap:.75rem;flex:1}.notification-list-icon{width:32px;height:32px;border-radius:50%;background:#f7fafc;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0;color:#4a5568}.notification-list-icon.alert{background:#fee5e5;color:#e53e3e}.notification-list-icon.warning{background:#fef5e7;color:#ed8936}.notification-list-icon.success{background:#e6ffed;color:#38a169}.notification-list-icon.info{background:#e6f3ff;color:#2563eb}.notification-list-icon.system{background:#f5f3ff;color:#7c3aed}.notification-list-icon.escalation{background:#fff5f5;color:#e53e3e}.notification-list-item.compact .notification-list-icon{width:28px;height:28px;font-size:.9rem}.notification-list-content{flex:1}.notification-list-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.25rem;gap:.5rem}.notification-list-title{font-size:.95rem;font-weight:600;color:#2d3748;margin:0;line-height:1.3}.notification-list-item.compact .notification-list-title{font-size:.9rem}.notification-list-badges{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.unread-dot{width:8px;height:8px;border-radius:50%;background:#ed8936}.priority-dot{width:8px;height:8px;border-radius:50%}.notification-contact-name{color:#667eea;font-size:.9rem;font-weight:500;line-height:1.3;margin:.25rem 0}.notification-list-item.compact .notification-contact-name{font-size:.85rem}.notification-list-message{color:#4a5568;font-size:.85rem;line-height:1.4;margin:0 0 .5rem}.notification-list-item.compact .notification-list-message{font-size:.8rem;margin-bottom:.25rem}.notification-list-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}.notification-list-time{color:#a0aec0;font-size:.75rem}.notification-action-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;cursor:pointer;transition:transform .2s ease}.notification-action-btn:hover{transform:translateY(-1px)}.notification-list-actions{display:flex;gap:.25rem;flex-shrink:0;margin-left:.5rem}.mark-read-btn,.delete-notification-btn{width:28px;height:28px;border:none;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:all .3s ease}.mark-read-btn{background:#e6ffed;color:#2ed573}.mark-read-btn:hover{background:#2ed573;color:#fff}.delete-notification-btn{background:#ffe6e6;color:#ff4757}.delete-notification-btn:hover{background:#ff4757;color:#fff}.more-notifications{text-align:center;padding:.75rem;color:#667eea;font-size:.85rem;font-weight:500;background:#f7fafc;border-radius:8px;border:1px solid #e2e8f0}.no-notifications{text-align:center;padding:2rem;color:#a0aec0}.no-notifications.compact{padding:1rem}.no-notifications-icon{font-size:2rem;display:block;margin-bottom:.5rem}.no-notifications.compact .no-notifications-icon{font-size:1.5rem}.no-notifications p{margin:0;font-size:.9rem}@media (max-width: 768px){.notification-list-item{flex-direction:column;gap:.75rem}.notification-list-actions{align-self:flex-end;margin-left:0}.notification-list-footer{justify-content:flex-start}}.chatbot-panel{background:#fffffff2;border-radius:12px;padding:2rem;box-shadow:0 4px 12px #0000001a;display:flex;flex-direction:column;height:100%;min-height:calc(100vh - 110px)}.chatbot-header{margin-bottom:1.5rem}.chatbot-greeting{font-size:2.5rem;font-weight:700;color:#1a202c;margin:0 0 .5rem;letter-spacing:-.02em}.chatbot-subtitle{font-size:.95rem;color:#718096;line-height:1.6;margin:0;font-weight:400}.chatbot-messages{flex:1;overflow-y:auto;margin-bottom:1rem;display:flex;flex-direction:column;gap:.75rem;padding-right:.5rem}.chatbot-messages::-webkit-scrollbar{width:6px}.chatbot-messages::-webkit-scrollbar-track{background:#0000000d;border-radius:3px}.chatbot-messages::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.chatbot-messages::-webkit-scrollbar-thumb:hover{background:#0000004d}.chat-message{display:flex;width:100%}.chat-message.user{justify-content:flex-end}.chat-message.bot{justify-content:flex-start}.message-bubble{max-width:80%;padding:.75rem 1rem;border-radius:12px;word-wrap:break-word;font-size:.95rem;line-height:1.5}.chat-message.user .message-bubble{background:#4f46e5;color:#fff;border-bottom-right-radius:4px}.chat-message.bot .message-bubble{background:#f3f4f6;color:#2d3748;border-bottom-left-radius:4px}.message-bubble.typing{display:flex;gap:.5rem;padding:1rem}.message-bubble.typing span{width:8px;height:8px;background:#9ca3af;border-radius:50%;animation:typing 1.4s infinite}.message-bubble.typing span:nth-child(2){animation-delay:.2s}.message-bubble.typing span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-10px);opacity:1}}.chatbot-input-form{display:flex;gap:.5rem}.chatbot-input{flex:1;padding:.75rem 1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s ease;font-family:inherit}.chatbot-input:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.chatbot-input:disabled{background:#f7fafc;cursor:not-allowed}.chatbot-send-btn{padding:.75rem 1.5rem;background:#4f46e5;color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease;font-family:inherit}.chatbot-send-btn:hover:not(:disabled){background:#4338ca;transform:translateY(-1px);box-shadow:0 4px 8px #4f46e54d}.chatbot-send-btn:disabled{background:#cbd5e0;cursor:not-allowed;transform:none}.conversations{padding:0;height:100%}.conversations-layout{display:flex;height:calc(100vh - 200px);gap:1rem}.conversations-panel{flex:1;min-width:400px;display:flex;flex-direction:column;transition:all .3s ease}.conversations-panel.with-detail{flex:0 0 400px}.conversation-detail-panel{flex:1;min-width:0}.conversations-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.conversations-header h2{color:#2d3748;font-size:1.5rem;margin:0}.refresh-btn{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;transition:transform .2s ease}.refresh-btn:hover{transform:translateY(-2px)}.filters{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.conversations-list{display:flex;flex-direction:column;gap:.75rem;flex:1;overflow-y:auto;padding-right:.5rem}.conversation-item{display:flex;justify-content:space-between;align-items:flex-start;padding:1.25rem;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .3s ease;background:#fff}.conversation-item:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.conversation-item.selected{border-color:#667eea;box-shadow:0 0 0 2px #667eea33}.conversation-item.unread{background:linear-gradient(90deg,#fff,#f0f4ff);border-left:4px solid #2563eb}.conversation-left{flex:1}.conversation-header-info{display:flex;align-items:center;gap:.75rem;margin-bottom:.25rem}.customer-name{font-size:1.1rem;font-weight:600;color:#2d3748;margin:0}.business-name{color:#667eea;font-size:.9rem;font-weight:500;margin:0 0 .5rem}.last-message{color:#4a5568;font-size:.9rem;margin:0;line-height:1.4}.conversation-right{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}.timestamp{color:#a0aec0;font-size:.8rem}.conversation-meta{display:flex;flex-direction:column;gap:.25rem;align-items:flex-end}.channel-badge{background:#edf2f7;color:#4a5568;font-size:.75rem;padding:.25rem .5rem;border-radius:12px;font-weight:500}.status-badge{color:#fff;font-size:.75rem;padding:.25rem .5rem;border-radius:12px;font-weight:500;text-transform:uppercase}.no-conversations{text-align:center;padding:3rem 2rem;color:#a0aec0;font-size:1.1rem}.load-more-section{display:flex;justify-content:center;margin-top:2rem;padding:1rem}.load-more-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:25px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.load-more-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.pagination-loading{text-align:center;padding:1rem;color:#667eea;font-style:italic}.api-status-warning{margin-top:1rem;padding:1rem;background:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;color:#856404;font-size:.9rem;text-align:center}@media (max-width: 1024px){.conversations-layout{flex-direction:column;height:auto}.conversations-panel.with-detail{flex:1}.conversations-panel{min-width:0}.conversation-detail-panel{height:60vh}}@media (max-width: 768px){.conversations-layout{height:auto;gap:.5rem}.conversation-item{flex-direction:column;gap:1rem}.conversation-right{align-self:flex-start;flex-direction:row;align-items:center;gap:1rem}.conversation-meta{flex-direction:row;gap:.5rem}.header-actions{flex-direction:column;align-items:stretch}.conversations-panel{min-width:0}.conversation-detail-panel{height:50vh}}.conversation-detail{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 10px 30px #0000001a}.conversation-detail-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.conversation-detail-info{flex:1}.customer-details h2{margin:0 0 .5rem;font-size:1.3rem;font-weight:600}.conversation-meta{display:flex;align-items:center;gap:1rem;font-size:.9rem;opacity:.9}.channel-info{display:flex;align-items:center;gap:.5rem}.unread-indicator{background:#fff3;padding:.25rem .5rem;border-radius:12px;font-size:.8rem;font-weight:500}.conversation-actions{display:flex;align-items:center;gap:.75rem}.ai-toggle-container{display:flex;align-items:center;gap:.5rem}.ai-action-btn{padding:.5rem 1rem;border:1px solid rgba(255,255,255,.3);border-radius:20px;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .3s ease;color:#fff;background:#ffffff26;white-space:nowrap}.ai-action-btn:hover:not(:disabled){background:#ffffff40;transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.ai-action-btn:disabled{cursor:not-allowed;opacity:.7}.ai-action-btn.enable-btn{border-color:#10b98199;background:#10b98133}.ai-action-btn.enable-btn:hover:not(:disabled){background:#10b9814d;border-color:#10b981cc}.ai-action-btn.disable-btn{border-color:#fff6;background:#ffffff26}.ai-action-btn.disable-btn:hover:not(:disabled){background:#ffffff40;border-color:#fff9}.close-conversation-btn{width:36px;height:36px;border:none;background:#fff3;color:#fff;border-radius:50%;cursor:pointer;font-size:1.1rem;transition:background-color .3s ease;display:flex;align-items:center;justify-content:center}.close-conversation-btn:hover{background:#ffffff4d}.messages-container{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.messages-container::-webkit-scrollbar{width:6px}.messages-container::-webkit-scrollbar-track{background:#f1f1f1}.messages-container::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px}.messages-container::-webkit-scrollbar-thumb:hover{background:#a0aec0}.message{display:flex;margin-bottom:.5rem}.message.inbound{justify-content:flex-start}.message.outbound{justify-content:flex-end}.timeline-event{display:flex;align-items:center;margin:1.5rem 0;padding:0 1rem;position:relative}.timeline-event.inbound-event{justify-content:flex-start}.timeline-event.outbound-event{justify-content:flex-end;flex-direction:row-reverse}.timeline-event.outbound-event .event-details{margin-left:0;margin-right:1rem;text-align:right}.event-line{position:absolute;left:50%;top:0;bottom:0;width:2px;background:linear-gradient(180deg,#e2e8f0,#cbd5e0,#e2e8f0);transform:translate(-50%);z-index:0}.event-bubble{width:40px;height:40px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;z-index:1;box-shadow:0 2px 8px #0000001a}.timeline-event.inbound-event .event-bubble{border:3px solid #48bb78}.timeline-event.outbound-event .event-bubble{border:3px solid #667eea}.event-icon{font-size:1.2rem}.event-details{margin-left:1rem;flex:1;max-width:200px}.event-text{font-weight:500;color:#4a5568;font-size:.95rem;margin-bottom:.25rem}.event-time{font-size:.8rem;color:#a0aec0;font-style:italic}.message.special-message{justify-content:center;margin:1rem 0}.message.special-message .message-bubble{max-width:90%;text-align:center;position:relative;font-style:italic}.message-bubble{max-width:70%;padding:.75rem 1rem;border-radius:18px;position:relative;word-wrap:break-word}.message.inbound .message-bubble{background:#f7fafc;border-bottom-left-radius:4px;border:1px solid #e2e8f0}.message.outbound .message-bubble{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:4px}.message-text{font-size:.95rem;line-height:1.4;margin-bottom:.25rem}.message.inbound .message-time{color:#718096}.message.outbound .message-time{color:#fffc}.message-icon{font-size:1.5rem;margin-bottom:.5rem;display:block}.message-type-label{font-size:.7rem;font-weight:600;margin-top:.25rem;opacity:.8;letter-spacing:.5px}.message.special-message.inbound .message-bubble,.message.special-message.outbound .message-bubble{color:#2d3748!important;background:none!important;border-radius:12px!important}.message.special-message .message-time{color:#718096!important;text-align:center}.no-messages{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#a0aec0;text-align:center}.no-messages-icon{font-size:3rem;margin-bottom:1rem;opacity:.5}.no-messages p{font-size:1.1rem;margin:0}.no-conversation-selected{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#a0aec0;text-align:center;padding:2rem}.no-conversation-icon{font-size:4rem;margin-bottom:1.5rem;opacity:.3}.no-conversation-selected h3{font-size:1.3rem;margin:0 0 .5rem;color:#4a5568}.no-conversation-selected p{font-size:1rem;margin:0;opacity:.8}.message-input-container{padding:1rem;border-top:1px solid #e2e8f0;background:#f9fafb}.message-form{width:100%}.input-wrapper{display:flex;align-items:center;gap:.75rem;background:#fff;border:1px solid #e2e8f0;border-radius:25px;padding:.5rem;transition:border-color .3s ease,box-shadow .3s ease}.input-wrapper:focus-within{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.message-input{flex:1;border:none;outline:none;padding:.5rem .75rem;font-size:.95rem;background:transparent}.send-button{width:36px;height:36px;border:none;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;cursor:pointer;font-size:1rem;transition:all .3s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0}.send-button:hover:not(:disabled){transform:scale(1.1);box-shadow:0 4px 12px #667eea4d}.send-button:disabled{background:#cbd5e0;cursor:not-allowed;transform:none}@media (max-width: 768px){.conversation-detail-header{padding:1rem;flex-direction:column;gap:1rem;align-items:stretch}.conversation-actions{justify-content:space-between;gap:.5rem}.ai-toggle-container{gap:.4rem}.ai-action-btn{font-size:.75rem;padding:.4rem .7rem}.customer-details h2{font-size:1.1rem}.conversation-meta{flex-direction:column;align-items:flex-start;gap:.5rem}.message-bubble{max-width:85%}.messages-container,.message-input-container{padding:.75rem}}.notifications{padding:0}.notifications-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.notifications-header h2{color:#2d3748;font-size:1.5rem;margin:0}.header-actions{display:flex;gap:.75rem;align-items:center}.mark-all-read{padding:.5rem 1rem;background:linear-gradient(135deg,#38a169,#2f855a);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.85rem;transition:transform .2s ease}.refresh-btn{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;transition:transform .2s ease;display:flex;align-items:center;gap:.5rem}.mark-all-read:hover,.refresh-btn:hover{transform:translateY(-2px)}.notification-filters{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.notifications-list-container{max-height:calc(100vh - 300px);overflow-y:auto}.notification-item{display:flex;justify-content:space-between;align-items:flex-start;padding:1.25rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;transition:all .3s ease}.notification-item:hover{box-shadow:0 4px 12px #0000001a}.notification-item.unread{background:linear-gradient(90deg,#fff,#f0f4ff);border-left:4px solid #2563eb}.notification-left{display:flex;gap:1rem;flex:1}.notification-icon{width:40px;height:40px;border-radius:50%;background:#f7fafc;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0}.notification-content{flex:1}.notification-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem;gap:1rem}.notification-title{font-size:1rem;font-weight:600;color:#2d3748;margin:0;line-height:1.3}.notification-badges{display:flex;gap:.5rem;flex-shrink:0}.unread-badge{background:#ed8936;color:#fff;font-size:.7rem;padding:.2rem .5rem;border-radius:10px;font-weight:600}.priority-badge{color:#fff;font-size:.7rem;padding:.2rem .5rem;border-radius:10px;font-weight:600;text-transform:uppercase}.notification-message{color:#4a5568;font-size:.9rem;line-height:1.5;margin:0 0 1rem}.notification-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}.notification-time{color:#a0aec0;font-size:.8rem}.action-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.4rem .8rem;border-radius:6px;font-size:.8rem;cursor:pointer;transition:transform .2s ease}.action-btn:hover{transform:translateY(-1px)}.notification-actions{display:flex;gap:.5rem;flex-shrink:0}.read-btn,.delete-btn{width:32px;height:32px;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.9rem;transition:all .3s ease}.read-btn{background:#e6ffed;color:#2ed573}.read-btn:hover{background:#2ed573;color:#fff}.delete-btn{background:#ffe6e6;color:#ff4757}.delete-btn:hover{background:#ff4757;color:#fff}.no-notifications{text-align:center;padding:3rem 2rem;color:#a0aec0;font-size:1.1rem}@media (max-width: 768px){.notification-item{flex-direction:column;gap:1rem}.notification-left{width:100%}.notification-header{flex-direction:column;align-items:flex-start;gap:.5rem}.notification-actions{align-self:flex-end}.notification-footer{justify-content:flex-start}}.metrics-dashboard{padding:32px;max-width:1400px;margin:0 auto}.metrics-header{margin-bottom:32px}.metrics-header h1{font-size:32px;font-weight:600;color:#1a1a1a;margin:0 0 8px}.metrics-header .subtitle{font-size:16px;color:#666;margin:0}.metrics-summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:32px}.summary-card{background:#fff;border:2px solid #e5e7eb;border-radius:12px;padding:20px;cursor:pointer;transition:all .2s ease}.summary-card:hover{border-color:#4f46e5;box-shadow:0 4px 12px #4f46e51a}.summary-card.active{border-color:#4f46e5;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff}.summary-card .card-label{font-size:14px;font-weight:500;margin-bottom:8px;opacity:.8}.summary-card.active .card-label{opacity:1}.summary-card .card-value{font-size:32px;font-weight:700;margin-bottom:4px}.summary-card .card-range{font-size:12px;opacity:.7}.summary-card.active .card-range{opacity:.9}.metrics-controls{display:flex;gap:16px;margin-bottom:32px;flex-wrap:wrap}.control-group{display:flex;flex-direction:column;gap:8px;min-width:200px}.control-group label{font-size:14px;font-weight:500;color:#374151}.control-group select{padding:10px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;transition:all .2s ease}.control-group select:hover{border-color:#4f46e5}.control-group select:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.metrics-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:32px}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;padding:20px;color:#fff}.stat-card .stat-label{font-size:14px;font-weight:500;margin-bottom:8px;opacity:.9}.stat-card .stat-value{font-size:28px;font-weight:700}.metrics-chart{background:#fff;border-radius:12px;padding:24px;margin-bottom:32px;box-shadow:0 2px 8px #0000000d}.metrics-chart h2{font-size:20px;font-weight:600;color:#1a1a1a;margin:0 0 24px}.metrics-breakdown{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000000d}.metrics-breakdown h2{font-size:20px;font-weight:600;color:#1a1a1a;margin:0 0 24px}.loading,.error,.no-data{text-align:center;padding:60px 20px;color:#666;font-size:16px}.error{color:#ef4444;background:#fef2f2;border:2px solid #fee2e2;border-radius:12px;margin:20px}@media (max-width: 768px){.metrics-dashboard{padding:16px}.metrics-header h1{font-size:24px}.metrics-summary-cards{grid-template-columns:1fr}.metrics-controls{flex-direction:column}.control-group{min-width:100%}.metrics-stats{grid-template-columns:repeat(2,1fr)}.summary-card .card-value{font-size:24px}.stat-card .stat-value{font-size:22px}}.policy-documentation{padding:0}.policy-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.header-info h2{color:#2d3748;font-size:1.5rem;margin:0}.policy-subtitle{color:#718096;font-size:.9rem;margin:.25rem 0 0}.header-actions{display:flex;gap:.75rem}.add-section-btn,.refresh-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:transform .2s ease}.refresh-btn{background:linear-gradient(135deg,#667eea,#764ba2)}.add-section-btn:hover,.refresh-btn:hover{transform:translateY(-2px)}.add-section-btn:disabled,.refresh-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.policy-controls{margin-bottom:2rem}.search-box{position:relative;margin-bottom:1rem}.search-input{width:100%;padding:.75rem 2.5rem .75rem 1rem;border:1px solid #e2e8f0;border-radius:10px;font-size:.95rem;transition:all .3s ease}.search-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.search-icon{position:absolute;right:1rem;top:50%;transform:translateY(-50%);color:#a0aec0}.policy-filters{display:flex;gap:.5rem;flex-wrap:wrap}.filter-btn{padding:.5rem 1rem;border:1px solid #e2e8f0;background:#fff;border-radius:20px;cursor:pointer;font-size:.85rem;transition:all .3s ease;color:#4a5568}.filter-btn:hover{background:#f7fafc}.filter-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent}.policies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-bottom:2rem}.policy-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 4px #0000000d}.policy-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #0000001a;border-color:#667eea}.policy-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;gap:1rem}.policy-title{font-size:1.1rem;font-weight:600;color:#2d3748;margin:0;line-height:1.3}.policy-badges{display:flex;flex-direction:column;gap:.25rem;flex-shrink:0}.category-badge,.status-badge{color:#fff;font-size:.7rem;padding:.25rem .5rem;border-radius:12px;font-weight:600;text-transform:uppercase;text-align:center}.policy-description{color:#4a5568;font-size:.9rem;line-height:1.5;margin-bottom:1rem}.policy-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.tag{background:#edf2f7;color:#4a5568;font-size:.8rem;padding:.25rem .5rem;border-radius:12px;font-weight:500}.policy-meta{display:flex;justify-content:space-between;font-size:.8rem;color:#a0aec0;padding-top:1rem;border-top:1px solid #f7fafc}.loading{text-align:center;padding:2rem;color:#4a5568;font-size:1.1rem}.no-policies{text-align:center;padding:3rem 2rem;color:#a0aec0;font-size:1.1rem}.policy-modal{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.policy-modal-content{background:#fff;border-radius:16px;max-width:700px;max-height:80vh;overflow-y:auto;margin:2rem;box-shadow:0 20px 50px #0003}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0}.modal-header h2{margin:0;color:#2d3748;font-size:1.3rem}.close-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#a0aec0;padding:.5rem;transition:color .3s ease}.close-btn:hover{color:#4a5568}.modal-body{padding:1.5rem}.modal-description{font-size:1rem;color:#4a5568;margin-bottom:1.5rem;font-weight:500}.modal-content{font-size:.95rem;line-height:1.6;color:#2d3748;margin-bottom:1.5rem}.modal-tags{display:flex;flex-wrap:wrap;gap:.5rem}.loading-spinner{font-size:1.5rem;animation:spin 1s linear infinite}.error-state{text-align:center;padding:3rem 2rem;color:#e53e3e}.error-icon{font-size:3rem;margin-bottom:1rem}.retry-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#e53e3e,#c53030);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;margin-top:1rem}.saving-indicator{display:flex;align-items:center;gap:.5rem;color:#667eea;font-size:.9rem}.saving-spinner{animation:pulse 1.5s ease-in-out infinite}.sections-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-bottom:2rem}.section-card{background:#fff;border-radius:12px;padding:1.5rem;border:1px solid #e2e8f0;transition:all .3s ease;cursor:pointer}.section-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #0000001a}.section-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.section-title{color:#2d3748;font-size:1.1rem;margin:0;flex:1}.section-actions{display:flex;gap:.5rem}.edit-btn,.delete-btn{background:none;border:none;padding:.5rem;border-radius:6px;cursor:pointer;transition:background-color .2s ease}.edit-btn:hover{background:#f7fafc}.delete-btn:hover{background:#fed7e2}.section-preview{margin-bottom:1rem}.content-stats{display:flex;gap:1rem;margin-bottom:.75rem;font-size:.8rem}.word-count,.char-count{background:#f7fafc;color:#4a5568;padding:.25rem .5rem;border-radius:4px;border:1px solid #e2e8f0}.content-snippet{color:#4a5568;line-height:1.5;font-size:.9rem;background:#f7fafc;padding:.75rem;border-radius:6px;border-left:3px solid #667eea;font-style:italic}.section-footer{display:flex;justify-content:space-between;align-items:flex-end}.section-actions-group{display:flex;gap:.5rem}.view-full-btn,.edit-quick-btn{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .2s ease}.view-full-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.edit-quick-btn{background:linear-gradient(135deg,#48bb78,#38a169);color:#fff}.view-full-btn:hover,.edit-quick-btn:hover{transform:translateY(-1px);box-shadow:0 2px 8px #00000026}.section-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.section-type{font-size:.75rem;color:#667eea;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.last-modified{font-size:.7rem;color:#a0aec0}.no-sections{text-align:center;padding:3rem 2rem;color:#a0aec0;font-size:1.1rem}.section-editor-modal{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.section-editor-content{background:#fff;border-radius:16px;width:90%;max-width:800px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 50px #0003}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0}.editor-header h3{margin:0;color:#2d3748}.form-group label{display:block;margin-bottom:.5rem;color:#4a5568;font-weight:500}.title-input{width:100%;padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:1rem}.content-textarea{width:100%;padding:1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.9rem;font-family:Monaco,Menlo,Ubuntu Mono,monospace;line-height:1.5;resize:vertical}.editor-footer{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn{padding:.75rem 1.5rem;background:#f7fafc;color:#4a5568;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer}.save-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500}.save-btn:disabled{opacity:.6;cursor:not-allowed}.section-modal-content{background:#fff;border-radius:16px;max-width:700px;max-height:80vh;overflow-y:auto;margin:2rem;box-shadow:0 20px 50px #0003}.modal-actions{display:flex;gap:1rem;align-items:center}.edit-modal-btn{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem}.section-content-full{background:#f7fafc;padding:1rem;border-radius:8px;border:1px solid #e2e8f0}.section-content-full pre{margin:0;white-space:pre-wrap;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.5;color:#2d3748}.section-viewer-modal{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;padding:2rem}.section-viewer-content{background:#fff;border-radius:16px;width:90%;max-width:800px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 50px #0003;overflow:hidden}.viewer-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0;background:#f7fafc}.viewer-header h3{margin:0;color:#2d3748;font-size:1.25rem}.viewer-body{flex:1;overflow-y:auto;padding:1.5rem}.viewer-stats{display:flex;gap:1rem;margin-bottom:1.5rem}.stat-badge{background:#667eea;color:#fff;padding:.5rem 1rem;border-radius:20px;font-size:.8rem;font-weight:500}.viewer-content-area{background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1.5rem;min-height:200px;max-height:400px;overflow-y:auto}.viewer-content-area pre{margin:0;white-space:pre-wrap;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.6;color:#2d3748}.viewer-footer{padding:1.5rem;border-top:1px solid #e2e8f0;background:#f7fafc;display:flex;justify-content:center}.edit-from-viewer-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease}.edit-from-viewer-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #48bb784d}@media (max-width: 768px){.sections-grid{grid-template-columns:1fr}.section-header{flex-direction:column;align-items:flex-start;gap:1rem}.section-editor-content{width:95%;max-height:95vh}.editor-footer{flex-direction:column}}.tools-container{padding:2rem;max-width:1200px;margin:0 auto;min-height:100vh}.tools-header{margin-bottom:2rem;text-align:center}.tools-header h2{color:#1e293b;font-size:2rem;font-weight:700;margin-bottom:.5rem}.tools-subtitle{color:#64748b;font-size:1rem;margin:0}.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem;margin-bottom:2rem}.tool-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a;border:1px solid #e2e8f0;transition:all .2s ease}.tool-card:hover{box-shadow:0 8px 15px -3px #0000001a;transform:translateY(-2px)}.tool-card.coming-soon{opacity:.6;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}.tool-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.tool-info{display:flex;gap:1rem;flex:1}.tool-icon{font-size:2rem;width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-radius:12px;flex-shrink:0}.tool-info h3{color:#1e293b;font-size:1.25rem;font-weight:600;margin:0 0 .25rem}.tool-description{color:#64748b;font-size:.875rem;margin:0;line-height:1.4}.tool-toggle{flex-shrink:0}.modern-toggle-switch{--size: 1.5;--w: calc(var(--size) * 32px);--h: calc(var(--size) * 18px);--dot-size: calc(var(--size) * 14px);--gap: calc(var(--size) * 2px);--move-distance: calc(var(--w) - var(--dot-size) - (var(--gap) * 2));position:relative!important;display:inline-block!important;width:var(--w)!important;height:var(--h)!important;vertical-align:middle!important;-webkit-user-select:none!important;user-select:none!important}.modern-toggle-switch .toggle-input{position:absolute!important;opacity:0!important;width:0!important;height:0!important;pointer-events:none!important}.modern-toggle-track{position:absolute!important;inset:0!important;background:#cbd5e1!important;border-radius:calc(var(--h) / 2)!important;cursor:pointer!important;transition:all .25s cubic-bezier(.4,0,.2,1)!important;border:none!important;outline:none!important}.modern-toggle-dot{position:absolute!important;top:var(--gap)!important;left:var(--gap)!important;width:var(--dot-size)!important;height:var(--dot-size)!important;background:#fff!important;border-radius:50%!important;transition:all .25s cubic-bezier(.4,0,.2,1)!important;box-shadow:0 2px 4px #0003!important;border:none!important}.modern-toggle-switch .toggle-input:checked+.modern-toggle-track{background:linear-gradient(135deg,#10b981,#059669)!important}.modern-toggle-switch .toggle-input:checked+.modern-toggle-track .modern-toggle-dot{transform:translate(var(--move-distance))!important}.modern-toggle-switch:hover .modern-toggle-track{box-shadow:0 0 0 2px #10b98133!important}.modern-toggle-switch .toggle-input:focus+.modern-toggle-track{box-shadow:0 0 0 3px #10b9814d!important}.home-toggle-switch{--size: 1.8;--w: calc(var(--size) * 32px);--h: calc(var(--size) * 18px);--dot-size: calc(var(--size) * 14px);--gap: calc(var(--size) * 2px);--move-distance: calc(var(--w) - var(--dot-size) - (var(--gap) * 2));position:relative!important;display:inline-block!important;width:var(--w)!important;height:var(--h)!important;vertical-align:middle!important;-webkit-user-select:none!important;user-select:none!important}.home-toggle-switch .toggle-input{position:absolute!important;opacity:0!important;width:0!important;height:0!important;pointer-events:none!important}.home-toggle-switch .modern-toggle-track{position:absolute!important;inset:0!important;background:#cbd5e1!important;border-radius:calc(var(--h) / 2)!important;cursor:pointer!important;transition:all .25s cubic-bezier(.4,0,.2,1)!important;border:none!important;outline:none!important}.home-toggle-switch .modern-toggle-dot{position:absolute!important;top:var(--gap)!important;left:var(--gap)!important;width:var(--dot-size)!important;height:var(--dot-size)!important;background:#fff!important;border-radius:50%!important;transition:all .25s cubic-bezier(.4,0,.2,1)!important;box-shadow:0 2px 4px #0003!important;border:none!important}.home-toggle-switch .toggle-input:checked+.modern-toggle-track{background:linear-gradient(135deg,#10b981,#059669)!important}.home-toggle-switch .toggle-input:checked+.modern-toggle-track .modern-toggle-dot{transform:translate(var(--move-distance))!important}.home-toggle-switch:hover .modern-toggle-track{box-shadow:0 0 0 2px #10b98133!important}.home-toggle-switch .toggle-input:focus+.modern-toggle-track{box-shadow:0 0 0 3px #10b9814d!important}.coming-soon-badge{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.tool-config{border-top:1px solid #e2e8f0;padding-top:1rem;margin-top:1rem}.config-section{margin-bottom:1rem}.config-section:last-child{margin-bottom:0}.config-section label{display:block;color:#374151;font-weight:500;margin-bottom:.5rem;font-size:.875rem}.config-input{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;transition:border-color .2s,box-shadow .2s}.config-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.config-textarea{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;resize:vertical;min-height:80px;transition:border-color .2s,box-shadow .2s}.config-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.config-hint{display:block;color:#6b7280;font-size:.75rem;margin-top:.25rem;font-style:italic}.checkbox-label{display:flex!important;align-items:center;gap:.5rem;cursor:pointer;margin-bottom:0!important}.checkbox-label input[type=checkbox]{margin:0}.checkbox-label span{color:#374151;font-size:.875rem}.tool-status{display:flex;align-items:center;justify-content:space-between;margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f5f9}.status-badge{padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.status-badge.active{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.status-badge.inactive{background:#e5e7eb;color:#6b7280}.tool-usage{color:#6b7280;font-size:.75rem}.loading,.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center}.loading-spinner,.error-icon{font-size:3rem;margin-bottom:1rem;animation:pulse 2s infinite}.loading p,.error-state p{color:#6b7280;font-size:1rem;margin:.5rem 0}.error-state h3{color:#dc2626;margin:.5rem 0}.retry-btn{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:1rem}.retry-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.saving-overlay{position:fixed;inset:0;background:#0000004d;display:flex;align-items:center;justify-content:center;z-index:1000}.saving-indicator{background:#fff;padding:1.5rem 2rem;border-radius:12px;box-shadow:0 10px 25px #0003;display:flex;align-items:center;gap:1rem;font-weight:600;color:#374151}.saving-spinner{animation:spin 1s linear infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.instructions-preview{display:flex;align-items:flex-start;gap:1rem;padding:.75rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.instructions-text{flex:1;color:#374151;font-size:.875rem;line-height:1.4;min-height:3.6rem;max-height:3.6rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-style:italic;word-break:break-word}.edit-instructions-btn{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s ease;flex-shrink:0}.edit-instructions-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.edit-instructions-btn:disabled{opacity:.6;cursor:not-allowed}.instructions-editor-modal{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.instructions-editor-content{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;width:100%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;background:#f9fafb}.editor-header h3{color:#1f2937;font-size:1.25rem;font-weight:600;margin:0}.close-btn{background:none;border:none;font-size:1.5rem;color:#6b7280;cursor:pointer;padding:.25rem;border-radius:4px;transition:all .2s ease}.close-btn:hover{background:#e5e7eb;color:#374151}.editor-body{padding:1.5rem;flex:1;overflow-y:auto}.form-group{margin-bottom:1.5rem}.form-group:last-child{margin-bottom:0}.form-group label{display:block;color:#374151;font-weight:600;margin-bottom:.5rem;font-size:.875rem}.instructions-textarea{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;resize:vertical;min-height:160px;transition:border-color .2s,box-shadow .2s;line-height:1.5}.instructions-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.instructions-textarea:disabled{background:#f9fafb;color:#6b7280;cursor:not-allowed}.form-hint{display:block;color:#6b7280;font-size:.75rem;margin-top:.5rem;font-style:italic}.editor-footer{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem;border-top:1px solid #e5e7eb;background:#f9fafb}.cancel-btn{background:#e5e7eb;color:#374151;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.cancel-btn:hover:not(:disabled){background:#d1d5db}.save-btn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.save-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.save-btn:disabled,.cancel-btn:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.tool-config-editor-modal{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.tool-config-editor-content{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;width:100%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.config-preview{display:flex;align-items:flex-start;gap:1rem;padding:.75rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:1rem}.config-preview-text{flex:1;color:#374151;font-size:.875rem;line-height:1.4}.config-preview-item{margin-bottom:.5rem;font-style:italic}.config-preview-item:last-child{margin-bottom:0}.edit-config-btn{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s ease;flex-shrink:0;display:flex;align-items:center;gap:.5rem}.edit-config-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #6366f14d}.edit-config-btn:disabled{opacity:.6;cursor:not-allowed}.notification-methods{display:flex;flex-direction:column;gap:.75rem;margin-top:.5rem}.notification-methods .checkbox-label{padding:.5rem;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;transition:all .2s ease}.notification-methods .checkbox-label:hover{background:#f1f5f9;border-color:#cbd5e1}.notification-methods .checkbox-label input:checked+span{color:#1e293b;font-weight:500}.contact-field{margin-top:1rem}.contact-field label{display:block;color:#374151;font-weight:500;margin-bottom:.5rem;font-size:.875rem}.contact-field .config-input{margin-top:0}@media (max-width: 768px){.tools-container{padding:1rem}.tools-grid{grid-template-columns:1fr}.tool-header{flex-direction:column;gap:1rem}.tool-info{align-items:center;text-align:center}.instructions-editor-modal{padding:.5rem}.instructions-editor-content{max-height:95vh}.tool-config-editor-modal{padding:.5rem}.tool-config-editor-content{max-height:95vh}.instructions-preview,.config-preview{flex-direction:column;gap:.75rem}.edit-instructions-btn,.edit-config-btn{align-self:flex-start}.editor-footer{flex-direction:column;gap:.75rem}.editor-footer button{width:100%}.notification-methods{gap:.5rem}.contact-field{margin-top:.75rem}}.test-bot{padding:2rem;max-width:1200px;margin:0 auto;height:calc(100vh - 4rem);display:flex;flex-direction:column}.test-bot-header{text-align:center;margin-bottom:2rem;flex-shrink:0}.test-bot-header h1{font-size:2.5rem;color:#2c3e50;margin-bottom:.25rem;font-weight:700}.test-bot-subtitle{font-size:1rem;color:#64748b;line-height:1.6;max-width:700px;margin:0 auto 1rem}.test-bot-subtitle strong{color:#667eea;font-weight:600}.bot-description{max-width:800px;margin:0 auto}.bot-description p{font-size:1.1rem;color:#5a6c7d;margin-bottom:1rem;line-height:1.6}.bot-features{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}.feature-badge{display:inline-block;padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-size:.9rem;font-weight:600}.feature-badge.status-healthy{background:linear-gradient(135deg,#10b981,#059669)}.feature-badge.status-unhealthy{background:linear-gradient(135deg,#f59e0b,#d97706)}.feature-badge.status-unknown{background:linear-gradient(135deg,#6b7280,#4b5563)}.error-banner{background:linear-gradient(135deg,#f87171,#ef4444);color:#fff;padding:.75rem 1rem;border-radius:8px;margin-top:1rem;display:flex;align-items:center;justify-content:space-between;font-size:.9rem}.retry-button{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:.25rem .75rem;border-radius:4px;cursor:pointer;font-size:.8rem;transition:all .2s ease}.retry-button:hover{background:#ffffff4d}.chat-container{flex:1;display:flex;flex-direction:column;background:#fff;border-radius:15px;box-shadow:0 10px 30px #0000001a;overflow:hidden;min-height:0}.chat-messages{flex:1;overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.message{display:flex;max-width:80%}.message-user{align-self:flex-end}.message-bot{align-self:flex-start}.message-content{padding:.75rem 1rem;border-radius:18px;position:relative}.message-user .message-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:6px}.message-bot .message-content{background:#f8f9fa;color:#2c3e50;border-bottom-left-radius:6px;border:1px solid #e9ecef}.message-text{font-size:1rem;line-height:1.4;margin-bottom:.25rem}.message-time{font-size:.75rem;opacity:.7;text-align:right}.message-bot .message-time{text-align:left}.message-error{border-left:4px solid #ef4444}.message-error .message-text{color:#dc2626}.message-mode{background:#e5e7eb;color:#374151;padding:.125rem .5rem;border-radius:12px;font-size:.65rem;margin-left:.5rem;text-transform:uppercase;font-weight:600}.typing-indicator{display:flex;gap:.25rem;padding:.5rem 0}.typing-indicator span{width:8px;height:8px;background:#bdc3c7;border-radius:50%;animation:typing 1.4s infinite ease-in-out}.typing-indicator span:nth-child(1){animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}.chat-input-form{padding:1.5rem;background:#f8f9fa;border-top:1px solid #e9ecef}.chat-input-container{display:flex;gap:1rem;align-items:center}.chat-input{flex:1;padding:.75rem 1rem;border:2px solid #e9ecef;border-radius:25px;font-size:1rem;outline:none;transition:border-color .3s ease}.chat-input:focus{border-color:#667eea}.chat-input:disabled{background:#f8f9fa;cursor:not-allowed}.send-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:25px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s ease,opacity .3s ease}.send-button:hover:not(:disabled){transform:translateY(-2px)}.send-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.send-button:active{transform:translateY(0)}@media (max-width: 768px){.test-bot{padding:1rem;height:calc(100vh - 2rem)}.test-bot-header h1{font-size:2rem}.bot-description p{font-size:1rem}.bot-features{gap:.5rem}.feature-badge{font-size:.8rem;padding:.4rem .8rem}.message{max-width:90%}.chat-messages,.chat-input-form{padding:1rem}.chat-input-container{gap:.5rem}.send-button{padding:.75rem 1rem;font-size:.9rem}}.settings-container{padding:2rem;max-width:1200px;margin:0 auto;background:#fffffff2;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 8px 32px #0000001a}.settings-header{margin-bottom:2rem;border-bottom:1px solid rgba(0,0,0,.1);padding-bottom:1rem}.settings-header h1{color:#333;margin:0 0 .5rem;font-size:2rem;font-weight:600}.settings-header p{color:#666;margin:0;font-size:1rem}.settings-layout{display:grid;grid-template-columns:250px 1fr;gap:2rem;min-height:600px}.settings-sidebar{background:#ffffff80;border-radius:8px;padding:1rem;height:fit-content}.settings-nav{display:flex;flex-direction:column;gap:.5rem}.settings-nav-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:none;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease;color:#555;font-size:.95rem;width:100%;text-align:left}.settings-nav-item:hover{background:#667eea1a;color:#667eea}.settings-nav-item.active{background:#667eea;color:#fff}.settings-nav-icon{font-size:1.1rem;width:20px;text-align:center}.settings-nav-label{font-weight:500}.settings-content{background:#ffffffb3;border-radius:8px;padding:2rem}.settings-section h2{color:#333;margin:0 0 1.5rem;font-size:1.5rem;font-weight:600}.profile-header{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem;padding:1.5rem;background:#fffc;border-radius:8px;border:1px solid rgba(0,0,0,.05)}.profile-avatar-large{width:80px;height:80px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#fff;flex-shrink:0}.profile-info h3{margin:0 0 .25rem;color:#333;font-size:1.25rem}.profile-department{color:#666;margin:0;font-size:.9rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:500;color:#333;font-size:.9rem}.form-group input,.form-group select{padding:.75rem;border:1px solid rgba(0,0,0,.2);border-radius:6px;font-size:1rem;background:#fff;transition:border-color .2s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.preference-group,.security-group{margin-bottom:2rem;padding:1.5rem;background:#fff9;border-radius:8px;border:1px solid rgba(0,0,0,.05)}.preference-group h3,.security-group h3{margin:0 0 1rem;color:#333;font-size:1.1rem;font-weight:600}.toggle-group{display:flex;flex-direction:column;gap:1rem}.toggle-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;font-size:.95rem;color:#555}.toggle-label input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}.toggle-slider{position:relative;width:44px;height:24px;background:#ccc;border-radius:12px;transition:background .2s ease}.toggle-slider:before{content:"";position:absolute;width:20px;height:20px;background:#fff;border-radius:50%;top:2px;left:2px;transition:transform .2s ease}.toggle-label input:checked+.toggle-slider{background:#667eea}.toggle-label input:checked+.toggle-slider:before{transform:translate(20px)}.form-actions{display:flex;gap:1rem;justify-content:flex-start;margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(0,0,0,.1)}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.btn-secondary{background:#fff;color:#667eea;border:1px solid #667eea;padding:.75rem 1.5rem;border-radius:6px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-secondary:hover{background:#667eea;color:#fff}@media (max-width: 768px){.settings-layout{grid-template-columns:1fr;gap:1rem}.settings-sidebar{order:2}.settings-content{order:1}.settings-nav{flex-direction:row;overflow-x:auto;gap:.25rem}.settings-nav-item{flex-shrink:0;min-width:fit-content}.form-grid{grid-template-columns:1fr}.profile-header{flex-direction:column;text-align:center}}.App{width:100%;min-height:100vh}
