* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: transparent; overflow: hidden; } .hidden { display: none !important; } #app { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; pointer-events: none; } .container { position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(100%); width: 420px; border-radius: 25px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; pointer-events: all; } .container.show { transform: translateY(-50%) translateX(0); } /* Progress Overlay */ .progress-overlay { position: fixed; bottom: 20px; right: 20px; width: auto; height: auto; background: transparent; backdrop-filter: none; z-index: 1500; pointer-events: none; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .progress-overlay.show { transform: translateX(0); } .progress-container { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; padding: 24px; text-align: center; width: 320px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); pointer-events: all; } .progress-title { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; } .progress-info { font-size: 16px; color: #4caf50; margin-bottom: 20px; font-weight: 600; } .progress-bar-container { width: 100%; height: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; overflow: hidden; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.2); } .progress-bar { height: 100%; background: linear-gradient(90deg, #4caf50 0%, #45a049 100%); border-radius: 6px; width: 0%; transition: width 0.3s ease; box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); position: relative; overflow: hidden; } .progress-bar::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 2s infinite; } @keyframes shimmer { to { left: 100%; } } .progress-instructions { font-size: 12px; color: rgba(255, 255, 255, 0.8); font-weight: 500; } /* Dark Theme */ .theme-dark { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%); border: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); } .theme-dark .header { background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%); border-bottom: 1px solid rgba(255, 255, 255, 0.15); } .theme-dark .header h2, .theme-dark .section label, .theme-dark .settings-title { color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } .theme-dark .close-btn { color: #999; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); } .theme-dark .close-btn:hover { background: rgba(255, 0, 0, 0.2); color: #ff4444; border-color: rgba(255, 68, 68, 0.5); transform: scale(1.1); } .theme-dark .preset-btn, .theme-dark .money-type-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #ffffff; backdrop-filter: blur(10px); } .theme-dark .preset-btn:hover, .theme-dark .money-type-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1); } .theme-dark .custom-amount { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #ffffff; backdrop-filter: blur(10px); } .theme-dark .custom-amount:focus { border-color: #4caf50; background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 20px rgba(76, 175, 80, 0.3); outline: none; } .theme-dark .custom-amount::placeholder { color: #888; } .theme-dark .input-prefix { color: #888; } .theme-dark .btn-secondary { background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); } .theme-dark .settings-panel { background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%); border-top: 1px solid rgba(255, 255, 255, 0.15); } .theme-dark .confirmation-dialog { background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%); border: 1px solid rgba(255, 255, 255, 0.15); } .theme-dark .settings-section h3 { color: rgba(255, 255, 255, 0.8); } .theme-dark .confirmation-title, .theme-dark .confirmation-message { color: #ffffff; } /* Light Theme */ .theme-light { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%); border: 1px solid rgba(0, 0, 0, 0.15); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); } .theme-light .header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%); border-bottom: 1px solid rgba(0, 0, 0, 0.15); } .theme-light .header h2, .theme-light .section label, .theme-light .settings-title { color: #333; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); } .theme-light .close-btn { color: #666; background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); } .theme-light .close-btn:hover { background: rgba(255, 0, 0, 0.1); color: #ff4444; border-color: rgba(255, 68, 68, 0.3); transform: scale(1.1); } .theme-light .preset-btn, .theme-light .money-type-btn { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); color: #333; backdrop-filter: blur(10px); } .theme-light .preset-btn:hover, .theme-light .money-type-btn:hover { background: rgba(0, 0, 0, 0.08); border-color: rgba(0, 0, 0, 0.15); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); } .theme-light .custom-amount { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); color: #333; backdrop-filter: blur(10px); } .theme-light .custom-amount:focus { border-color: #4caf50; background: rgba(0, 0, 0, 0.08); box-shadow: 0 0 20px rgba(76, 175, 80, 0.3); outline: none; } .theme-light .custom-amount::placeholder { color: #666; } .theme-light .input-prefix { color: #666; } .theme-light .btn-secondary { background: rgba(0, 0, 0, 0.08); color: #333; border: 1px solid rgba(0, 0, 0, 0.15); } .theme-light .btn-secondary:hover { background: rgba(0, 0, 0, 0.12); border-color: rgba(0, 0, 0, 0.2); } .theme-light .settings-panel { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%); border-top: 1px solid rgba(0, 0, 0, 0.15); } .theme-light .confirmation-dialog { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%); border: 1px solid rgba(0, 0, 0, 0.15); } .theme-light .settings-section h3 { color: rgba(0, 0, 0, 0.7); } .theme-light .confirmation-title, .theme-light .confirmation-message { color: #333; } /* Common Styles */ .header { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-radius: 25px 25px 0 0; } .header h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; } .close-btn { border: none; font-size: 18px; cursor: pointer; padding: 10px; border-radius: 15px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; } .content { padding: 28px; border-radius: 0 0 25px 25px; } .section { margin-bottom: 28px; } .section label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.5px; } .preset-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .preset-btn { padding: 16px 12px; border-radius: 15px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 15px; font-weight: 600; letter-spacing: 0.3px; border: 1px solid transparent; position: relative; overflow: hidden; } .preset-btn::before, .money-type-btn::before, .btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; pointer-events: none; } .preset-btn:active::before, .money-type-btn:active::before, .btn:active::before { width: 300px; height: 300px; } .preset-btn.active { background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important; border-color: #4caf50 !important; color: white !important; box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4) !important; transform: translateY(-3px) !important; } .input-group { position: relative; display: flex; align-items: center; } .input-prefix { position: absolute; left: 14px; font-weight: 600; z-index: 1; font-size: 16px; } .custom-amount { width: 100%; padding: 16px 16px 16px 32px; border-radius: 15px; font-size: 16px; font-weight: 500; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; } .money-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .money-type-btn { padding: 24px 20px; border-radius: 18px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 100px; border: 1px solid transparent; position: relative; overflow: hidden; } .money-type-btn i { font-size: 32px; } .money-type-btn span { font-size: 16px; font-weight: 700; text-align: center; line-height: 1.2; letter-spacing: 0.3px; } .money-type-btn.active { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important; border-color: #2196f3 !important; color: white !important; box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4) !important; transform: translateY(-3px) !important; } .actions { display: flex; gap: 14px; margin-top: 36px; } .btn { padding: 18px 24px; border: none; border-radius: 16px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: 0.3px; border: 1px solid transparent; position: relative; overflow: hidden; } .btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); } .btn-primary { flex: 1; background: linear-gradient(135deg, #4caf50 0%, #45a049 100%); color: white; box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3); } .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4); } .btn-primary:disabled { background: linear-gradient(135deg, #cccccc 0%, #999999 100%); color: #666; cursor: not-allowed; transform: none; box-shadow: none; } .settings-btn { width: 56px !important; padding: 18px !important; } .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); } .btn-danger { background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); color: white; box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3); } .btn-danger:hover { background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4); } /* Settings Panel */ .settings-panel { padding: 28px; border-radius: 0 0 25px 25px; display: none; opacity: 0; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .settings-panel.show { opacity: 1; transform: translateY(0); } .settings-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px; } .settings-section { margin-bottom: 24px; } .settings-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; } .theme-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; } .theme-btn { padding: 16px 20px; border-radius: 15px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; letter-spacing: 0.3px; } .theme-btn.active { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); } .theme-btn.dark { background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%); color: #ffffff; border-color: rgba(255, 255, 255, 0.2); } .theme-btn.light { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); color: #333; border-color: rgba(0, 0, 0, 0.2); } /* Confirmation Dialog */ .confirmation-dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); width: 360px; padding: 28px; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); z-index: 20; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); } .confirmation-dialog.show { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .confirmation-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px; } .confirmation-message { font-size: 15px; margin-bottom: 24px; opacity: 0.9; line-height: 1.5; font-weight: 500; } .confirmation-actions { display: flex; gap: 14px; } /* Enhanced button interactions */ .preset-btn, .money-type-btn, .btn, .theme-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .preset-btn::before, .money-type-btn::before, .btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; pointer-events: none; } .preset-btn:active::before, .money-type-btn:active::before, .btn:active::before { width: 300px; height: 300px; } /* Enhanced hover states */ .preset-btn:hover, .money-type-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } /* Loading states */ .loading { position: relative; pointer-events: none; } .loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Error state animations */ .input-error { animation: shake 0.5s ease-in-out; border-color: #ff4444 !important; } .error-message { animation: slideInFromBottom 0.3s ease-out; background: linear-gradient(135deg, #ff4444, #cc0000); color: white; padding: 12px 16px; border-radius: 12px; margin-top: 8px; font-size: 14px; box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3); } /* Success feedback */ .success-feedback { animation: bounce 0.6s ease-out; } /* Enhanced input focus states */ .custom-amount:focus { animation: pulseGlow 2s infinite; transform: scale(1.02); } /* Tooltip system */ .tooltip { position: relative; } .tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.9); color: white; padding: 8px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; z-index: 1000; } .tooltip:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-5px); } /* Staggered animations for preset amounts */ .preset-btn:nth-child(1) { animation-delay: 0.1s; } .preset-btn:nth-child(2) { animation-delay: 0.15s; } .preset-btn:nth-child(3) { animation-delay: 0.2s; } .preset-btn:nth-child(4) { animation-delay: 0.25s; } .preset-btn:nth-child(5) { animation-delay: 0.3s; } .preset-btn:nth-child(6) { animation-delay: 0.35s; } .preset-btn:nth-child(7) { animation-delay: 0.4s; } .preset-btn:nth-child(8) { animation-delay: 0.45s; } .preset-btn:nth-child(9) { animation-delay: 0.5s; } .preset-amounts.animate .preset-btn { animation: slideInFromBottom 0.4s ease-out both; } /* Enhanced theme transitions */ .container { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); } /* Improved accessibility */ .btn:focus, .preset-btn:focus, .money-type-btn:focus, .theme-btn:focus { outline: 2px solid #4caf50; outline-offset: 2px; } /* Enhanced Animations and Transitions */ @keyframes slideInFromRight { from { transform: translateY(-50%) translateX(100%); opacity: 0; } to { transform: translateY(-50%) translateX(0); opacity: 1; } } @keyframes slideInFromBottom { from { transform: translateX(0) translateY(20px); opacity: 0; } to { transform: translateX(0) translateY(0); opacity: 1; } } @keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); } 50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); } } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } @keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } /* Mobile Responsiveness */ @media (max-width: 768px) { .container { width: 95%; right: 2.5%; left: 2.5%; transform: translateY(-50%) translateX(0); } .container.show { transform: translateY(-50%) translateX(0); } .preset-amounts { grid-template-columns: repeat(2, 1fr); gap: 12px; } .preset-btn { padding: 20px 16px; font-size: 16px; } .money-type-btn { padding: 20px 16px; min-height: 80px; } .theme-selector { grid-template-columns: 1fr; } } /* Enhanced dark/light theme specific animations */ .theme-dark .preset-btn:hover, .theme-dark .money-type-btn:hover { box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1); } .theme-light .preset-btn:hover, .theme-light .money-type-btn:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }