*{box-sizing:border-box}html{font-family:Roboto,sans-serif}body{margin:0;padding:0}main{display:grid;width:100vw;height:100vh;padding:1rem;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;grid-gap:1rem}.controls{grid-column:1;grid-row:1;width:340px;max-height:calc(100vh - 2rem);background:#f8f9fa;border:1px solid #dee2e6;display:flex;flex-direction:column;transition:width .3s ease;overflow:hidden;border-radius:3px}.controls.collapsed{width:40px}.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:.8rem 1rem;background:#e9ecef;border-bottom:1px solid #dee2e6;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:700;min-height:40px;border-radius:2px}.sidebar-title{font-size:.9rem;color:#495057;white-space:nowrap;overflow:hidden}.sidebar-toggle{font-family:monospace;font-size:1.2rem;transition:transform .2s ease;flex-shrink:0}.sidebar-content{flex:1;overflow-x:hidden;overflow-y:auto;transition:all .3s ease;display:flex;flex-direction:column;min-height:0;width:340px}.controls.collapsed .sidebar-content{opacity:0;pointer-events:none}.control-section{padding:1.6rem 1rem 1rem;border-bottom:1px solid #dee2e6;box-sizing:border-box;width:100%}.control-section:last-child{border-bottom:none}.control-section button:not(:last-child){margin-bottom:.75rem}.control-section.logout-section{border-bottom:none}label{display:block;margin-bottom:1rem}label:last-child{margin-bottom:0}label span{display:block;font-size:.85rem;color:#6c757d;margin-bottom:.5rem;font-weight:500}.controls select,.controls input[type=date],.controls button{width:100%;max-width:100%;box-sizing:border-box;padding:.75rem;border:1px solid #ced4da;border-radius:6px;font-size:.9rem;font-family:inherit;word-wrap:break-word;overflow:hidden}.controls select:hover,.controls input[type=date]:hover,.controls button:hover{border-color:#adb5bd}.controls select:focus,.controls input[type=date]:focus,.controls button:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.controls select:disabled,.controls input[type=date]:disabled,.controls button:disabled{background:#f8f9fa;color:#6c757d;cursor:not-allowed;opacity:.6}select{background:#fff;cursor:pointer}select:disabled{cursor:not-allowed}input[type=date]{background:#fff;cursor:pointer}input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}.controls button{cursor:pointer;font-weight:500;text-align:center;background:#fff;color:#495057}.controls button:active:not(:disabled){transform:translateY(1px)}.controls .fetch-btn{background:#28a745;color:#fff;border-color:#28a745}.controls .toggle-btn.active{background:#007bff;border-color:#007bff;color:#fff}.controls .logout-btn{background:#dc3545;color:#fff;border-color:#dc3545;font-weight:500}.controls .logout-btn:hover{background:#c82333;border-color:#bd2130}.controls .logout-btn:active{background:#bd2130;border-color:#a71e2a}.logout-section{margin-top:auto;padding:1.6rem 1rem 1rem;background:#f1f3f4}.logout-section form{margin:0}.date-inputs{display:flex;gap:1rem;width:100%;box-sizing:border-box}.date-inputs label{flex:1;min-width:0;margin-bottom:1rem}.date-inputs label input[type=date]{width:100%;min-width:0}.site-goal-controls{display:flex;gap:1rem;width:100%;box-sizing:border-box}.site-goal-controls label{flex:1;min-width:0;margin-bottom:0}.site-goal-controls label select{width:100%;min-width:0}.color-control-group{margin-bottom:.75rem;padding:1rem;background:#fff;border:1px solid #dee2e6;border-radius:6px}.color-control-group:last-child{margin-bottom:1rem}.color-control-group h4{margin:0;font-size:.9rem;color:#495057;font-weight:600}.color-group-header{display:flex;justify-content:space-between;align-items:center}.color-group-header input[type=checkbox]{width:auto;height:auto;margin:0;cursor:pointer;transform:scale(1.2)}.color-group-header input[type=checkbox]:hover{border-color:#007bff}.color-group-header input[type=checkbox]:focus{outline:none;box-shadow:0 0 0 2px #007bff40}.color-control-inputs{margin-top:1rem;padding-top:1rem;border-top:1px solid #e9ecef;transition:all .3s ease}.color-control-inputs.hidden{display:none}.color-inputs,.threshold-inputs{display:flex;gap:.75rem;width:100%;box-sizing:border-box;margin-bottom:1rem}.color-inputs:last-child,.threshold-inputs:last-child{margin-bottom:0}.color-inputs label,.threshold-inputs label{flex:1;min-width:0;margin-bottom:0}.color-inputs label input[type=color],.threshold-inputs label input[type=color]{width:100%;height:40px;padding:2px;border:1px solid #ced4da;border-radius:6px;cursor:pointer}.color-inputs label input[type=color]:hover,.threshold-inputs label input[type=color]:hover{border-color:#adb5bd}.color-inputs label input[type=color]:focus,.threshold-inputs label input[type=color]:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.color-inputs label input[type=number],.threshold-inputs label input[type=number]{width:100%;min-width:0;padding:.75rem;border:1px solid #ced4da;border-radius:6px;font-size:.9rem;font-family:inherit}.color-inputs label input[type=number]:hover,.threshold-inputs label input[type=number]:hover{border-color:#adb5bd}.color-inputs label input[type=number]:focus,.threshold-inputs label input[type=number]:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}@media(max-width:768px){.color-control-group{padding:.75rem}.color-inputs,.threshold-inputs{flex-direction:column;gap:.5rem}.color-inputs label,.threshold-inputs label{flex:none;margin-bottom:.5rem}}#full-data{grid-column:2;grid-row:1;overflow:hidden}.status-bar{grid-column:1/span 2;grid-row:2;background:#f8f9fa;border:1px solid #dee2e6;border-radius:3px;z-index:1000;max-height:200px;min-height:40px}.status-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#e9ecef;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:700;border-radius:2px}.status-title{font-size:.9rem;color:#495057}.status-toggle{font-family:monospace;font-size:1rem;transition:transform .2s ease}.status-content{max-height:160px;overflow:hidden;transition:max-height .3s ease}.status-content.collapsed{max-height:0}.status-messages{padding:.75rem 1rem;max-height:140px;overflow-y:auto;font-family:Monaco,Menlo,Consolas,monospace;font-size:.85rem;line-height:1.4}.status-message{padding:.25rem 0;border-bottom:1px solid #f1f3f4;color:#495057}.status-message:last-child{border-bottom:none}.status-message.success{color:#28a745}.status-message.error{color:#dc3545}.status-message.info{color:#17a2b8}.status-message.loading{color:#ffc107}@media(max-width:768px){main{grid-template-columns:1fr;grid-template-rows:auto 1fr auto}main{padding:.5rem}.controls{width:100%;border-right:none;border-bottom:1px solid #dee2e6}.controls.collapsed{width:100%}.controls.collapsed .sidebar-content{max-height:0;padding:0}#full-data{grid-column:1;grid-row:2}.status-bar{grid-column:1;grid-row:3}}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f8f9fa;padding:2rem}.login-form{background:#fff;border:2px solid #dee2e6;border-radius:6px;padding:2rem;width:100%;max-width:400px;box-shadow:0 4px 6px #0000001a}.login-form h1{text-align:center;margin-bottom:2rem;color:#495057;font-size:1.5rem;font-weight:700}.login-form .error-messages{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:4px;padding:1rem;margin-bottom:1rem}.login-form .success-message{background:#d4edda;color:#155724;border:1px solid #c3e6cb;border-radius:4px;padding:1rem;margin-bottom:1rem}.login-form label{display:block;margin-bottom:1rem}.login-form label:last-of-type{margin-bottom:2rem}.login-form input[type=email],.login-form input[type=password]{width:100%;max-width:100%;box-sizing:border-box;padding:.75rem;border:2px solid #ced4da;border-radius:6px;font-size:.9rem;transition:all .2s ease;font-family:inherit;margin-top:.5rem}.login-form input[type=email]:hover,.login-form input[type=password]:hover{border-color:#adb5bd}.login-form input[type=email]:focus,.login-form input[type=password]:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.login-form button[type=submit]{width:100%;padding:.75rem 1rem;background:#007bff;border:2px solid #007bff;color:#fff;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.login-form button[type=submit]:hover{background:#0056b3;border-color:#004085}.login-form button[type=submit]:active{transform:translateY(1px)}@media(max-width:768px){.login-page{padding:1rem}.login-form{padding:1.5rem}}
