diff --git a/javascript-executor.html b/javascript-executor.html index 3b1cd422..a69d1cfa 100644 --- a/javascript-executor.html +++ b/javascript-executor.html @@ -242,6 +242,82 @@ outline: none; border-color: #667eea; } +/* Modern modal dialog styles */ +.modal-dialog { + position: fixed; + top: 0; left: 0; right: 0; bottom: 0; + background: rgba(40, 44, 52, 0.45); + display: flex; + align-items: center; + justify-content: center; + z-index: 9999; + animation: fadeIn 0.2s; +} +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} +.modal-content { + background: #fff; + border-radius: 16px; + padding: 32px 28px 24px 28px; + box-shadow: 0 8px 32px rgba(31,38,135,0.37); + max-width: 350px; + width: 100%; + text-align: center; + border: 1px solid #eee; + animation: slideUp 0.25s; +} +@keyframes slideUp { + from { transform: translateY(40px); opacity: 0; } + to { transform: translateY(0); opacity: 1; } +} +.modal-content h3 { + margin-bottom: 14px; + color: #764ba2; + font-size: 1.35rem; + font-weight: 700; + letter-spacing: 0.5px; +} +.modal-content p { + margin-bottom: 22px; + color: #444; + font-size: 1rem; +} +.modal-actions { + display: flex; + gap: 18px; + justify-content: center; +} +.btn-primary { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + color: #fff; + border: none; + font-weight: 600; + padding: 10px 22px; + border-radius: 8px; + font-size: 1rem; + box-shadow: 0 2px 8px rgba(102,126,234,0.12); + transition: background 0.2s, box-shadow 0.2s; +} +.btn-primary:hover { + background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); + box-shadow: 0 4px 16px rgba(102,126,234,0.18); +} +.btn-secondary { + background: #f8f9fa; + color: #764ba2; + border: 2px solid #e9ecef; + font-weight: 600; + padding: 10px 22px; + border-radius: 8px; + font-size: 1rem; + transition: background 0.2s, border-color 0.2s; +} +.btn-secondary:hover { + background: #e9ecef; + border-color: #764ba2; +} .output-container { flex: 1; @@ -485,7 +561,7 @@