.overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; z-index: 2000; } .modal { background: white; border-radius: 32px; width: 100%; max-width: 600px; overflow: hidden; box-shadow: 0 50px 100px rgba(0,0,0,0.2); animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes modalIn { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } } .header { padding: 40px 48px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; } .headerBadge { font-size: 10px; font-weight: 950; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 12px; } .header h3 { font-size: 24px; font-weight: 900; margin: 0; color: #0f172a; letter-spacing: -0.02em; } .header p { font-size: 13px; color: #64748b; margin: 8px 0 0; font-weight: 700; } .form { padding: 40px 48px; display: flex; flex-direction: column; gap: 32px; } .sectionHeader { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 950; color: #94a3b8; letter-spacing: 0.1em; margin-bottom: 12px; } .field input, .field select { width: 100%; padding: 16px 20px; border-radius: 16px; border: 2px solid #f1f5f9; background: #f8fafc; font-size: 14px; font-weight: 750; color: #0f172a; outline: none; transition: all 0.2s; } .field input:focus, .field select:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 5px var(--accent-glow); } .segmentGrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; } .thresholdWrapper { display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 2px solid #f1f5f9; border-radius: 16px; padding-right: 20px; } .thresholdWrapper input { border: none; background: transparent; width: 80px; } .thresholdWrapper span { font-size: 10px; font-weight: 950; color: #94a3b8; } .logicPreview { background: #0f172a; border-radius: 20px; padding: 24px; color: white; position: relative; } .previewLabel { font-size: 9px; font-weight: 950; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; margin-bottom: 12px; } .previewContent { font-size: 14px; font-weight: 800; line-height: 1.6; } .previewContent span { color: var(--accent); } .previewContent strong { color: white; text-transform: uppercase; } .footer { padding-top: 16px; border-top: 2px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; } .btnGroup { display: flex; gap: 16px; } .cancelBtn { font-size: 11px; font-weight: 900; color: #64748b; background: none; border: none; padding: 12px 20px; cursor: pointer; letter-spacing: 0.05em; } .saveBtn { background: var(--accent); color: white; border: none; border-radius: 14px; padding: 12px 28px; font-size: 12px; font-weight: 950; display: flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 10px 25px var(--accent-glow); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); } .saveBtn:hover { transform: translateY(-2px); box-shadow: 0 15px 35px var(--accent-glow); } .saveBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } /* Switch Toggle UI */ .toggleField { display: flex; align-items: center; gap: 12px; } .toggleField span { font-size: 10px; font-weight: 950; color: #94a3b8; letter-spacing: 0.05em; } .switch { position: relative; display: inline-block; width: 40px; height: 22px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 22px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--accent); } input:checked + .slider:before { transform: translateX(18px); }