*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{width:100%;height:100%;margin:0;padding:0}html{font-size:16px}body{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background-color:#0f0f0f;color:#e0e0e0;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}@media (max-width: 768px){html{font-size:14px}}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}button{border-radius:4px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}h1{font-size:3.2em;line-height:1.1}@media (max-width: 768px){h1{font-size:1.8em}}.app-container{display:flex;height:100vh;background:#0f0f0f;color:#e0e0e0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;flex-direction:row}@media (max-width: 768px){.app-container{flex-direction:column}}.sidebar{width:220px;background:#1a1a1a;border-right:1px solid #333;padding:20px;display:flex;flex-direction:column;box-shadow:2px 0 10px #0000004d}@media (max-width: 768px){.sidebar{width:100%;border-right:none;border-bottom:1px solid #333;padding:12px;flex-direction:row;align-items:center;justify-content:space-between}}.sidebar h2{margin:0 0 30px;font-size:20px;color:#fff;font-weight:700}@media (max-width: 768px){.sidebar h2{margin:0;font-size:16px}}.nav-tabs{display:flex;flex-direction:column;gap:8px;margin-bottom:30px;flex:1}@media (max-width: 768px){.nav-tabs{flex-direction:row;margin-bottom:0;flex:1;overflow-x:auto;gap:4px}}.nav-tab{background:#2a2a2a;border:none;color:#a0a0a0;padding:12px 16px;border-radius:6px;cursor:pointer;text-align:left;font-weight:500;transition:all .2s;border-left:3px solid transparent;white-space:nowrap}@media (max-width: 768px){.nav-tab{padding:8px 12px;font-size:12px;border-left:none;border-bottom:3px solid transparent}}.nav-tab:hover{background:#333;color:#e0e0e0}.nav-tab.active{background:#1e88e5;color:#fff;border-left-color:#1565c0}@media (max-width: 768px){.nav-tab.active{border-left-color:transparent;border-bottom-color:#1565c0}}.logout-btn{background:#d32f2f;border:none;color:#fff;padding:12px 16px;border-radius:6px;cursor:pointer;font-weight:600;transition:background .2s}@media (max-width: 768px){.logout-btn{padding:8px 12px;font-size:12px;margin-top:0}}.logout-btn:hover{background:#f44336}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tab-content{flex:1;overflow-y:auto;padding:30px}@media (max-width: 768px){.tab-content{padding:16px}}.tab-content h1{margin:0 0 30px;font-size:28px;color:#fff;font-weight:700}@media (max-width: 768px){.tab-content h1{font-size:20px;margin-bottom:16px}}.tab-content h2{margin:0 0 16px;font-size:18px;color:#e0e0e0;font-weight:600}.dashboard-section{margin-bottom:40px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:30px}@media (max-width: 768px){.stats-grid{grid-template-columns:repeat(2,1fr);gap:8px}}@media (max-width: 480px){.stats-grid{grid-template-columns:1fr}}.stat-card{background:#2a2a2a;border:1px solid #444;padding:20px;border-radius:8px;text-align:center}.stat-label{font-size:12px;color:#a0a0a0;text-transform:uppercase;margin-bottom:8px;font-weight:600}@media (max-width: 768px){.stat-label{font-size:10px}}.stat-value{font-size:32px;font-weight:700;color:#1e88e5}@media (max-width: 768px){.stat-value{font-size:24px}}.services-list{display:flex;flex-direction:column;gap:12px}.service-summary{background:#2a2a2a;border:1px solid #444;padding:12px 16px;border-radius:6px;display:flex;justify-content:space-between;align-items:center;gap:16px}.service-name{display:flex;align-items:center;gap:8px;font-weight:600;flex:1}.status-dot{width:8px;height:8px;border-radius:50%}.status-dot.active{background:#4caf50}.status-dot.inactive{background:#f44336}.service-meta{display:flex;gap:16px;font-size:13px;color:#a0a0a0}.uptime{color:#888}.service-quick-actions{display:flex;gap:8px}.btn-quick{background:#1e88e5;border:none;color:#fff;padding:6px 12px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;transition:background .2s}.btn-quick:hover{background:#1565c0}.service-card{background:#2a2a2a;border:1px solid #444;padding:16px;border-radius:8px;display:flex;justify-content:space-between;align-items:center}.service-info h3{margin:0 0 8px;font-size:16px}.status{font-size:12px;font-weight:600;margin-bottom:4px}.status.active{color:#4caf50}.status.inactive{color:#f44336}.uptime{font-size:12px;color:#a0a0a0}.service-actions{display:flex;gap:8px}.service-actions button{background:#1e88e5;border:none;color:#fff;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;transition:background .2s}.service-actions button:hover{background:#1565c0}.monitor-sections{display:flex;flex-direction:column;gap:32px}.monitor-category{display:flex;flex-direction:column;gap:12px}.category-title{font-size:20px!important;font-weight:700;color:#fff!important;margin:0 0 8px!important;padding-bottom:8px;border-bottom:2px solid #333}.store-section{background:#1a1a1a;border:1px solid #333;border-radius:8px;overflow:hidden}.store-header{width:100%;background:#2a2a2a;border:none;color:#e0e0e0;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:15px;font-weight:600;transition:background .2s}.store-header:hover{background:#333}.store-name{font-weight:600}.store-toggle{font-size:12px;color:#888}.products-grid{padding:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}.product-item{background:#2a2a2a;border:1px solid #444;padding:14px;border-radius:6px}.product-item h4{margin:0 0 8px;font-size:13px;font-weight:600;color:#fff}.product-url{display:inline-block;margin:0 0 10px;font-size:12px;color:#1e88e5;text-decoration:none;font-weight:500;transition:color .2s}.product-url:hover{color:#42a5f5;text-decoration:underline}.empty-state-store{color:#666;font-size:13px;font-style:italic;padding:8px 0;margin:0}.product-badges{display:flex;gap:8px;flex-wrap:wrap}.badge.stock-in_stock{background:#4caf50;color:#fff}.badge.stock-out_of_stock{background:#f44336;color:#fff}.badge.stock-unknown{background:#ff9800;color:#fff}.badge{display:inline-block;padding:4px 8px;border-radius:4px;font-size:11px;font-weight:600}.badge.enabled{background:#4caf50;color:#fff}.badge.disabled{background:#666;color:#fff}.badge.status-active{background:#4caf50;color:#fff}.badge.status-completed{background:#2196f3;color:#fff}.badge.status-pending{background:#ff9800;color:#fff}.tasks-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.btn-new-task{background:#4caf50;border:none;color:#fff;padding:10px 16px;border-radius:6px;cursor:pointer;font-weight:600;transition:background .2s}.btn-new-task:hover{background:#66bb6a}.task-form{background:#2a2a2a;border:1px solid #1e88e5;padding:20px;border-radius:8px;margin-bottom:20px}.form-group{margin-bottom:16px}.form-group label{display:block;font-weight:600;margin-bottom:6px;font-size:13px;color:#e0e0e0}.form-group input,.form-group textarea,.form-group select{width:100%;padding:10px 12px;border:1px solid #444;border-radius:4px;background:#1a1a1a;color:#e0e0e0;font-family:inherit;font-size:13px;box-sizing:border-box}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#1e88e5}.form-group select{cursor:pointer}.form-group textarea{resize:vertical}.form-actions{display:flex;gap:8px}.btn-submit,.btn-cancel{padding:10px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:600;font-size:13px;transition:background .2s}.btn-submit{background:#4caf50;color:#fff}.btn-submit:hover{background:#66bb6a}.btn-cancel{background:#666;color:#fff}.btn-cancel:hover{background:#777}.tasks-mini-list{display:flex;flex-direction:column;gap:8px}.task-item-mini{background:#2a2a2a;border:1px solid #444;padding:12px 16px;border-radius:6px;display:flex;justify-content:space-between;align-items:center}.task-title{font-weight:500;flex:1}.tasks-list{display:flex;flex-direction:column;gap:12px}.task-card{background:#2a2a2a;border:1px solid #444;padding:16px;border-radius:8px}.task-card.status-pending{border-left:4px solid #ff9800}.task-card.status-active,.task-card.status-running{border-left:4px solid #1e88e5}.task-card.status-completed{border-left:4px solid #4caf50}.task-card.status-failed{border-left:4px solid #f44336}.task-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.task-header h3{margin:0;font-size:16px}.task-desc{margin:0 0 12px;font-size:13px;color:#a0a0a0;line-height:1.4}.progress-bar{width:100%;height:6px;background:#444;border-radius:3px;overflow:hidden;position:relative;margin-bottom:8px}.progress-fill{height:100%;background:#1e88e5;transition:width .3s ease}.progress-label{position:absolute;right:8px;top:-20px;font-size:11px;color:#a0a0a0}.task-header-button{width:100%;background:none;border:none;color:inherit;padding:0;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center}.task-header-button:hover{opacity:.8}.expand-icon{font-size:12px;color:#888;flex-shrink:0;margin-left:12px}.task-details{border-top:1px solid #444;padding:16px;background:#1a1a1a}.detail-section{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #333}.detail-section:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}.detail-section strong{display:block;font-weight:600;margin-bottom:4px;color:#e0e0e0;font-size:12px;text-transform:uppercase}.detail-section p{margin:0;font-size:13px;color:#a0a0a0;line-height:1.5}.task-actions{display:flex;gap:8px;font-size:12px;color:#888;margin-top:12px;padding-top:12px;border-top:1px solid #333}.btn-delete{background:#f44336;border:none;color:#fff;padding:8px 12px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;transition:background .2s}.btn-delete:hover{background:#ef5350}.agents-list{display:flex;flex-direction:column;gap:16px}.agent-card{background:#2a2a2a;border:1px solid #444;border-left:4px solid #666;padding:16px;border-radius:8px}.agent-card.status-running{border-left-color:#1e88e5}.agent-card.status-idle{border-left-color:#888}.agent-card.status-error{border-left-color:#f44336}.agent-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.agent-header h3{margin:0;font-size:16px}.agent-desc{margin:0 0 12px;font-size:13px;color:#a0a0a0}.agent-details{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid #333}.detail-item{font-size:12px;color:#a0a0a0}.detail-item strong{color:#e0e0e0;font-weight:600;margin-right:6px}.empty-state{text-align:center;color:#666;padding:30px;font-style:italic}.agents-page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.agents-page-header h1{margin:0 0 4px}.agents-subtitle{margin:0;color:#888;font-size:13px}.agents-stats-bar{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap}.agents-stat{background:#2a2a2a;border:1px solid #444;border-radius:8px;padding:12px 20px;display:flex;flex-direction:column;align-items:center;min-width:110px}.agents-stat-value{font-size:22px;font-weight:700;color:#e0e0e0;line-height:1.2}.agents-stat-value.agents-stat-green{color:#4caf50}.agents-stat-value.agents-stat-model{font-size:13px;color:#90caf9}.agents-stat-label{font-size:11px;color:#888;margin-top:4px;text-transform:uppercase;letter-spacing:.5px}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.dot-green{background:#4caf50;box-shadow:0 0 6px #4caf5066}.dot-red{background:#f44336;box-shadow:0 0 6px #f4433666}.dot-yellow{background:#ffc107;box-shadow:0 0 6px #ffc10766}.type-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:4px;letter-spacing:.5px;text-transform:uppercase;flex-shrink:0}.type-always_on{background:#1565c033;color:#90caf9;border:1px solid #1565c0}.type-scheduled{background:#2e7d3233;color:#81c784;border:1px solid #2e7d32}.type-execution{background:#4a148c33;color:#ce93d8;border:1px solid #4a148c}.type-learning{background:#e65100aa;color:#ffcc02;border:1px solid #e65100}.model-badge{font-size:10px;padding:2px 7px;border-radius:4px;background:#333;color:#aaa;border:1px solid #555;flex-shrink:0}.model-none{color:#666;border-color:#444}.agent-header-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.agent-header-left h3{margin:0;font-size:15px}.agent-header-right{display:flex;align-items:center;gap:10px}.agent-status-text{font-size:11px;text-transform:uppercase;font-weight:600;letter-spacing:.5px}.agent-status-text.status-running,.agent-status-text.status-active{color:#4caf50}.agent-status-text.status-error{color:#f44336}.agent-status-text.status-idle,.agent-status-text.status-inactive{color:#888}.agent-expand-btn{background:none;border:1px solid #555;color:#aaa;width:26px;height:26px;border-radius:4px;cursor:pointer;font-size:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.agent-expand-btn:hover{border-color:#888;color:#e0e0e0}.agent-card.status-active{border-left-color:#4caf50}.agent-card.status-inactive{border-left-color:#555}.agent-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.agent-meta-chip{font-size:11px;color:#999;background:#1e1e1e;border:1px solid #383838;padding:2px 8px;border-radius:12px}.agent-meta-next{color:#90caf9;border-color:#1565c066;background:#1565c011}.agent-last-action{font-size:12px;color:#b0b0b0;background:#1e1e1e;border:1px solid #333;border-radius:4px;padding:6px 10px;margin-bottom:8px}.agent-last-action-label{color:#888;font-weight:600}.agent-extra-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}.agent-extra-chip{font-size:12px;color:silver;background:#252525;border:1px solid #3a3a3a;padding:3px 10px;border-radius:4px}.agent-log-section{border-top:1px solid #333;margin-top:10px;padding-top:12px;display:flex;flex-direction:column;gap:6px}.login-container{display:flex;justify-content:center;align-items:center;height:100vh;background:linear-gradient(135deg,#0f0f0f,#1a1a1a)}.login-box{background:#1a1a1a;padding:40px;border-radius:8px;box-shadow:0 10px 40px #00000080;width:100%;max-width:300px;text-align:center}.login-box h1{margin:0 0 8px;color:#1e88e5;font-size:32px}.login-box p{margin:0 0 30px;color:#a0a0a0;font-size:14px}.login-box input{width:100%;padding:12px;margin-bottom:16px;border:1px solid #444;border-radius:4px;background:#2a2a2a;color:#e0e0e0;font-size:14px;box-sizing:border-box}.login-box input:focus{outline:none;border-color:#1e88e5}.login-box button{width:100%;padding:12px;background:#1e88e5;color:#fff;border:none;border-radius:4px;font-weight:600;font-size:14px;cursor:pointer;transition:background .2s}.login-box button:hover{background:#1565c0}.projects-container{display:flex;flex-direction:column;height:100%;overflow-y:auto}.projects-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.projects-header h1{margin:0}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.project-card{background:#2a2a2a;border:1px solid #444;padding:16px;border-radius:8px;transition:all .2s;display:flex;flex-direction:column;gap:8px}.project-card:hover{background:#333;border-color:#1e88e5;transform:translateY(-2px)}.project-card h3{margin:0;font-size:16px;color:#e0e0e0}.project-desc{margin:0;font-size:13px;color:#a0a0a0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project-meta{display:flex;gap:8px;margin-top:4px}.status-badge{font-size:11px;padding:4px 8px;border-radius:12px;background:#444;color:#a0a0a0}.status-badge.status-planning{background:#4a4a2a;color:#d4af37}.status-badge.status-active{background:#2a4a2a;color:#4ade80}.status-badge.status-completed{background:#2a3a4a;color:#60a5fa}.priority-badge{font-size:11px;padding:4px 8px;border-radius:12px;background:#444;color:#a0a0a0}.priority-badge.priority-high{background:#4a2a2a;color:#ff8a80}.priority-badge.priority-medium{background:#4a4a2a;color:#ffd54f}.priority-badge.priority-low{background:#2a4a2a;color:#4ade80}.due-date{font-size:12px;color:#a0a0a0;margin-top:4px}.project-detail-view{display:flex;flex-direction:column;gap:16px}.btn-back{background:#2a2a2a;border:1px solid #444;color:#a0a0a0;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:13px;align-self:flex-start}.btn-back:hover{background:#333;color:#e0e0e0}.project-detail-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid #333}.project-detail-header h1{margin:0}.project-actions{display:flex;gap:8px}.btn-edit{background:#1e88e5;border:none;color:#fff;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:13px}.btn-edit:hover{background:#1565c0}.project-details{background:#2a2a2a;padding:16px;border-radius:8px;border:1px solid #444}.project-details p{margin:0 0 12px;color:#a0a0a0}.project-meta-detail{display:flex;flex-direction:column;gap:8px}.project-meta-detail div{font-size:13px;color:#a0a0a0}.project-meta-detail strong{color:#e0e0e0;margin-right:6px}.project-tasks h2{font-size:16px;margin-top:0;margin-bottom:16px}.task-footer{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid #333;font-size:12px}.btn-small-delete{background:#4a2a2a;border:none;color:#ff8a80;padding:4px 8px;border-radius:3px;cursor:pointer;font-size:11px}.btn-small-delete:hover{background:#5a3a3a}.project-selector{background:#2a2a2a;padding:8px;border-radius:4px;border:1px solid #444;max-height:150px;overflow-y:auto}.tab-content::-webkit-scrollbar{width:8px}.tab-content::-webkit-scrollbar-track{background:#1a1a1a}.tab-content::-webkit-scrollbar-thumb{background:#444;border-radius:4px}
