.add-button { position: fixed; bottom: 2rem; right: 2rem; background-color: #007bff; color: white; font-size: 2rem; border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); transition: background-color 0.3s ease; } .add-button:hover { background-color: #0056b3; } .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal { background: #1e1e1e; padding: 2rem; border-radius: 12px; width: 340px; height: 420px; box-shadow: 0 0 10px #000; /* Flexbox centering */ display: flex; flex-direction: column; align-items: center; justify-content: center; } .modal input { width: 90%; height: 35px; padding: 0.5rem; margin-bottom: 0.75rem; background-color: #2c2c2c; border: none; color: white; border-radius: 6px; } .modal button { width: 90%; padding: 0.5rem; background-color: #007bff; color: white; border: none; border-radius: 6px; cursor: pointer; } .modal button:hover { background-color: #0056b3; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .add-button.spin { animation: spin 0.5s linear; }