.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-container{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:40px;width:100%;max-width:420px;box-shadow:0 25px 50px #0000004d}.logo{text-align:center;margin-bottom:30px}.logo-icon{width:70px;height:70px;background:linear-gradient(135deg,#00d4ff,#09c);border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto 15px;font-size:32px}.logo h1{color:#fff;font-size:24px;font-weight:600}.logo p{color:#fff9;font-size:14px;margin-top:5px}.form-group{margin-bottom:20px}.form-group label{display:block;color:#fffc;font-size:13px;font-weight:500;margin-bottom:8px;text-transform:uppercase;letter-spacing:.5px}.form-group input{width:100%;padding:14px 16px;background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:10px;color:#fff;font-size:15px;transition:all .3s ease}.form-group input:focus{border-color:#00d4ff;background:#ffffff1f;box-shadow:0 0 0 3px #00d4ff26}.form-group input::placeholder{color:#fff6}.password-wrapper{position:relative}.password-wrapper input{padding-right:45px}.toggle-password{position:absolute;right:14px;top:50%;transform:translateY(-50%);background:none;border:none;color:#ffffff80;font-size:18px;padding:5px}.toggle-password:hover{color:#fffc}.btn-login{width:100%;padding:14px;background:linear-gradient(135deg,#00d4ff,#09c);border:none;border-radius:10px;color:#fff;font-size:16px;font-weight:600;transition:all .3s ease;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:8px}.btn-login:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #00d4ff4d}.btn-login:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#ff475726;border:1px solid rgba(255,71,87,.3);color:#ff6b7a;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.footer{text-align:center;margin-top:25px;color:#fff6;font-size:12px}.dashboard{min-height:100vh;padding:32px}.container{max-width:800px;margin:0 auto}.header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px}.header h1{font-size:28px;font-weight:600;margin-bottom:8px}.user-info{color:#fff9;font-size:14px}.btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;transition:all .2s}.btn-primary{background:#4a6cf7;color:#fff}.btn-primary:hover{background:#3b5de7;transform:translateY(-1px)}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover{background:#c0392b}.card{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:24px}.card h3{font-size:16px;color:#fff9;margin-bottom:20px;text-transform:uppercase;letter-spacing:1px}.quick-links{display:flex;gap:16px;flex-wrap:wrap}.quick-link{display:flex;align-items:center;gap:12px;padding:16px 24px;background:#00d4ff1a;border:1px solid rgba(0,212,255,.3);border-radius:12px;text-decoration:none;transition:all .2s}.quick-link:hover{background:#00d4ff33;transform:translateY(-2px);box-shadow:0 10px 30px #00d4ff33}.quick-link-icon{font-size:24px}.quick-link-text{font-size:16px;font-weight:600;color:#00d4ff}.test-item{margin-bottom:20px}.test-item:last-child{margin-bottom:0}.test-row{display:flex;align-items:center;gap:16px;margin-bottom:12px}.test-row span{color:#ffffff80;font-family:SF Mono,Monaco,Courier New,monospace;font-size:13px}.result{background:#0003;border-radius:8px;padding:16px;font-family:SF Mono,Monaco,Courier New,monospace;font-size:13px;white-space:pre-wrap;word-break:break-all;border-left:3px solid;margin:0;min-height:50px}.result.pending{border-color:#f39c12;color:#ffffff80}.result.success{border-color:#27ae60;color:#2ecc71}.result.error{border-color:#e74c3c;color:#e74c3c}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid rgba(231,76,60,.5);border-radius:20px;padding:32px;width:100%;max-width:500px;box-shadow:0 25px 50px #00000080,0 0 30px #e74c3c33;animation:modalAppear .3s ease}@keyframes modalAppear{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal-header{text-align:center;margin-bottom:24px}.modal-header h2{font-size:24px;color:#e74c3c;margin-bottom:8px}.modal-header p{color:#ffffffb3;font-size:14px}.auto-detect-msg{color:#f1c40f!important;font-weight:500}.modal-error{background:#e74c3c33;border:1px solid rgba(231,76,60,.4);color:#e74c3c;padding:10px 14px;border-radius:8px;margin-bottom:16px;text-align:center;font-size:14px}.reason-list{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;max-height:280px;overflow-y:auto}.reason-btn{padding:14px 16px;background:#ffffff0d;border:1px solid rgba(255,255,255,.15);border-radius:10px;color:#fff;font-size:15px;text-align:left;cursor:pointer;transition:all .2s}.reason-btn:hover{background:#ffffff1a;border-color:#ffffff40}.reason-btn.selected{background:#e74c3c33;border-color:#e74c3c;color:#fff}.notes-section{margin-bottom:24px}.notes-section label{display:block;font-size:13px;color:#fff9;margin-bottom:8px}.notes-section textarea{width:100%;padding:12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:14px;font-family:inherit;resize:vertical}.notes-section textarea:focus{outline:none;border-color:#00d4ff}.notes-section textarea::placeholder{color:#fff6}.modal-actions{display:flex;justify-content:center}.btn-submit{padding:14px 40px;background:linear-gradient(135deg,#e74c3c,#c0392b);border:none;border-radius:10px;color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s}.btn-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #e74c3c4d}.btn-submit:disabled{opacity:.5;cursor:not-allowed}.modal-warning{text-align:center;margin-top:20px;font-size:12px;color:#ffffff80;background:#f1c40f1a;padding:10px;border-radius:8px;border:1px solid rgba(241,196,15,.2)}.production-page{min-height:100vh;padding:32px}.container{max-width:900px;margin:0 auto}.header{margin-bottom:32px}.header h1{font-size:28px;margin-bottom:8px}.user-info{color:#fff9}.user-info strong{color:#00d4ff}.error-banner{background:#e74c3c33;border:1px solid rgba(231,76,60,.4);color:#e74c3c;padding:12px 16px;border-radius:8px;margin-bottom:20px}.card{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:24px;margin-bottom:20px}.card h3{font-size:14px;color:#fff9;text-transform:uppercase;letter-spacing:1px;margin-bottom:20px}.plant-grid{display:flex;flex-direction:column;gap:24px}.plant-group{border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:16px;background:#0003}.plant-name{font-size:16px;color:#00d4ff;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.1)}.dept-group{margin-bottom:16px}.dept-group:last-child{margin-bottom:0}.dept-group h5{font-size:13px;color:#ffffff80;margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px}.machine-buttons{display:flex;flex-wrap:wrap;gap:10px}.machine-btn{padding:12px 16px;background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:14px;text-align:left;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;gap:4px;min-width:120px}.machine-btn:hover{background:#ffffff1f;border-color:#ffffff40}.machine-btn.selected{background:#00d4ff33;border-color:#00d4ff}.machine-num{font-weight:600}.sensor-tag{font-size:11px;color:#ffffff80;font-family:monospace}.start-section{margin-top:24px;padding-top:24px;border-top:1px solid rgba(255,255,255,.1);text-align:center}.start-section p{margin-bottom:8px;color:#ffffffb3}.sensor-info{font-size:13px;color:#ffffff80;font-family:monospace;margin-bottom:16px!important}.btn{padding:14px 28px;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-start{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff;font-size:18px;padding:16px 40px}.btn-start:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #2ecc714d}.production-active{display:flex;flex-direction:column;gap:20px}.machine-card{text-align:center}.machine-header{display:flex;justify-content:center;align-items:center;gap:16px;margin-bottom:12px}.machine-header h2{font-size:24px}.status-badge{padding:6px 12px;border-radius:20px;font-size:13px;font-weight:600}.status-badge.running{background:#2ecc7133;color:#2ecc71}.status-badge.stopped{background:#e74c3c33;color:#e74c3c;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.sensor-display{font-size:13px;color:#ffffff80;font-family:monospace;margin-bottom:24px;display:flex;justify-content:center;align-items:center;gap:16px}.activity-indicator{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600}.activity-indicator.active{background:#2ecc7133;color:#2ecc71}.activity-indicator.inactive{background:#f1c40f33;color:#f1c40f;animation:pulse 1s infinite}.timer-display{display:flex;justify-content:center;gap:40px;margin-bottom:32px}.timer-main,.timer-stop{text-align:center}.timer-label{display:block;font-size:12px;color:#ffffff80;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}.timer-value{font-size:48px;font-weight:700;font-family:SF Mono,Monaco,monospace;color:#2ecc71}.timer-value.red{color:#e74c3c}.action-buttons{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.btn-stop{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.btn-stop:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #e74c3c4d}.btn-resume{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff;font-size:18px;padding:16px 40px}.btn-resume:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #2ecc714d}.btn-complete{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff}.btn-complete:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 30px #3498db4d}.events-card h3{margin-bottom:16px}.events-list{max-height:300px;overflow-y:auto}.event-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.05)}.event-item:last-child{border-bottom:none}.event-time{font-family:SF Mono,Monaco,monospace;font-size:12px;color:#ffffff80;min-width:80px}.event-type{font-weight:600;padding:4px 8px;border-radius:4px;font-size:12px;min-width:70px;text-align:center;display:flex;align-items:center;gap:6px}.auto-tag{background:#f1c40f4d;color:#f1c40f;padding:2px 6px;border-radius:4px;font-size:10px}.event-item.start .event-type{background:#2ecc7133;color:#2ecc71}.event-item.stop .event-type{background:#e74c3c33;color:#e74c3c}.event-item.resume .event-type{background:#3498db33;color:#3498db}.event-item.complete .event-type{background:#9b59b633;color:#9b59b6}.event-reason{color:#ffffffb3;font-size:13px}.event-downtime{color:#ffffff80;font-size:12px;font-style:italic}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);min-height:100vh;color:#fff}a{color:inherit;text-decoration:none}button{cursor:pointer;border:none;outline:none}input{outline:none}
